<?
// 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.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// The latest version is always availble at http://basmaaks.xs4all.nl
// You'll need php version 4.1.0 or above to get it all running.
// Mail me for any questions at hide@address.com or post a message
SetCookie("sysinfostats","Admin",time()+100000000,"/","",0) ;
// Ask for the config.php file with al the settings
require("config.php");
//check for a theme
if (!(isset($template) && file_exists('themes/' . $template . '.php'))) {
$template = $defaulttheme;
if(count($plng) > 0) {
while(list($k,$v) = each($plng)) {
$k = split(';', $v, 1);
$k = split('-', $k[0]);
if(file_exists('themes/' . $k[0] . '.php')) {
$template = $k[0];
break;
}
}
}
}
require('themes/' . $template . '.php');
// Check for a language
if (!(isset($lng) && file_exists('languages/' . $lng . '.php'))) {
$lng = $defaultlang;
// see if the browser knows the right languange.
if(isset($HTTP_ACCEPT_LANGUAGE)) {
$plng = split(',', $HTTP_ACCEPT_LANGUAGE);
if(count($plng) > 0) {
while(list($k,$v) = each($plng)) {
$k = split(';', $v, 1);
$k = split('-', $k[0]);
if(file_exists('languages/' . $k[0] . '.php')) {
$lng = $k[0];
break;
}
}
}
}
}
require('languages/' . $lng . '.php');
// Read the filetime of the index file
$filemod = filemtime("index.php");
$filemodtime = date("j F Y h:i:s A", $filemod);
// The costum style sheet
$CSS = "<style type=\"text/css\">table td {background-color:$color_table;color:$font_info;}.head {background-color:$color_header;color:$font_table;}.body {background-color:$color_background;color:$font_text;scrollbar-face-color:$scrollbar_face; scrollbar-highlight-color:$scrollbar_highlight; scrollbar-shadow-color:$scrollbar_shadow; scrollbar-3dlight-color:$scrollbar_3dlight; scrollbar-arrow-color:$scrollbar_arrow; scrollbar-track-color:$scrollbar_track; scrollbar-darkshadow-color:$scrollbar_darkshadow;}.generatedinfo {background-color:$color_table;color:$font_variables;}a:link {font-family:$font_type; color:$color_link;font-size: 11px; font-style: normal; text-decoration: none}a:active {font-family: $font_type; color:$color_alink; font-size: 11px; font-style: normal; text-decoration: none}a:visited {font-family:$font_type; color:$color_vlink; font-size: 11px; font-style: normal; text-decoration: none}a:hover {font-family:$font_type; color:$color_hlink; font-size: 11px; font-style: normal; text-decoration: underline}.buttons {font-family:$font_type; color:$button_text; font-size: 11px; border: 1px solid #C0C0C0;background-color:$button_color}.fields {border:1px solid #7C8184; font-family:$font_type; font-size: 11px; ;}.toneborder {border-color:$border_color; border-width:$border_thick; border-style:$border_style; }</style>";
// send the header of the page to the browser and begin the body
echo "<head><meta http-equiv=\"Content-Type\" content=\"text/html; $charset\">";
echo "$CSS<title>Sysinfo $Version for $HTTP_SERVER_VARS[SERVER_NAME]</title></HEAD><BODY class=body>";
if ($usebackground==true){
echo "<BODY BACKGROUND=\"$imgbackground\">";
}
Echo "<CENTER>".$label['cookie']."</CENTER><BR><BR>"
. "<CENTER><a href=\"index.php\">".$label['script']."</a></CENTER>"
."<HR><font size=-1>Generated by <a href=\"http://basmaaks.xs4all.nl\">Sysinfo $Version</a> written by <a href=\"mailto:hide@address.com\">The Gamblers.</a> File last modified $filemodtime</font>";
?>