updates
[runtime.git] / public_html / todo.php
index a5a68720cac99e8025a6e1450ce41ac578daed4a..2aa9384a9f116137a7057553a3a9a6062fca4984 100644 (file)
@@ -1,7 +1,20 @@
-<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 (File_exists($DocRoot."todo.txt"))
+  if ($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>
+<br>