-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstarter.php
46 lines (40 loc) · 1.27 KB
/
starter.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
42
43
44
45
46
<?php
/**
* eGroupWare digital ROCK Rankings
*
* @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-8 by Ralf Becker <[email protected]>
* @version $Id$
*/
$GLOBALS['egw_info'] = array(
'flags' => array(
'currentapp' => 'ranking',
'nonavbar' => True,
'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);
}
// allow to switch cat and route
if (isset($_POST['exec']))
{
$_GET = array_merge($_GET,$_POST['exec']);
}
$GLOBALS['Common_BO'] = new stdClass;
echo (new \EGroupware\Ranking\Registration\Ui())->index();
echo "</body>\n</html>\n";