Location: PHPKode > projects > phpSC > core/setsess.php
<?PHP
if($_SERVER['PHP_SELF'] == "setsess.php") {
echo "<h1><center><font color=red>Document cannot be accessed directly. EXECUTING SESSION PANIC!</h1></center></font>";
}
$_SESSION['id'] = $data['id'];
$_SESSION['username'] = $data['username'];
$_SESSION['level'] = $data['level'];
$_SESSION['ip'] = $_SERVER['REMOTE_ADDR'];

//////////////////////////////////////////////
//////////////////////////////////////////////
$sql = "SELECT * FROM servers LIMIT 1";    //
$result = mysql_query($sql,$conn);          //
$server = mysql_fetch_array($result);       //
$_SESSION['server_id'] = $server['id'];     // 
$_SESSION['server_conf'] = $server['conf']; //
//////////////////////////////////////////////
//////////////////////////////////////////////
?>
Return current item: phpSC