-
Notifications
You must be signed in to change notification settings - Fork 3
/
boards.php
executable file
·131 lines (114 loc) · 4.93 KB
/
boards.php
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<!doctype html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0"/>
<meta charset="UTF-8">
<title>314chan</title>
<link href="css/MIcons.css" rel="stylesheet">
<link href="css/materialize.css" type="text/css" rel="stylesheet" media="screen,projection"/>
<link href="css/style.css" type="text/css" rel="stylesheet" media="screen,projection"/>
</head>
<body>
<div class="navbar-fixed">
<nav class="marooncolor" role="navigation">
<div class="nav-wrapper container"><a id="logo-container" href="#" class="brand-logo">314chan</a>
<ul class="right hide-on-med-and-down">
<li><a href="rules.html">Rules</a></li>
<li><a href="faq.html">FAQ</a></li>
<li><a href="news.html">News</a></li>
<li><a href="https://irc.314chan.org">IRC</a></li>
</ul>
<ul id="nav-mobile" class="side-nav">
<li><a href="rules.html">Rules</a></li>
<li><a href="faq.html">FAQ</a></li>
<li><a href="news.html">News</a></li>
<li><a href="https://irc.314chan.org">IRC</a></li>
</ul>
<a href="#" data-activates="nav-mobile" class="button-collapse"><i class="material-icons">menu</i></a>
</div>
</nav>
</div>
<div class="section no-pad-bot" id="index-banner">
<div class="container">
<br><br>
<div class="card-panel">
This is a list of all boards on 314chan, excluding the "unlisted" ones.<br /><small><em>(do keep note the unlisted boards aren't hidden YET.)</em></small>
<table>
<thead>
<tr>
<th data-field="url">URL</th>
<th data-field="title">Title</th>
</tr>
</thead>
<tbody>
<?php
$json = file_get_contents("boards.json");
$jsonIterator = new RecursiveIteratorIterator(
new RecursiveArrayIterator(json_decode($json, TRUE)),
RecursiveIteratorIterator::SELF_FIRST);
foreach ($jsonIterator as $key => $val) {
if(is_array($val)) {
#echo "$key:\n";
} else {
#if($key == 1){
# continue;
#}else{}
if($key == "uri"){
echo "<tr><td><a href='/".$val."/'>/".$val."/</a></td> ";
}
if($key == "title"){
echo "<td>".$val."</td></tr>";
}
#echo "$key => $val\n";
}
}
?>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="section">
</div>
</div>
<footer class="page-footer marooncolor">
<div class="container">
<div class="row">
<div class="col l6 s12">
<h5 class="white-text">The Constitutional Monarchy.</h5>
<p class="grey-text text-lighten-4">314chan would like to be as open as possible. We employ a system in which the boards are controlled by the users, and for the users. I will explain more in depth <a href="monarchy.html">here</a></p>
</div>
<div class="col l3 s12">
<h5 class="white-text">Our Friends</h5>
<ul>
<li><a class="white-text" href="http://www.76chan.org">76chan</a></li>
<!--<li><a class="white-text" href="#!">Link 3</a></li>-->
<!--<li><a class="white-text" href="#!">Link 4</a></li>-->
</ul>
</div>
<div class="col l3 s12">
<h5 class="white-text">Why 314chan?</h5>
<ul>
<li class="white-text"><strong>Permanent U.S. Ownership.</strong> <em>We will never sell out to a Japanese company.</em></li>
<li class="white-text"><strong>Head staff that cares.</strong> <em>Our staff has never ignored a user.</em></li>
<li class="white-text"><strong>No Ads.</strong> <em>Parley will never host ads on the server(unless need for money is dire.)</em></li>
<li class="white-text"><strong>Captcha as a last resort.</strong> <em>We will never enable Captchas (unless there are ongoing spam attacks.)</em> </li>
</ul>
</div>
</div>
</div>
<div class="footer-copyright">
<div class="container">
Site © 2015 314chan
<div class="right"><a href="https://www.law.cornell.edu/uscode/text/47/230">All posts are the responsibility of the original poster.</a><div>
</div>
</div>
</footer>
<!-- Scripts-->
<script src="js/jquery.js"></script>
<script src="js/materialize.js"></script>
<script src="js/init.js"></script>
</body>
</html>