-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbeamer.php
37 lines (33 loc) · 1.07 KB
/
beamer.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
<?php
/**
* EGroupware digital ROCK Rankings: beamer / videowall support
*
* @package ranking
* @link http://www.egroupware.org
* @link http://www.digitalROCK.de
* @author Ralf Becker <[email protected]>
* @copyright 2011-17 by Ralf Becker <[email protected]>
*/
$GLOBALS['egw_info'] = array(
'flags' => array(
'currentapp' => 'ranking',
'nonavbar' => True,
'noheader' => True,
'autocreate_session_callback' => 'check_anon_access',
));
$_GET['cd'] = 'no'; // stop jdots framework
include('../header.inc.php');
/**
* Create anonymous session without checking credentials
*
* @param array &$anon_account anon account_info with keys 'login', 'passwd' and optional 'passwd_type'
* @return boolean|string string with sessionid or false on error (no anonymous user)
*/
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);
}
ranking_beamer::beamer();