summaryrefslogtreecommitdiff
path: root/blog/sbs_1/bloglist.php
blob: 32e59b7503458089e49c8cf879b998d4710359b5 (plain) (blame)
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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="expires" content="Friday 24 October 1997 09:30 GMT">
<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>Chrisoft::Blog</title>
	<link rel=stylesheet href='../common.css' type='text/css'>
	<link rel=stylesheet href='extras.css' type='text/css'>
	<script type="text/javascript">
function ol()
{
if( navigator.userAgent.match(/Android/i)
 || navigator.userAgent.match(/webOS/i)
 || navigator.userAgent.match(/iPhone/i)
 || navigator.userAgent.match(/iPad/i)
 || navigator.userAgent.match(/iPod/i)
 || navigator.userAgent.match(/BlackBerry/i)
 || navigator.userAgent.match(/Windows Phone/i)
 )
	document.getElementById("tab").style.width="96%";
}
	</script>
</head>
<body onload="ol()">
	<table id="tab" border="0" style="width:70%;margin:auto;">
    <tr>
		<td class="CTitle" style="font-size:2em;" colspan="2">
			<a href="../">Chrisoft</a>::Blog
		</td>
    </tr>
    <tr>
		<td class="TText" colspan="2" style="padding:10px;">
			<div style="font-size:200%">Deprecated. The new blog system is available <a href="/blog">here</a>.</div>
			WARNING: You've entered the dangerous zone.<br>
			I occasionally empty the trash in my brain here...<br>
			Browse with care!<br>
			Most posts are in Chinese...
		</td>
    </tr>
    <tr><td class="TText" colspan="2">
	<?php
		$files=scandir("/var/www/html/blog/content",1);
		for($i=0,$c=count($files);$i<$c;$i++)
		{
			if(!(strstr($files[$i],"txt")))continue;
			if(strstr($files[$i],"swp"))continue;
			$fn=sprintf("/var/www/html/blog/content/%s",$files[$i]);
			$handle=fopen($fn, "r");
			$title="";$date="";$tags="";
			if($handle)
			{
				$title=fgets($handle,4096);
				$date=fgets($handle,4096);
				$tags=fgets($handle,4096);
				fclose($handle);
			}
			if(!strstr($tags,"devel"))
			{
				echo "<tr><td class=\"TText\" style=\"width:50%;\">";
				$cur=sprintf("<a href=\"./blogreader.php?p=%s\">%s</a>",substr($files[$i],0,strlen($files[$i])-4),$title);
				echo $cur;
				echo "</td><td class=\"TText\" style=\"width:50%;\">";
				echo $date;
				echo "</td></tr>";
			}
		}
	?>
	</td></tr>
	<tr>
	<td class="TText" colspan="2" style="padding:10px;text-align:center;">
	Proudly powered by SBS <reduced>(the stupid blogging system)</reduced>.<br>
	Content licensed under CC BY-SA 4.0.
	</td>
	</tr>
	</table>
</body>