RecentUpload: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
199 bytes removed ,  17:24, 24 August 2009
m
removed HTML formatting to allow your style sheet to deal with the formatting
No edit summary
m (removed HTML formatting to allow your style sheet to deal with the formatting)
Line 39: Line 39:
   if(file_exists($file_url[$i])) { // cheap and cheerful existence check
   if(file_exists($file_url[$i])) { // cheap and cheerful existence check
       $when=filemtime($file_url[$i]);
       $when=filemtime($file_url[$i]);
       $this_output .= "<tr><td>" .($nickname[$i] ? $nickname[$i] : $file_url[$i]). "</td><td align=\"center\">" .($freq[$i] ? $freq[$i] : "Unknown"). "<td>" .date("m/d/y H:i:s T", $when). "</td><td align=\"center\">" .timediff($file_url[$i]). "</td></tr>\n";
       $this_output .= "<tr><td>" .($nickname[$i] ? $nickname[$i] : $file_url[$i]). "</td><td>" .($freq[$i] ? $freq[$i] : "Unknown"). "<td>" .date("m/d/y H:i:s T", $when). "</td><td>" .timediff($file_url[$i]). "</td></tr>\n";
   } else { // the file is misnamed or not uploaded
   } else { // the file is misnamed or not uploaded
       $this_output .= "<tr><td><font color=\"#ff0000\" <b>" .$file_url[$i]. "</b></font></td><td align=\"center\">" .($freq[$i] ? $freq[$i] : "Unknown"). "<td align=\"center\"><font color=\"#ff0000\"><b>NO SUCH FILE !</b></font></td><td align=\"center\"><font color=\"#ff0000\"><b>NO SUCH FILE !</b></font></td></tr>\n";
       $this_output .= "<tr><td>" .$file_url[$i]. "</td><td>" .($freq[$i] ? $freq[$i] : "Unknown"). "<td>NO SUCH FILE !</td><td>NO SUCH FILE !</td></tr>\n";
   } // END existence check
   } // END existence check
} // END array loop
} // END array loop
1,120

edits

Navigation menu