undef HALF_FREQUENCY_SENDING_TO_CLIENT
[ryzomcore.git] / web / public_php / ring / plan_edit_session.php
blob7722735246afc216c368e3ad3fa0c62e725bca0d
1 <?php
2 include('../tools/validate_cookie.php');
3 include('ring_session_manager_itf.php');
4 include_once('../tools/domain_info.php');
5 include('../login/config.php');
7 function scheduleSessionResult($charId, $sessionId, $result, $resultString)
9 echo "Create session result :<br>";
10 if ($result == 1)
12 echo "Session $sessionId created for character $charId<br>";
14 echo "<h2>Your session have been planned, thank you<h2><br>";
16 else
18 echo "Failed to create a session for character $charId with error $resultString <br>";
22 ///////////////////////////
23 // Main code
24 ///////////////////////////
27 $domainId = -1;
28 if (!validateCookie($userId, $domainId, $charId))
30 echo "<h1>Invalid cookie, please relog<H1>";
31 die;
34 $domainInfo = getDomainInfo($domainId);
35 $addr = split(":", $domainInfo["session_manager_address"]);
36 $RSMHost = $addr[0];
37 $RSMPort = $addr[1];
40 <h1>Schedule an edit or animation session</h1>
41 <form action="send_plan_edit_session.php" method="post">
42 Session title : <input type="text" name="title" value="enter a title"><br>
43 Session description : <input type="text" name="description" value="enter a description"><br>
44 <input type='hidden' name='session_type' value='st_edit'>
45 <input type="submit" name="button" value="Schedule edition">
46 </form>
47 <br>
48 <br>
49 <form action="send_plan_edit_session.php" method="post">
50 Session title : <input type="text" name="title" value="enter a title"><br>
51 Session description : <input type="text" name="description" value="enter a description"><br>
52 <input type='hidden' name='session_type' value='st_anim'>
53 <input type="submit" name="button" value="Schedule animation">
54 </form>
55 <br>
56 <br>
57 <a href="web_start.php">Return to start menu</a>