-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
31 lines (24 loc) · 702 Bytes
/
index.php
File metadata and controls
31 lines (24 loc) · 702 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
require_once("./boardgame_survey_loader.php");
?>
<html>
<?php
if(isset($_POST["payload"])) {
if(!array_key_exists($_POST["payload"], Lists::AllPayloadTypes)) {
die("Error: The requested payload is invalid!");
}
$received_payload = Lists::AllPayloadTypes[$_POST["payload"]];
digest_request($received_payload);
}
if(isset($_GET["page"])) {
if(!array_key_exists($_GET["page"], Lists::AllPages)) {
die("Error: The requested page is not valid!");
}
$requested_page = Lists::AllPages[$_GET["page"]];
} else {
$requested_page = Page::Login;
}
$page = page_init($requested_page);
$page->print_page_header();
$page->print_page_content(); ?>
</html>