another test
[silc.git] / public_html / todo.php
index a5a68720cac99e8025a6e1450ce41ac578daed4a..375e4c609caebd91717db3c2e5397884f1c6f0bc 100644 (file)
@@ -1,7 +1,19 @@
-<pre>
-<font face=courier size=3>
-<?php 
-require $DocRoot.EReg_Replace('([^a-zA-Z0-9])*','',todo).".txt"
+<br />
+<tt>
+<font face="courier" size="3">
+<?php
+
+if (Is_Readable($DocRoot."todo.txt")) {
+  $fp = FOpen($DocRoot."todo.txt", "r");
+
+  while($line = FGets($fp, 255)) {
+    $newline = Ereg_Replace("^[ ]{2,4}","&nbsp;&nbsp;",$line);
+    $line = Ereg_Replace("^([\t]|[ ][\t])","&nbsp;&nbsp;&nbsp;&nbsp;",$newline);
+    printf("%s", nl2br($line));
+  }
+
+  FClose($fp);
+  }
 ?>
 </font>
-<p>
+</tt>