コード例 #1
0
ファイル: HandleDB.php プロジェクト: kleopatra999/finx
function getSessionsForGuestApp($idServer)
{
    include "builder.cfg";
    $idGuest = getGuestId();
    $queryStringSession = "SELECT sessions. *  FROM sessions, crossUsersSessions WHERE crossUsersSessions.userId =  '{$idGuest}' AND sessions.idServer =  '{$idServer}' AND sessions.sessionType = 'custom' AND sessions.id = crossUsersSessions.sessionId ";
    $querySession = @mysql_query($queryStringSession);
    if (!$querySession) {
        $querySession = -1;
    }
    return $querySession;
}
コード例 #2
0
ファイル: ServerList.php プロジェクト: kleopatra999/finx
<? include("includes/Toolbar.php");?>
<div id="min_width">
<!--SectionIcon Start-->
<table border="0" cellspacing="0" cellpadding="0" class="header3" width="100%" style="min-width:900px;">
<tr>
 <td><img src="<?php 
echo $sharedSkin;
?>
/icon-serverList.png" width="34" height="26" border="0"></td>
 <td class="txtHeader3" nowrap align="left">Server List</td>
</tr>
</table>
<!--SectionIcon Stop-->
<?

if($_SESSION['identity']=="guest") $_SESSION['idUser']=getGuestId();

$serverList = getListServerForUser($_SESSION['idUser']);


$serverNumber = count($serverList);

if($serverNumber==0)
{
 $error=1;
 $messageType="NoServerAvailable";
}
?>