Advertisement
konyakov

index.php | Object status checker

Dec 16th, 2011
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.46 KB | None | 0 0
  1. <!DOCTYPE html><html><head><title>Object status checker</title><meta charset="utf-8"/><style type="text/css">h1, li, p, small, table, td{font-family:Courier}.green, .green a{color:#009900}.red, .red a{color:#ff0000}.t td{padding:5px} .theader{background:#9BAEC9;color:#fefefe;text-align:center} .ttext{background:#E9E9E9;text-align:center}</style></head><body><noindex><h1>Object status checker</h1><p><a href="status.php">Go to status checker</a></p><p>Last update: <?php date_default_timezone_set('Europe/Moscow');echo date("Y/m/d (H:i)");?></p><?php $data = file("log.csv");echo '<table border="1" class="t" style="width:50%;border-collapse:collapse"><tr>';echo '<tr><td class="theader"><nobr>Date (dd.mm.yyyy hh.mm.ss)</nobr></td><td class="theader">Page</td><td class="theader">Error text</td></tr>';$dat_arr = explode(";", $data[0]);for ($p=0;$p<count($dat_arr);$p++) {echo "<td class=\"ttext\"><nobr>$dat_arr[$p]</nobr></td>";}echo "</tr>";for ($i=1;$i<count($data);$i++) {$data_array = explode(";", $data[$i]);echo "<tr>";for ($f=0;$f<count($data_array);$f++) {echo "<td class=\"ttext\"><nobr>$data_array[$f]</nobr></td>";}echo "</tr>";}echo "</table>";?></noindex><p><a href="http://konyakov.ru/pubs/php/object-status-checker/object-status-checker-source-code.tar.gz">Download Object status checker PHP source code</a></p><p><small>2011/12/15 &copy; <a href="http://konyakov.ru/">КОНЬЯКОВ.ру</a> | <a href="http://konyakov.ru/">KONYAKOV.ru</a></small></p></body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement