Subversion Repositories ALCASAR

Rev

Details | Last modification | View Log

Rev Author Line No. Line
325 richard 1
<?php 
2
/***************************************************************************
3
 *   Copyright (C) 2006 by phpSysInfo - A PHP System Information Script    *
4
 *   http://phpsysinfo.sourceforge.net/                                    *
5
 *                                                                         *
6
 *   This program is free software; you can redistribute it and/or modify  *
7
 *   it under the terms of the GNU General Public License as published by  *
8
 *   the Free Software Foundation; either version 2 of the License, or     *
9
 *   (at your option) any later version.                                   *
10
 *                                                                         *
11
 *   This program is distributed in the hope that it will be useful,       *
12
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
13
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
14
 *   GNU General Public License for more details.                          *
15
 *                                                                         *
16
 *   You should have received a copy of the GNU General Public License     *
17
 *   along with this program; if not, write to the                         *
18
 *   Free Software Foundation, Inc.,                                       *
19
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
20
 ***************************************************************************/
21
 
22
// $Id: system_header.php,v 1.30 2007/02/11 15:57:17 bigmichi1 Exp $
23
 
24
if( ! defined( 'IN_PHPSYSINFO' ) ) {
25
	die( "No Hacking" );
26
}
27
 
28
setlocale( LC_ALL, $text['locale'] );
29
global $XPath;
30
 
31
header( "Cache-Control: no-cache, must-revalidate" );
32
if( ! isset( $charset ) ) {
33
	$charset = "iso-8859-1";
34
} 
35
header( "Content-Type: text/html; charset=" . $charset );
36
 
37
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n";
38
echo "<html>\n";
39
echo created_by();
40
 
41
echo "<head>\n";
42
echo "\t<title>" . $text['title'], " -- ", $XPath->getData('/phpsysinfo/Vitals/Hostname'), " --</title>\n";
43
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=" . $charset . "\">";
44
if( file_exists( APP_ROOT . "/templates/" . $template . "/" . $template . ".css" ) ) {
45
	echo "\t<link rel=\"stylesheet\" type=\"text/css\" href=\"" . $webpath . "templates/" . $template . "/" . $template . ".css\">\n";
46
}
47
echo "</head>\n";
48
 
49
if( file_exists( APP_ROOT . "/templates/" . $template . "/images/" . $template . "_background.gif" ) ) {
50
	echo "<body background=\"" . $webpath . "templates/" . $template . "/images/" . $template . "_background.gif\">";
51
} else {
52
	echo "<body>\n";
53
}
54
 
55
?>