예제 #1
0
 /**
  * Display number of seconds in human readable format.
  *
  * Returns string    - HHHH:MM:SS
  */
 public static function display_seconds_as_days($seconds, $significant_ciphers = 3)
 {
     // days  - 3.34 days        33,4 days       334 days
     if ($seconds >= 86400) {
         $days = $seconds / 86400;
         return morg_gui::number_format_significant_ciphers($days, $significant_ciphers) . ' days';
     }
 }
예제 #2
0
<?php

// +----------------------------------------------------------------------+
// | PHP version 5.1.4                                                    |
// +----------------------------------------------------------------------+
// | Placed in public domain by Allan Hansen, 2006. Share and enjoy!      |
// +----------------------------------------------------------------------+
// | index.php                                                            |
// | Main GUI.                                                            |
// +----------------------------------------------------------------------+
// | Authors: Allan Hansen <*****@*****.**>                                |
// +----------------------------------------------------------------------+
//
// $Id: index.php,v 1.79 2006/12/25 23:45:00 ah Exp $
require 'morg/morg_gui.php';
$app = new morg_gui();
$app->run();