Subversion Repositories ALCASAR

Rev

Rev 2699 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2699 Rev 2700
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 2699 2019-02-05 10:29:25Z tom.houdayer $
8
 * @version   $Id: ticket_voucher.php 2700 2019-02-05 10:34:12Z tom.houdayer $
9
 */
9
 */
10
 
10
 
11
require_once __DIR__ . '/../lib/alcasar/TicketsGenerator.php';
11
require_once __DIR__ . '/../lib/alcasar/TicketsGenerator.php';
12
$langue_imp = ((isset($_POST['langue_imp'])) ? $_POST['langue_imp'] : 'en');
12
$langue_imp = ((isset($_POST['langue_imp'])) ? $_POST['langue_imp'] : 'en');
13
require_once __DIR__ . '/../lib/langues_imp.php';
13
require_once __DIR__ . '/../lib/langues_imp.php';
Line 72... Line 72...
72
 
72
 
73
ob_start();
73
ob_start();
74
$nbFailUsers = 0;
74
$nbFailUsers = 0;
75
for ($i = 0; $i < $nbTickets; $i++) {
75
for ($i = 0; $i < $nbTickets; $i++) {
76
	// Generate username and password
76
	// Generate username and password
77
	$login    = generateRandomString(8);
77
	$login  = generateRandomString(8);
78
	$password = generateRandomString(12);
78
	$passwd = generateRandomString(12);
-
 
79
	$password = $passwd;
79
	
80
	
80
	// Check user exist
81
	// Check user exist
81
	require '../lib/'.$config['general_lib_type'].'/user_info.php';
82
	require '../lib/'.$config['general_lib_type'].'/user_info.php';
82
	if ($user_exists === 'yes') {
83
	if ($user_exists === 'yes') {
83
		$nbFailUsers++;
84
		$nbFailUsers++;