Subversion Repositories ALCASAR

Rev

Rev 2100 | Rev 2163 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2100 Rev 2162
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: intercept.php 2100 2016-12-19 18:21:06Z richard $
2
# $Id: intercept.php 2162 2017-04-06 19:24:56Z tom.houdayer $
3
#
3
#
4
# intercept.php for ALCASAR captive portal
4
# intercept.php for ALCASAR captive portal
5
# Copyright (C) 2003, 2004 Mondru AB.
5
# Copyright (C) 2003, 2004 Mondru AB.
6
# Modify by REXY & steweb57
6
# Modify by REXY & steweb57
7
# UI & css style by stephane ERARD
7
# UI & css style by stephane ERARD
Line 445... Line 445...
445
{
445
{
446
        if ((is_file("./acc/manager/lib/sql/drivers/mysql/functions.php"))&&(is_file("/etc/freeradius-web/config.php"))){
446
        if ((is_file("./acc/manager/lib/sql/drivers/mysql/functions.php"))&&(is_file("/etc/freeradius-web/config.php"))){
447
        include_once("/etc/freeradius-web/config.php");
447
        include_once("/etc/freeradius-web/config.php");
448
        include_once("./acc/manager/lib/sql/drivers/mysql/functions.php");
448
        include_once("./acc/manager/lib/sql/drivers/mysql/functions.php");
449
	$user_url=$_GET['userurl'];
449
	$user_url=$_GET['userurl'];
450
        $user_uid=$_GET['uid'];
450
        $user_uid=da_sql_escape_string($_GET['uid']);
451
        $sql = "SELECT attribute, value FROM radreply WHERE username='$user_uid'";
451
        $sql = "SELECT attribute, value FROM radreply WHERE username='$user_uid'";
452
        $link = @da_sql_pconnect($config); // on affiche pas les erreurs
452
        $link = @da_sql_pconnect($config); // on affiche pas les erreurs
453
        if ($link){
453
        if ($link){
454
                $res = @da_sql_query($link,$config,$sql); // on affiche pas les erreurs
454
                $res = @da_sql_query($link,$config,$sql); // on affiche pas les erreurs
455
                if ($res){
455
                if ($res){