Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2799 → Rev 2800

/web/acc/phpsysinfo/js/phpSysInfo/phpsysinfo.js
686,7 → 686,7
pother = parseInt($(this).attr("ProcessesOther"), 10);
}
 
document.title = "System information: " + hostname + " (" + ip + ")";
document.title = "Système information: " + hostname + " (" + ip + ")";
$("#s_hostname_title").html(hostname);
$("#s_ip_title").html(ip);
$("#s_hostname").html(hostname);
/web/acc/phpsysinfo/language/language.php
44,11 → 44,9
if (defined('PSI_DEFAULT_LANG')) {
$lang = PSI_DEFAULT_LANG;
}
 
if (isset($_GET['lang']) && (trim($_GET['lang'])!=="")
&& !preg_match('/[^A-Za-z\-]/', $_GET['lang'])
&& file_exists(PSI_APP_ROOT.'/language/'.$_GET['lang'].'.xml')) {
$lang = strtolower($_GET['lang']);
if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
$lang = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
$lang = strtolower(substr(chop($lang[0]), 0, 2));
}
/** ALCASAR changes
* $lang set by the web browser config
58,6 → 56,12
$Langue = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
$lang = strtolower(substr(chop($Langue[0]), 0, 2));
 
//if (isset($_GET['lang']) && (trim($_GET['lang'])!=="")
// && !preg_match('/[^A-Za-z\-]/', $_GET['lang'])
// && file_exists(PSI_APP_ROOT.'/language/'.$_GET['lang'].'.xml')) {
// $lang = strtolower($_GET['lang']);
//}
 
if (isset($_GET['plugin'])) {
if ((trim($_GET['plugin'])!=="") && !preg_match('/[^A-Za-z]/', $_GET['plugin'])) {
$plugin = strtolower($_GET['plugin']);
/web/acc/phpsysinfo/phpsysinfo.ini
104,7 → 104,7
 
; Define the default template
;
DEFAULT_TEMPLATE="cream"
DEFAULT_TEMPLATE="aqua"
 
 
; Define the default template for frontend "bootstrap"