'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 '