Subversion Repositories ALCASAR

Rev

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

Rev 2853 Rev 2854
Line 1... Line -...
1
<!DOCTYPE html>
-
 
2
<?php
1
<?php
3
require('/etc/freeradius-web/config.php');
2
require('/etc/freeradius-web/config.php');
4
require('../lib/functions.php');
3
require('../lib/functions.php');
5
require('../lib/sql/functions.php');
4
require('../lib/sql/functions.php');
6
require('../lib/acctshow.php');
5
require('../lib/acctshow.php');
-
 
6
?>
-
 
7
<!DOCTYPE html>
-
 
8
<html>
-
 
9
<head>
-
 
10
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-
 
11
<?php
-
 
12
if (is_file("../lib/sql/drivers/$config[sql_type]/functions.php"))
-
 
13
	include_once("../lib/sql/drivers/$config[sql_type]/functions.php");
-
 
14
else{
-
 
15
	echo <<<EOM
-
 
16
<title>$l_title</title>
-
 
17
<link rel="stylesheet" href="/css/acc.css">
-
 
18
</head>
-
 
19
<body>
-
 
20
<center>
-
 
21
<b>Could not include SQL library functions. Aborting</b>
-
 
22
</body>
-
 
23
</html>
-
 
24
EOM;
-
 
25
	exit();
-
 
26
}
-
 
27
#choice of language
7
$Language = 'en';
28
$Language = 'en';
8
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
29
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
9
	$Langue = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
30
	$Langue = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
10
	$Language = strtolower(substr(chop($Langue[0]), 0, 2)); 
31
	$Language = strtolower(substr(chop($Langue[0]), 0, 2)); 
11
}
32
}
Line 35... Line 56...
35
	$l_criteria	= "Selection Criteria :";
56
	$l_criteria	= "Selection Criteria :";
36
	$l_not_valid =	"The requested operation is not valid. Abnormal exit.";
57
	$l_not_valid =	"The requested operation is not valid. Abnormal exit.";
37
	$l_delete =	"Delete";
58
	$l_delete =	"Delete";
38
	$l_edit_user	= "Edit user :";
59
	$l_edit_user	= "Edit user :";
39
}
60
}
40
if (is_file("../lib/sql/drivers/$config[sql_type]/functions.php"))
-
 
41
	include_once("../lib/sql/drivers/$config[sql_type]/functions.php");
-
 
42
else{
-
 
43
	echo <<<EOM
-
 
44
<html>
-
 
45
<head>
-
 
46
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-
 
47
<title>$l_title</title>
-
 
48
<link rel="stylesheet" href="/css/acc.css">
-
 
49
</head>
-
 
50
<body>
-
 
51
<center>
-
 
52
<b>Could not include SQL library functions. Aborting</b>
-
 
53
</body>
-
 
54
</html>
-
 
55
EOM;
-
 
56
	exit();
-
 
57
}
-
 
58
 
61
 
59
$operators=array( '=','<', '>', '<=', '>=', 'regexp', 'like' );
62
$operators=array( '=','<', '>', '<=', '>=', 'regexp', 'like' );
60
if ($config['sql_type'] == 'pg'){
63
if ($config['sql_type'] == 'pg'){
61
	$operators=array( '=','<', '>', '<=', '>=', '~', 'like', '~*', '~~*', '<<=' );
64
	$operators=array( '=','<', '>', '<=', '>=', '~', 'like', '~*', '~~*', '<<=' );
62
}
65
}
Line 132... Line 135...
132
		return $items[$this->item]."  $this->operator  '$this->value'";
135
		return $items[$this->item]."  $this->operator  '$this->value'";
133
	}
136
	}
134
}
137
}
135
 
138
 
136
?>
139
?>
137
<html>
-
 
138
<head>
-
 
139
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-
 
140
	<title><?= $l_title ?></title>
140
	<title><?= $l_title ?></title>
141
	<link rel="stylesheet" href="/css/acc.css">
141
	<link rel="stylesheet" href="/css/acc.css">
142
</head>
142
</head>
143
<body>
143
<body>
144
<div class="panel">
144
<div class="panel">