Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 6th, 2012  |  syntax: None  |  size: 0.35 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <div class="stitle">General</div>
  2. <div class="scontent">
  3. <?php
  4.         $rawUp = explode(" ", shell_exec("cat /proc/uptime"));
  5.         $upInterval = date_interval_create_from_date_string(round($rawUp[0])." seconds");
  6.         echo("<table class=\"stat\"><tr><td>Uptime:</td><td>");
  7.         echo(date_interval_format($upInterval, '%D:%H:%I:%S'));
  8.         echo("</td></tr></table>");
  9. ?>
  10. </div>