-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathathlete.php
41 lines (36 loc) · 1.26 KB
/
athlete.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/**
* EGroupware digital ROCK Rankings - athlete self service
*
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @package ranking
* @link http://www.egroupware.org
* @link http://www.digitalROCK.de
* @author Ralf Becker <[email protected]>
* @copyright 2006-18 by Ralf Becker <[email protected]>
*/
use EGroupware\Ranking\Selfservice;
$GLOBALS['egw_info'] = array(
'flags' => array(
'currentapp' => 'ranking',
'nonavbar' => True,
'noheader' => true,
'deny_mobile' => true, // deny use of 16.1 mobile support
'autocreate_session_callback' => 'check_anon_access',
));
include('../header.inc.php');
/**
* Check if we allow anon access and with which creditials
*
* @param array &$anon_account anon account_info with keys 'login', 'passwd' and optional 'passwd_type'
* @return boolean true if we allow anon access, false otherwise
*/
function check_anon_access(&$anon_account)
{
$anon_account = null;
// create session without checking auth: create(..., false, false)
return $GLOBALS['egw']->session->create('anonymous@'.$GLOBALS['egw_info']['user']['domain'],
'', 'text', false, false);
}
$selfservice = new Selfservice();
$selfservice->process($_REQUEST['PerId'], $_REQUEST['action']);