summaryrefslogblamecommitdiff
path: root/blog/sbs_1/bloglist.php
blob: 32e59b7503458089e49c8cf879b998d4710359b5 (plain) (tree)












































































                                                                                                                                          
<!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>