1,30 → 1,11 |
<?php |
# $Id$ |
# |
# change user password on ALACASAR NAC |
# Copyright (C) 2003, 2004 Mondru AB. |
# Copyright (C) 2008-20017 ANGEL95 & REXY |
|
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); |
|
require('/etc/freeradius-web/config.php'); |
|
$current_page = htmlspecialchars($_SERVER['PHP_SELF']); |
$homepage = (((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off')) ? 'https' : 'http').'://'.trim($conf['HOSTNAME']).'.'.trim($conf['DOMAIN']); |
|
# Choice of language |
$Language = 'en'; |
203,7 → 184,7 |
<tr> |
<td colspan=\"2\" id=\"lien_pass\"> |
<input type=\"submit\" class=\"btn_form\" id=\"btn_pass\" value=\"$R_form_button_valid\"> |
<input type=\"button\" class=\"btn_form\" id=\"btn_retour\" value=\"$R_form_button_retour\" onclick=\"location.replace('$homepage');\"> |
<input type=\"button\" class=\"btn_form\" id=\"btn_retour\" value=\"$R_form_button_retour\" onclick=\"location.replace('http://alcasar');\"> |
</td> |
</tr> |
</table> |