*/ require "../../Group-Office.php"; if (file_exists('phpsysinfo-dev/includes/lang/' . $GO_LANGUAGE->language['language_file'] . '.php')) { require 'phpsysinfo-dev/includes/lang/' . $GO_LANGUAGE->language['language_file'] . '.php'; } else { require 'phpsysinfo-dev/includes/lang/en.php'; } require_once $GO_CONFIG->class_path . "filesystem.class.inc"; require_once $GO_CONFIG->class_path . "xml.class.inc"; $fso = new filesystem(); $return_to = $GO_CONFIG->host . 'administrator/'; $GO_SECURITY->authenticate(true); // Figure out which OS where running on, and detect support if (file_exists('phpsysinfo-dev/includes/os/class.' . PHP_OS . '.inc.php')) { require 'phpsysinfo-dev/includes/os/class.' . PHP_OS . '.inc.php'; $sysinfo = new sysinfo(); } else { echo '<center><b>Error: ' . PHP_OS . ' is not currently supported</b></center>'; exit; } if (!empty($GO_CONFIG->sensor_program)) { if (file_exists('phpsysinfo-dev/includes/mb/class.' . $GO_CONFIG->sensor_program . '.inc.php')) { require 'phpsysinfo-dev/includes/mb/class.' . $GO_CONFIG->sensor_program . '.inc.php'; $mbinfo = new mbinfo(); } else { echo '<center><b>Error: ' . $GO_CONFIG->sensor_program . ' is not currently supported</b></center>'; exit; } } require 'phpsysinfo-dev/includes/common_functions.php'; // Set of common functions used through out the app
function getSystemInfo() { $s = new sysinfo(); $data['address'] = $s->GetAdd(); $data['os'] = $s->GetOS(); $data['browser'] = $s->GetBrowser(); $data['ip'] = $s->GetIP(); $data['lang'] = $s->GetLang(); $data['phpv'] = PHP_VERSION; $data['serv'] = $_SERVER["SERVER_SOFTWARE"]; return $data; }
/* Copyright Intermesh 2003 Author: Merijn Schering <*****@*****.**> Version: 1.0 Release date: 08 July 2003 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. */ require "../../Group-Office.php"; require $GO_LANGUAGE->get_base_language_file('sysinfo'); require $GO_CONFIG->class_path . "sysinfo.class.inc"; require_once $GO_CONFIG->class_path . "filesystem.class.inc"; $fso = new filesystem(); $sysinfo = new sysinfo(); $return_to = $GO_CONFIG->host . 'configuration/'; $GO_SECURITY->authenticate(true); $page_title = $menu_sysinfo; require $GO_THEME->theme_path . "header.inc"; //average load $ar_buf = $sysinfo->loadavg(); $load_avg = ''; for ($i = 0; $i < 3; $i++) { if ($ar_buf[$i] > 2) { $load_avg .= ' '; } else { $load_avg .= $ar_buf[$i] . ' '; } } $load_avg = trim($load_avg);
// $Id: index.php,v 1.1 2006/03/17 18:29:02 bed Exp $ $Release$ // nas4nega external release version number $VERSION = "0.0.1"; $lang = "de"; // or en in the moment, see directory lang for more languages define('APP_ROOT', dirname(__FILE__)); $startTime = array_sum(explode(" ", microtime())); ini_set('magic_quotes_runtime', 'off'); ini_set('register_globals', 'off'); ini_set('display_errors', 'on'); require_once APP_ROOT . '/lang/' . $lang . '.php'; // echo APP_ROOT . '/lang/' . $lang . '.php' ; require_once APP_ROOT . '/includes/class.error.inc.php'; $error = new Error(); require_once APP_ROOT . '/includes/class.Linux.inc.php'; $sysinfo = new sysinfo(); menu(); echo "</span></div>\n"; echo "<div class=\"container\">\n"; echo "<div span class=\"inhalt\">\n"; echo "<p>" . $text['welcome']; $x = $sysinfo->vhostname(); echo "\n<br> :" . $x . " : \n"; //phpinfo(); ?> </div> </div> <div id="footer"><p id="klein">