mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
Added login site.
This commit is contained in:
20
www/control_panel_common.php
Normal file
20
www/control_panel_common.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
if(!isset($_COOKIE["sessionId"]))
|
||||
{
|
||||
header("Location: control_panel_login.php");
|
||||
exit;
|
||||
}
|
||||
$g_sessionId = $_COOKIE["sessionId"];
|
||||
|
||||
try
|
||||
{
|
||||
$g_userId = GetUserIdFromSession($g_databaseConnection, $g_sessionId);
|
||||
}
|
||||
catch(Exception $e)
|
||||
{
|
||||
header("Location: control_panel_login.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user