-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgateway.php
62 lines (57 loc) · 1.71 KB
/
gateway.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
<?php
require_once dirname(__FILE__) . '/storage.php';
$items = Storage::getThreads();
header('Content-Type: text/html; charset=UTF-8');
?>
<html>
<head>
<meta charset="utf-8">
<title>sgphp gateway</title>
<link href="./css/bootstrap.css.1" rel="stylesheet">
<link href="./css/bootstrap-responsive.css" rel="stylesheet">
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-8020577-13']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<div class="navbar">
<div class="navbar-inner">
<div class="container">
<ul class="nav">
<li>
<a class="brand" href="#">sgphp - 新月PHP実装</a>
</li>
</ul>
</div>
</div>
</div>
<div class="row">
<div class="span6 alert">
sgphpは開発途中です。本家の新月と比較すると、未実装の機能などがあるため、一部正常に動作していない画面などがあります。
</div>
<div class="span6">
<h2>TODO</h2>
<ul>
<li>Serverの実装</li>
<li>Serverの実装:投稿ができるように</li>
<li>Threadのパーサを強化:attachを表示できるように</li>
</ul>
</div>
</div>
<div class="container">
<h2>スレッド一覧</h2>
<ul>
<?php foreach ($items as $item): ?>
<?php echo "<li>{$item['datetime']} <a href=\"thread.php/{$item['title']}\">{$item['title']}</a></li>" . PHP_EOL; ?>
<?php endforeach; ?>
</ul>
</div>
</body>
</html>