| Line 1... |
Line 1... |
| 1 |
<?php
|
1 |
<?php
|
| 2 |
# $Id: index.php 2090 2016-12-12 23:00:01Z richard $
|
2 |
# $Id: index.php 2105 2017-01-05 08:45:10Z richard $
|
| 3 |
#
|
3 |
#
|
| 4 |
# index.php for ALCASAR by Rexy
|
4 |
# index.php for ALCASAR by Rexy
|
| 5 |
# UI & css style by stephane ERARD
|
5 |
# UI & css style by stephane ERARD
|
| 6 |
# The contents of this file may be used under the terms of the GNU
|
6 |
# The contents of this file may be used under the terms of the GNU
|
| 7 |
# General Public License Version 2, provided that the above copyright
|
7 |
# General Public License Version 2, provided that the above copyright
|
| Line 95... |
Line 95... |
| 95 |
$redir = "http://".$_GET['url'];
|
95 |
$redir = "http://".$_GET['url'];
|
| 96 |
header("Location: $_GET[url]",TRUE,307);
|
96 |
header("Location: $_GET[url]",TRUE,307);
|
| 97 |
exit;
|
97 |
exit;
|
| 98 |
}
|
98 |
}
|
| 99 |
// we retrieve his three last connections
|
99 |
// we retrieve his three last connections
|
| 100 |
((is_file("./acc/manager/lib/sql/drivers/mysql/functions.php"))&&(is_file("/etc/freeradius-web/config.php"))){
|
100 |
if ((is_file("./acc/manager/lib/sql/drivers/mysql/functions.php"))&&(is_file("/etc/freeradius-web/config.php"))){
|
| 101 |
include_once("/etc/freeradius-web/config.php");
|
101 |
include_once("/etc/freeradius-web/config.php");
|
| 102 |
include_once("./acc/manager/lib/sql/drivers/mysql/functions.php");
|
102 |
include_once("./acc/manager/lib/sql/drivers/mysql/functions.php");
|
| 103 |
|
103 |
|
| 104 |
$sql = "SELECT UserName, AcctStartTime, AcctStopTime, acctsessiontime FROM radacct WHERE UserName='$user[5]' ORDER BY AcctStartTime DESC LIMIT 0 , $nb_connection_history";
|
104 |
$sql = "SELECT UserName, AcctStartTime, AcctStopTime, acctsessiontime FROM radacct WHERE UserName='$user[5]' ORDER BY AcctStartTime DESC LIMIT 0 , $nb_connection_history";
|
| 105 |
$link = @da_sql_pconnect($config);
|
105 |
$link = @da_sql_pconnect($config);
|