-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsession.php
More file actions
19 lines (17 loc) · 781 Bytes
/
session.php
File metadata and controls
19 lines (17 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
if (isset($_REQUEST['sessionid'])) {
if (isset($_REQUEST['command'])) {
if (strcmp($_REQUEST['command'], "edit")) {
header('Location: edit.php?sessionid=' . $_REQUEST['sessionid']);
} elseif (strcmp($_REQUEST['command'], "view")) {
header('Location: view.php?sessionid=' . $_REQUEST['sessionid']);
} elseif (strcmp($_REQUEST['command'], "debrief")) {
header('Location: debrief.php?sessionid=' . $_REQUEST['sessionid']);
} else {
echo "sorry, new page for view and edit is view.php and edit.php";
die();
}
} else
echo "sorry, new page for view and edit is view.php and edit.php";
} else
echo "sorry, new page for view and edit is view.php and edit.php";