[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <?php 2 // 3 // phpSysInfo - A PHP System Information Script 4 // http://phpsysinfo.sourceforge.net/ 5 // 6 // This program is free software; you can redistribute it and/or 7 // modify it under the terms of the GNU General Public License 8 // as published by the Free Software Foundation; either version 2 9 // of the License, or (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 Free Software 18 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19 // 20 // $Id: system_footer.php 21228 2006-04-06 13:52:08Z ralfbecker $ 21 // 22 if (!defined('IN_PHPSYSINFO')) { 23 die("No Hacking"); 24 } 25 26 $direction = direction(); 27 28 if (!$hide_picklist) { 29 echo "<center>"; 30 31 $update_form = "<form method=\"POST\" action=\"" . $_SERVER['PHP_SELF'] . "\">\n" . "\t" . $text['template'] . ": \n" . "\t<select name=\"template\">\n"; 32 33 $dir = opendir(APP_ROOT . '/templates/'); 34 while (false !== ($file = readdir($dir))) { 35 if ($file != 'CVS' && $file[0] != '.' && is_dir(APP_ROOT . '/templates/' . $file)) { 36 $filelist[] = $file; 37 } 38 } 39 closedir($dir); 40 41 asort($filelist); 42 43 while (list ($key, $val) = each ($filelist)) { 44 if ($_COOKIE['template'] == $val) { 45 $update_form .= "\t\t<option value=\"$val\" SELECTED>$val</option>\n"; 46 } else { 47 $update_form .= "\t\t<option value=\"$val\">$val</option>\n"; 48 } 49 } 50 51 $update_form .= "\t\t<option value=\"xml\">XML</option>\n"; 52 $update_form .= "\t\t<option value=\"wml\">WML - experimental</option>\n"; 53 // auto select the random template, if we're set to random 54 $update_form .= "\t\t<option value=\"random\""; 55 if ($_COOKIE['template']=='random') { 56 $update_form .= " SELECTED"; 57 } 58 $update_form .= ">random</option>\n"; 59 60 $update_form .= "\t</select>\n"; 61 62 $update_form .= "\t " . $text['language'] . ": \n" . "\t<select name=\"lng\">\n"; 63 64 unset($filelist); 65 66 $dir = opendir(APP_ROOT . '/includes/lang/'); 67 while (false !== ($file = readdir($dir))) { 68 if ($file[0] != '.' && is_file(APP_ROOT . '/includes/lang/' . $file) && eregi("\.php$", $file)) { 69 $filelist[] = eregi_replace('.php', '', $file); 70 } 71 } 72 closedir($dir); 73 74 asort($filelist); 75 76 while (list ($key, $val) = each ($filelist)) { 77 if ($_COOKIE['lng'] == $val) { 78 $update_form .= "\t\t<option value=\"$val\" SELECTED>$val</option>\n"; 79 } else { 80 $update_form .= "\t\t<option value=\"$val\">$val</option>\n"; 81 } 82 } 83 84 $update_form .= "\t\t<option value=\"browser\""; 85 if ($_COOKIE['lng']=='browser') { 86 $update_form .= " SELECTED"; 87 } 88 $update_form .= ">browser default</option>\n"; 89 90 $update_form .= "\t</select>\n" . "\t<input type=\"submit\" value=\"" . $text['submit'] . "\">\n" . "</form>\n"; 91 92 echo $update_form; 93 94 echo "\n\n</center>"; 95 } else { 96 echo "\n\n<br>"; 97 } 98 99 echo "\n<hr>\n"; 100 101 echo "<table width=\"100%\">\n <tr>\n"; 102 echo "<td align=\"" . $direction['left'] . "\"><font size=\"-1\">" . $text['created'] . ' <a href="http://phpsysinfo.sourceforge.net" target="_blank">phpSysInfo-' . $VERSION . '</a> ' . strftime ($text['gen_time'], time()) . "</font></td>\n"; 103 echo "<td align=\"" . $direction['right'] . "\"><font size=\"-1\">" . round( ( array_sum( explode( " ", microtime() ) ) - $startTime ), 4 ). " sec</font></td>\n"; 104 echo " </tr>\n</table>\n"; 105 106 echo "\n<br>\n</body>\n</html>\n"; 107 108 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |