mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-10 14:34:32 +02:00
Added login site.
This commit is contained in:
parent
0876b293e8
commit
94db8336df
20 changed files with 2362 additions and 0 deletions
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;
|
||||
}
|
||||
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue