another test
[silc.git] / public_html / todo.php
index 2aa9384a9f116137a7057553a3a9a6062fca4984..375e4c609caebd91717db3c2e5397884f1c6f0bc 100644 (file)
@@ -1,11 +1,11 @@
-<br>
+<br />
 <tt>
 <font face="courier" size="3">
 <?php
 
-if (File_exists($DocRoot."todo.txt"))
-  if ($fp = @FOpen($DocRoot."todo.txt", "r")) {
-  
+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);
@@ -17,4 +17,3 @@ if (File_exists($DocRoot."todo.txt"))
 ?>
 </font>
 </tt>
-<br>