diff options
Diffstat (limited to 'blog/sbs_1/bloglist.php')
-rw-r--r-- | blog/sbs_1/bloglist.php | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/blog/sbs_1/bloglist.php b/blog/sbs_1/bloglist.php new file mode 100644 index 0000000..32e59b7 --- /dev/null +++ b/blog/sbs_1/bloglist.php @@ -0,0 +1,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> |