Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2181 → Rev 2182

/web/acc/menu.php
1,3 → 1,22
<?php
# $Id $
 
define ('CONF_FILE', '/usr/local/etc/alcasar.conf');
 
// Read CONF_FILE
$file_conf = fopen(CONF_FILE, 'r');
if (!$file_conf) {
exit('Error opening the file '.CONF_FILE);
}
while (!feof($file_conf)) {
$tampon = fgets($file_conf, 4096);
if ((strpos($tampon, '=') !== false) && (substr($tampon, 0, 1) !== '#')) {
$tmp = explode('=', $tampon);
$conf[$tmp[0]] = trim($tmp[1]);
}
}
fclose($file_conf);
?>
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN//2.0">
<HTML>
<!-- written by Rexy ! -->
29,8 → 48,7
exit();
}
 
// Get current version
$installed_version = trim(exec("grep ^VERSION /usr/local/etc/alcasar.conf | cut -d'=' -f2"));
$installed_version = $conf['VERSION'];
 
# Choice of language
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE']))