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_footer.php,v 1.51.4.1 2007/08/19 09:22:21 xqus Exp $
23
 
24
if( ! defined( 'IN_PHPSYSINFO' ) ) {
25
	die( "No Hacking" );
26
}
27
 
28
$arrDirection = direction();
29
 
30
if( ! $hide_picklist ) {
31
	echo "<center>\n";
32
	$update_form = "<form method=\"POST\" action=\"" . htmlentities($_SERVER['PHP_SELF']) . "\">\n" . "\t" . $text['template'] . ":&nbsp;\n" . "\t<select name=\"template\">\n";
33
 
34
	$resDir = opendir( APP_ROOT . '/templates/' );
35
	while( false !== ( $strFile = readdir( $resDir ) ) ) {
36
		if( $strFile != 'CVS' && $strFile[0] != '.' && is_dir( APP_ROOT . '/templates/' . $strFile ) ) {
37
			$arrFilelist[] = $strFile;
38
		}
39
	}
40
	closedir( $resDir );
41
	asort( $arrFilelist );
42
	foreach( $arrFilelist as $strVal ) {
43
		if( $_COOKIE['template'] == $strVal ) {
44
			$update_form .= "\t\t<option value=\"" . $strVal . "\" SELECTED>" . $strVal . "</option>\n";
45
		} else {
46
			$update_form .= "\t\t<option value=\"" . $strVal . "\">" . $strVal . "</option>\n";
47
		}
48
	}
49
	$update_form .= "\t\t<option value=\"xml\">XML</option>\n";
50
	$update_form .= "\t\t<option value=\"wml\">WML</option>\n";
51
	$update_form .= "\t\t<option value=\"random\"";
52
	if( $_COOKIE['template'] == 'random' ) {
53
		$update_form .= " SELECTED";
54
	}
55
	$update_form .= ">random</option>\n";
56
	$update_form .= "\t</select>\n";
57
 
58
	$update_form .= "\t&nbsp;&nbsp;" . $text['language'] . ":&nbsp;\n" . "\t<select name=\"lng\">\n";
59
	unset( $arrFilelist );
60
	$resDir = opendir( APP_ROOT . "/includes/lang/" );
61
	while( false !== ( $strFile = readdir( $resDir ) ) ) {
62
		if ( $strFile[0] != '.' && is_file( APP_ROOT . "/includes/lang/" . $strFile ) && preg_match( "/\.php$/", $strFile ) ) {
63
			$arrFilelist[] = preg_replace("/\.php$/", "", $strFile );
64
		}
65
	}
66
	closedir($resDir);
67
	asort( $arrFilelist );
68
	foreach( $arrFilelist as $strVal ) {
69
		if( $_COOKIE['lng'] == $strVal ) {
70
			$update_form .= "\t\t<option value=\"" . $strVal . "\" SELECTED>" . $strVal . "</option>\n";
71
		} else {
72
			$update_form .= "\t\t<option value=\"" . $strVal . "\">" . $strVal . "</option>\n";
73
		}
74
	}
75
	$update_form .= "\t\t<option value=\"browser\"";
76
	if( $_COOKIE['lng'] == "browser" ) {
77
		$update_form .= " SELECTED";
78
	}
79
	$update_form .= ">browser default</option>\n\t</select>\n";
80
 
81
	$update_form .= "\t<input type=\"submit\" value=\"" . $text['submit'] . "\">\n" . "</form>\n";
82
	echo $update_form;
83
	echo "</center>\n";
84
} else {
85
	echo "<br>\n";
86
}
87
 
88
echo "<hr>\n";
89
echo "<table width=\"100%\">\n\t<tr>\n";
90
echo "\t\t<td align=\"" . $arrDirection['left'] . "\"><font size=\"-1\">" . $text['created'] . "&nbsp;<a href=\"http://phpsysinfo.sourceforge.net\" target=\"_blank\">phpSysInfo-" . $VERSION . "</a>&nbsp;" . strftime( $text['gen_time'], time() ) . "</font></td>\n";
91
echo "\t\t<td align=\"" . $arrDirection['right'] . "\"><font size=\"-1\">" . round( ( array_sum( explode( " ", microtime() ) ) - $startTime ), 4 ). " sec</font></td>\n";
92
echo "\t</tr>\n</table>\n";
93
echo "<br>\n</body>\n</html>\n";
94
 
95
?>