예제 #1
0
파일: misc.php 프로젝트: paspo/installinux
 function uptime($f3)
 {
     $this->sysinfo = \SysInfo::instance();
     $values = array();
     $values['uptime'] = $this->sysinfo->uptime;
     echo json_encode($values);
 }
예제 #2
0
 /**
  * The function used to set and/or retrieve the current instance of this class.
  *
  * @return	object	$instance	A reference to an instance of this class.
  */
 public static function get_instance()
 {
     if (null == self::$instance) {
         self::$instance = new self();
     }
     // end if
     return self::$instance;
 }