Subversion Repositories ALCASAR

Rev

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

Rev 2285 Rev 2311
Line 3... Line 3...
3
 * Print tickets of new users
3
 * Print tickets of new users
4
 *
4
 *
5
 * @author    Tom Houdayer
5
 * @author    Tom Houdayer
6
 * @copyright Copyright (C) ALCASAR (http://www.alcasar.net)
6
 * @copyright Copyright (C) ALCASAR (http://www.alcasar.net)
7
 * @license   GPL-3.0
7
 * @license   GPL-3.0
8
 * @version   $Id: ticket_voucher.php 2285 2017-06-20 08:15:55Z tom.houdayer $
8
 * @version   $Id: ticket_voucher.php 2311 2017-06-26 15:04:47Z tom.houdayer $
9
 */
9
 */
10
 
10
 
11
require_once __DIR__ . '/../lib/alcasar/TicketsGenerator.php';
11
require_once __DIR__ . '/../lib/alcasar/TicketsGenerator.php';
12
require_once '/etc/freeradius-web/config.php';
12
require_once '/etc/freeradius-web/config.php';
13
require_once '../lib/sql/drivers/'.$config['sql_type'].'/functions.php';;
13
require_once '../lib/sql/drivers/'.$config['sql_type'].'/functions.php';;
Line 27... Line 27...
27
$nbTickets  = (int)$_POST['nbtickets'];
27
$nbTickets  = (int)$_POST['nbtickets'];
28
$langue_imp = ((isset($_POST['langue_imp'])) ? $_POST['langue_imp'] : 'en');
28
$langue_imp = ((isset($_POST['langue_imp'])) ? $_POST['langue_imp'] : 'en');
29
require_once __DIR__ . '/../lib/langues_imp.php';
29
require_once __DIR__ . '/../lib/langues_imp.php';
30
require_once __DIR__ . '/../lib/langues.php';
30
require_once __DIR__ . '/../lib/langues.php';
31
 
31
 
32
if ($config['general_lib_type'] === 'sql' && $config['sql_use_operators'] === 'true') {
-
 
33
	$show_ops = 1;
-
 
34
	$colspan  = 2;
-
 
35
} else {
-
 
36
	$show_ops = 0;
-
 
37
	$colspan  = 1;
-
 
38
}
-
 
39
if ($config['sql_use_operators'] === 'true') {
32
if ($config['sql_use_operators'] === 'true') {
40
	$text      = ',op';
33
	$text      = ',op';
41
	$passwd_op = ",':='";
34
	$passwd_op = ",':='";
42
}
35
}
43
 
36