khanat-code-old/code/ryzom/tools/server/www/ring/start_session.php
2014-01-28 11:41:26 -08: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>