public function welcome()
 {
     $http = array();
     $http['host'] = $_SERVER["HTTP_HOST"];
     $http['ip'] = GetHostByName($_SERVER['SERVER_NAME']);
     $http['port'] = $_SERVER['SERVER_PORT'];
     $http['cip'] = $_SERVER['REMOTE_ADDR'];
     $http['system'] = php_uname('s');
     $http['php'] = PHP_VERSION;
     $http['language'] = $_SERVER['HTTP_ACCEPT_LANGUAGE'];
     $http['zend'] = Zend_Version();
     date_default_timezone_set('Asia/Shanghai');
     $time = date('Y-m-d H:i:s', time());
     $http['time'] = $time;
     $this->assign('http', $http);
     $this->display();
 }
Example #2
0
?>
</td>
    </tr>
    <tr>
      <td>服务器信息</td>
      <td><?php 
echo php_uname();
?>
</td>
    </tr>
    <tr>
      <td>PHP版本</td>
      <td><?php 
echo PHP_VERSION;
?>
</td>
    </tr>
    <tr>
      <td>Zend信息</td>
      <td><?php 
echo Zend_Version();
?>
</td>
    </tr>
    <tr>
      <td>程序信息</td>
      <td>Hey!网络科技 & 青松电脑数码科技</td>
    </tr>
  </tbody>
  </table>
</div>
 private function getServiceInfo()
 {
     $service['service_name'] = php_uname('s');
     //服务器系统名称
     $service['service'] = $_SERVER['SERVER_SOFTWARE'];
     //服务器版本
     $service['zend'] = 'Zend ' . Zend_Version();
     //zend版本号
     $service['ip'] = GetHostByName($_SERVER['SERVER_NAME']);
     //服务器ip
     $service['mysql'] = mysql_get_server_info();
     $service['filesize'] = ini_get("upload_max_filesize");
     $this->assign('service', $service);
 }
Example #4
0
 /**
  * 获取zend版本
  * 例如:'zendVersion' => '2.5.0'
  * @access public
  * @return string
  */
 public function getZendVersion()
 {
     return Zend_Version();
 }
Example #5
0
            return $GD_v_h;
        }
        $_mem_limit = ini_get('memory_limit');
        $memory_limit = '<font color="#102030">' . $_mem_limit . '</font>';
        $_ext_time = ini_get('max_execution_time');
        $max_exec_time = '<font color="#102030">' . $_ext_time . '</font>';
        $de_functions = strlen(ini_get('disable_functions')) > 1 ? ini_get('disable_functions') : '<font color="#990000"><b>Нет.</b></font>';
        $de_functions = str_replace(',', ', ', $de_functions);
        $req = mysql_query("SHOW TABLE STATUS");
        $sbd = 0;
        while (($row = mysql_fetch_array($req)) !== FALSE) {
            $sbd += $row['Data_length'] + $row['Index_length'];
        }
        $ext = get_loaded_extensions();
        $cnt = count($ext);
        $extensions = NULL;
        for ($i = 0; $i < $cnt; $i++) {
            $extensions .= ' ' . $ext[$i] . ',';
        }
        $extensions = substr($extensions, 0, -1);
        if (function_exists('apache_get_modules')) {
            if (array_search('mod_rewrite', apache_get_modules())) {
                $mod_rewrite = '<font color="#009900">ON</font>';
            } else {
                $mod_rewrite = '<font color="#990000">OFF</font>';
            }
        } else {
            $mod_rewrite = ' n/a ';
        }
        echo '<p><h3><img src="../images/system/9.png" width="16" height="16" class="left" alt="" />&#160;Informasi</h3>' . '<div class="list1"><small>Server time: ' . date('j.m.Y, H:i') . '</small></div>' . '<div class="list2"><small>Max execution time: ' . $max_exec_time . '</small></div>' . '<div class="list1">PHP VERSION: <b>' . PHP_VERSION . '</b> (' . PHP_OS . ') </div>' . '<div class="list2">ZEND ENGINE: <b>' . Zend_Version() . '</b> </div>' . '<div class="list1">GD VERSION: <b>' . GDversion() . '</b> </div>' . '<div class="list2">MAX upload FileSize: <b>' . formatsize(str_replace(array('M', 'm'), '', ini_get('upload_max_filesize')) * 1024 * 1024) . '</b></div>' . '<div class="list1">HARD free SPACE: <b>' . formatsize(disk_free_space('.')) . '</b> </div>' . '<div class="list2"><a href="index.php?act=info&amp;mod=optim">MySQL Size</a>: <b>' . formatsize($sbd) . '</b> </div>' . '<div class="list1">Memori Limit: <b>' . $memory_limit . '</b> </div>' . '<div class="list2">Mod ReWrite: <b>' . $mod_rewrite . '</b> </div>' . '<div class="list1">' . opis($extensions) . ' </div>' . '<div class="list2">Disable Functions:&#160;' . opis($de_functions) . ' </div><a href="index.php">' . $lng['admin_panel'] . '</a></p>';
}