khanat-opennel-code/code/web/public_php/ring/start_session.php
2014-09-03 07:06:43 +02:00

26 lines
611 B
PHP

<?php
require_once('../tools/validate_cookie.php');
include_once('../login/config.php');
include_once('../tools/domain_info.php');
include_once('ring_session_manager_itf.php');
include_once('session_tools.php');
$step = 0;
$domainId = -1;
if (!validateCookie($userId, $domainId, $charId))
{
echo "Invalid cookie !";
die();
}
else
{
echo "Welcome user $userId<BR>";
startSession($charId, $domainId, $_POST["sessionId"]);
// inviteOwnerInSession($charId, $domainId, $_POST["sessionId"]);
die();
}
?>
<p><a href="web_start.php">Return to main</a> </p>