RecentUpload: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
199 bytes removed ,  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)
if(file_exists($file_url[$i])) { // cheap and cheerful existence check
$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";
} 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";
} // END existence check
} // END array loop
1,120

edits

Navigation menu