Subversion Repositories ALCASAR

Rev

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

Rev 2383 Rev 2393
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: group_new.php 2383 2017-08-21 15:38:10Z tom.houdayer $
2
# $Id: group_new.php 2393 2017-08-27 13:04:28Z tom.houdayer $
3
 
3
 
4
//Gestion de la langue
4
//Gestion de la langue
5
if (is_file("../lib/langues.php"))
5
if (is_file("../lib/langues.php"))
6
	include("../lib/langues.php");
6
	include("../lib/langues.php");
7
 
7
 
8
require('/etc/freeradius-web/config.php');
-
 
9
 
-
 
10
if (!isset ($create)) $create=0;
-
 
11
if (!isset ($login)) $login='';
-
 
12
if (!isset ($selected)) $selected=array();
-
 
13
 
-
 
14
require('../lib/attrshow.php');
-
 
15
require('../lib/defaults.php');
-
 
16
require("../lib/$config[general_lib_type]/group_info.php");
-
 
17
 
-
 
18
//update Filter-Id for protocol filtering
8
//update Filter-Id for protocol filtering
19
if (isset($_POST['Filter-Proto']) && isset($_POST['Filter-Id']))
9
if (isset($_POST['Filter-Proto']) && isset($_POST['Filter-Id']))
20
{
10
{
21
	$upId = (int)$_POST['Filter-Proto'];
11
	$upId = (int)$_POST['Filter-Proto'];
22
	$downId = (int)$_POST['Filter-Id'];
12
	$downId = (int)$_POST['Filter-Id'];
23
	$upId = $upId+$downId;
13
	$upId = $upId+$downId;
24
	$upId = str_pad($upId, 8, '0', STR_PAD_LEFT);
14
	$upId = str_pad($upId, 8, '0', STR_PAD_LEFT);
25
	$_POST['Filter-Id'] = $upId;
15
	$_POST['Filter-Id'] = $upId;
26
}
16
}
27
 
17
 
-
 
18
require('/etc/freeradius-web/config.php');
-
 
19
 
-
 
20
if (!isset ($create)) $create=0;
-
 
21
if (!isset ($login)) $login='';
-
 
22
if (!isset ($selected)) $selected=array();
-
 
23
 
-
 
24
require('../lib/attrshow.php');
-
 
25
require('../lib/defaults.php');
-
 
26
require("../lib/$config[general_lib_type]/group_info.php");
-
 
27
 
28
if ($config['general_lib_type'] != 'sql'){
28
if ($config['general_lib_type'] != 'sql'){
29
	echo <<<EOM
29
	echo <<<EOM
30
<title>$l_title</title>
30
<title>$l_title</title>
31
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
31
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
32
<link rel="stylesheet" href="style.css">
32
<link rel="stylesheet" href="style.css">