mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-18 13:21:40 +00:00
57 lines
1.8 KiB
PHP
57 lines
1.8 KiB
PHP
<?php
|
|
include('../tools/validate_cookie.php');
|
|
include('ring_session_manager_itf.php');
|
|
include_once('../tools/domain_info.php');
|
|
include('../login/config.php');
|
|
|
|
function scheduleSessionResult($charId, $sessionId, $result, $resultString)
|
|
{
|
|
echo "Create session result :<br>";
|
|
if ($result == 1)
|
|
{
|
|
echo "Session $sessionId created for character $charId<br>";
|
|
|
|
echo "<h2>Your session have been planned, thank you<h2><br>";
|
|
}
|
|
else
|
|
{
|
|
echo "Failed to create a session for character $charId with error $resultString <br>";
|
|
}
|
|
}
|
|
|
|
///////////////////////////
|
|
// Main code
|
|
///////////////////////////
|
|
|
|
|
|
$domainId = -1;
|
|
if (!validateCookie($userId, $domainId, $charId))
|
|
{
|
|
echo "<h1>Invalid cookie, please relog<H1>";
|
|
die;
|
|
}
|
|
|
|
$domainInfo = getDomainInfo($domainId);
|
|
$addr = split(":", $domainInfo["session_manager_address"]);
|
|
$RSMHost = $addr[0];
|
|
$RSMPort = $addr[1];
|
|
?>
|
|
|
|
<h1>Schedule an edit or animation session</h1>
|
|
<form action="send_plan_edit_session.php" method="post">
|
|
Session title : <input type="text" name="title" value="enter a title"><br>
|
|
Session description : <input type="text" name="description" value="enter a description"><br>
|
|
<input type='hidden' name='session_type' value='st_edit'>
|
|
<input type="submit" name="button" value="Schedule edition">
|
|
</form>
|
|
<br>
|
|
<br>
|
|
<form action="send_plan_edit_session.php" method="post">
|
|
Session title : <input type="text" name="title" value="enter a title"><br>
|
|
Session description : <input type="text" name="description" value="enter a description"><br>
|
|
<input type='hidden' name='session_type' value='st_anim'>
|
|
<input type="submit" name="button" value="Schedule animation">
|
|
</form>
|
|
<br>
|
|
<br>
|
|
<a href="web_start.php">Return to start menu</a>
|