mirror of
https://silica.codes/islehorse/HorseIsleWeb.git
synced 2025-04-21 12:19:24 +12:00
Upload site files
This commit is contained in:
parent
9a5ad7a62f
commit
056805a3b8
926 changed files with 10709 additions and 0 deletions
21
master-site/web/newuserquiz.php
Normal file
21
master-site/web/newuserquiz.php
Normal file
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
$obj = json_decode(file_get_contents("questions.json"), true);
|
||||
$chatpoint = 0;
|
||||
//echo $obj["questions"][0]["title"]
|
||||
if (isset($_GET["CHATPOINT"])) {
|
||||
if ($_GET["CHATPOINT"] === "-1") {
|
||||
header('Location: /');
|
||||
}
|
||||
$chatpoint = intval($_GET["CHATPOINT"]);
|
||||
}
|
||||
if (isset($obj["questions"][$chatpoint])) {
|
||||
$question = $obj["questions"][$chatpoint];
|
||||
}
|
||||
|
||||
if (isset($question["redirect"])) {
|
||||
header('Location: '.$question["redirect"]);
|
||||
}
|
||||
include("header.php");
|
||||
?>
|
||||
<BR><TABLE BORDER=0 CELLPADDING=20><TR><TD><B><?php echo $question["title"] ?></B><BR><BR><?php foreach ($question["answers"] as &$value) { echo "<LI>REPLY WITH: <A HREF=?CHATPOINT=".$value["chatpoint"].">" . $value["title"] . "</A></LI><BR>";}?><BR></TD></TR></TABLE><BR><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
|
||||
<?php include("footer.php"); ?>
|
Loading…
Add table
Add a link
Reference in a new issue