CSS styling and loading threads
[Anonymous-Twitter-Board.git] / index.php
blob542cbcd6d47e2a820348316614309e6a7f088057
1 <?php
2 if(isset($_POST["page-style"])){
3 setcookie("page-style", $_POST["page-style"]);
4 header("Location: http://boards.verniy.xyz/?display=" . $_GET["display"]);
6 ?>
7 <html>
8 <head>
9 <base href="boards.verniy.xyz">
10 <link rel="stylesheet" type="text/css" href="/board-style.css?1" />
11 </head>
12 <body class="page-properties">
13 <div id="top-settings">
14 <ul class="header-list">
15 <li><h1>Anonymous Twitter Project</h1></li>
16 <li><h2><a href="https://twitter.com/Qazoku">Connecting Twitter Page: @Qazoku</a></h2></li>
17 </ul>
21 <div id='timer-container'><strong>Time Until Next Update: </strong>
22 <span id='time'></span>
23 </div>
24 <!--<a href="/?display=catalog">Catalog View</a> <a href="/?display=list">List View</a>-->
25 <a href="javascript:void(0);" id="catalog-link">Catalog View</a> <a href="javascript:void(0);" id="list-link">List View</a>
26 <script src="/board-script.js?3"></script>
28 <?php require("class/queue-database-construction.php");
29 echo " <div id='style-settings'>
30 <form action='' method='post'>
31 <label>Native View: </label><input type='radio' name='page-style' value='native' checked=1>
32 <label>Embeded View: </label><input type='radio' name='page-style' value='embeded'". ($_COOKIE["page-style"] == "embeded" ? "checked=1" : "") . ">
33 <input type='submit'>
34 </form>
35 </div>";
36 echo "<div id='queue-form-container'>";
37 $construction = new QueueDatabaseConstruction();
38 $construction->buildQueueForm();
39 echo "</div></div>";//top settings end
41 echo "<div id='posts-container'>";
42 //function builds all posts inside container
43 $construction->buildThreadPosts($_COOKIE["page-style"], $_COOKIE["display"]);
44 echo "</div>";
47 </body>
48 </html>