Line 1... |
Line 1... |
1 |
<?php
|
1 |
<?php
|
2 |
# $Id: intercept.php 2163 2017-04-06 19:42:48Z tom.houdayer $
|
2 |
# $Id: intercept.php 2166 2017-04-08 15:25:35Z 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 444... |
Line 444... |
444 |
if($result == 1)
|
444 |
if($result == 1)
|
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_uid=da_sql_escape_string($_GET['uid']);
|
449 |
$user_uid=da_sql_escape_string($link, $_GET['uid']);
|
450 |
$sql = "SELECT attribute, value FROM radreply WHERE username='$user_uid'";
|
450 |
$sql = "SELECT attribute, value FROM radreply WHERE username='$user_uid'";
|
451 |
$link = @da_sql_pconnect($config); // on affiche pas les erreurs
|
451 |
$link = @da_sql_pconnect($config); // on affiche pas les erreurs
|
452 |
if ($link){
|
452 |
if ($link){
|
453 |
$res = @da_sql_query($link,$config,$sql); // on affiche pas les erreurs
|
453 |
$res = @da_sql_query($link,$config,$sql); // on affiche pas les erreurs
|
454 |
if ($res){
|
454 |
if ($res){
|