Subversion Repositories ALCASAR

Rev

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

Rev 2168 Rev 2473
Line 3... Line 3...
3
 * Print tickets of the new user
3
 * Print tickets of the new user
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_user.php 2168 2017-04-18 17:39:54Z tom.houdayer $
8
 * @version   $Id: ticket_user.php 2473 2017-12-30 00:37:45Z 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 36... Line 36...
36
	'expiration'      => $exp_imp
36
	'expiration'      => $exp_imp
37
]);
37
]);
38
 
38
 
39
// Save the PDF and redirect user to it
39
// Save the PDF and redirect user to it
40
$filename = 'ticket_' . $log_imp . '.pdf';
40
$filename = 'ticket_' . $log_imp . '.pdf';
-
 
41
// Remove accents
-
 
42
$filename = strtr(utf8_decode($filename), utf8_decode('ŠŒŽšœžŸ¥µÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýÿ'), 'SOZsozYYuAAAAAAACEEEEIIIIDNOOOOOOUUUUYsaaaaaaaceeeeiiiionoooooouuuuyy'); // TODO : manage all UTF-8 chars
41
$ticketsGenerator->saveAs($filename);
43
$ticketsGenerator->saveAs($filename);
42
header('Location: ' . $filename);
44
header('Location: ' . $filename);