'phpsysinfo-dev' ); include('../header.inc.php'); } define(APP_ROOT,dirname(__FILE__)); // default to english, but this is negotiable. if (!(isset($lng) && file_exists('includes/lang/' . $lng . '.php'))) { $lng = 'es'; } // figure out if we got a template passed in the url if (!(isset($template) && file_exists("templates/$template"))) { // default template we should use if we don't get a argument. define('TEMPLATE_SET', 'aq'); $template = 'aq'; } else { define('TEMPLATE_SET', $template); } // If they have GD complied into PHP, find out the height of the image to make this cleaner if (function_exists('getimagesize')) { $image_prop = getimagesize(APP_ROOT . '/templates/' . TEMPLATE_SET . '/images/bar_middle.gif'); define('BAR_HEIGHT',$image_prop[1]); unset($image_prop); } else { // Until they complie GD into PHP, this could look ugly define('BAR_HEIGHT',16); } // reassign HTTP variables (incase register_globals is off) if (!empty($HTTP_GET_VARS)) while(list($name, $value) = each($HTTP_GET_VARS)) $$name = $value; if (!empty($HTTP_POST_VARS)) while(list($name, $value) = each($HTTP_POST_VARS)) $$name = $value; require('./includes/lang/' . $lng . '.php'); // get our language include require('./includes/color_scheme.php'); // our default color scheme if (PHPGROUPWARE != 1) { require('./includes/class.Template.inc.php'); // template library } require('./includes/common_functions.php'); // Set of common functions used through out the app // Figure out which OS where running on, and detect support if (file_exists(dirname(__FILE__) . '/includes/class.' . PHP_OS . '.inc.php')) { require('./includes/class.' . PHP_OS . '.inc.php'); $sysinfo = new sysinfo; } else { echo '
Error: ' . PHP_OS . ' is not currently supported
'; exit; } // fire up the template engine $tpl = new Template(dirname(__FILE__) . '/templates/' . TEMPLATE_SET); $tpl->set_file(array( 'form' => 'form.tpl' )); // print out a box of information function makebox ($title, $content) { $t = new Template(dirname(__FILE__) . '/templates/' . TEMPLATE_SET); $t->set_file(array( 'box' => 'box.tpl' )); $t->set_var('title', $title); $t->set_var('content', $content); return $t->parse('out', 'box'); } // let the page begin. require('./includes/system_header.php'); $tpl->set_var('title', $text['title'] . ': ' . $sysinfo->chostname() . ' (' . $sysinfo->ip_addr() . ')'); require('./includes/table_vitals.php'); require('./includes/table_network.php'); //require('./includes/table_connections.php'); require('./includes/table_hardware.php'); require('./includes/table_memory.php'); require('./includes/table_filesystems.php'); require('./includes/table_sensors.php'); // parse our the template $tpl->pparse('out', 'form'); // finally our print our footer if (PHPGROUPWARE == 1) { $phpgw->common->phpgw_footer(); } else { require('./includes/system_footer.php'); } ?>