Subversion Repositories ALCASAR

Rev

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

Rev 2168 Rev 2285
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 2168 2017-04-18 17:39:54Z tom.houdayer $
8
 * @version   $Id: ticket_voucher.php 2285 2017-06-20 08:15:55Z 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 25... Line 25...
25
	exit();
25
	exit();
26
}
26
}
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
 
31
 
31
if ($config['general_lib_type'] === 'sql' && $config['sql_use_operators'] === 'true') {
32
if ($config['general_lib_type'] === 'sql' && $config['sql_use_operators'] === 'true') {
32
	$show_ops = 1;
33
	$show_ops = 1;
33
	$colspan  = 2;
34
	$colspan  = 2;
34
} else {
35
} else {