File: system_header.php

package info (click to toggle)
phpsysinfo 2.5.1-6
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,876 kB
  • ctags: 1,700
  • sloc: php: 9,325; sh: 87; makefile: 8
file content (60 lines) | stat: -rw-r--r-- 2,117 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php 

// phpSysInfo - A PHP System Information Script
// http://phpsysinfo.sourceforge.net/

// 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.

// $Id: system_header.php,v 1.27 2005/12/10 15:54:41 bigmichi1 Exp $
if (!defined('IN_PHPSYSINFO')) {
    die("No Hacking");
}

header("Cache-Control: no-cache, must-revalidate");
if (!isset($charset)) {
  $charset = 'iso-8859-1';
} 

setlocale (LC_ALL, $text['locale']);

header('Content-Type: text/html; charset=' . $charset);

global $XPath;

echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
echo "<html>\n";
echo created_by();
echo "<head>\n";
echo "  <title>" . $text['title'], " -- ", $XPath->getData('/phpsysinfo/Vitals/Hostname'), " --</title>\n";

if (isset($charset) && $charset == 'euc-jp') {
    echo "  <meta http-equiv=\"content-type\" content=\"text/html;charset=$charset\">\n";
}
if (isset($refresh) && ($refresh = intval($refresh))) {
  echo "  <meta http-equiv=\"Refresh\" content=\"$refresh\">\n";
}
if (file_exists(APP_ROOT . "/templates/$template/$template.css")) {
  echo "  <link rel=\"stylesheet\" type=\"text/css\" href=\"" . $webpath . "templates/" . $template . "/" . $template . ".css\">\n";
}

echo "</head>\n";

if (file_exists(APP_ROOT . "/templates/$template/images/$template" . "_background.gif")) {
  echo "<body background=\"" . $webpath . "templates/" . $template . "/images/" . $template . "_background.gif\">";
} else {
  echo "<body>\n";
}

?>