Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2162 → Rev 2163

/web/intercept.php
65,7 → 65,7
$adminurl = "";
 
# Our own path
$loginpath = $_SERVER['PHP_SELF'];
$loginpath = htmlspecialchars($_SERVER['PHP_SELF']);
$alcasarpath = "http://alcasar.".trim($conf["DOMAIN"]);
$statuspath = $alcasarpath."/status.php";
$debug = false;
446,7 → 446,6
if ((is_file("./acc/manager/lib/sql/drivers/mysql/functions.php"))&&(is_file("/etc/freeradius-web/config.php"))){
include_once("/etc/freeradius-web/config.php");
include_once("./acc/manager/lib/sql/drivers/mysql/functions.php");
$user_url=$_GET['userurl'];
$user_uid=da_sql_escape_string($_GET['uid']);
$sql = "SELECT attribute, value FROM radreply WHERE username='$user_uid'";
$link = @da_sql_pconnect($config); // on affiche pas les erreurs
461,6 → 460,7
#set the fourth bit of filter-id to '0'
$sql = "set @CurrentFilter=(SELECT value from radreply where username='$user_uid');set @CurrentFilterLeft=(SELECT LEFT(@CurrentFilter,3));set @CurrentFilterRight=(SELECT RIGHT(@CurrentFilter,4));UPDATE radreply SET value = CONCAT((@CurrentFilterLeft),'0', (@CurrentFilterRight)) WHERE username='$user_uid'";
$res = mysqli_multi_query($link,$sql);
$user_url = urlencode($_GET['userurl']);
header("Location: http://alcasar/index.php?warn=1&url=$user_url"); //we present to user information about imputability logs
exit;
}