29,7 → 29,7 |
$host = "localhost"; |
$DB_USER = "radius"; |
$DB_RADIUS = "radius"; |
$radiuspwd = "J7YI65SW"; |
$radiuspwd = ""; |
// Connexion au serveur |
$mysqli = new mysqli($host, $DB_USER, $radiuspwd, $DB_RADIUS); |
if ($texte == 'user') {$query = "SELECT UserName FROM userinfo";} |
98,9 → 98,25 |
global $webpath; |
global $XPath; |
global $text; |
|
// Read CONF_FILE |
define ('CONF_FILE', '/usr/local/etc/alcasar.conf'); |
$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); |
|
exec ("sudo /usr/local/bin/alcasar-watchdog.sh -lt"); |
// Get current version |
$INSTALLEDVERSION = trim(exec("grep ^VERSION /usr/local/etc/alcasar.conf | cut -d'=' -f2")); |
$INSTALLEDVERSION = $conf['VERSION']; |
$VERSIONBL = date ("F d Y", filemtime ('/etc/dansguardian/lists/blacklists/README')); |
$nbr_user = request ('user'); |
$nbr_grp = request ('group'); |