-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathguest.php
More file actions
53 lines (48 loc) · 1.22 KB
/
guest.php
File metadata and controls
53 lines (48 loc) · 1.22 KB
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
47
48
49
50
51
52
53
<?php
/*
* @author Anakeen
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License
* @package FDL
*/
/**
* Main program to activate action in WHAT software in guest mode
*
* @author Anakeen 2000
* @version $Id: guest.php,v 1.24 2008/12/16 15:51:53 jerome Exp $
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License
* @package FDL
* @subpackage
*/
/**
*/
if (file_exists('maintenance.lock')) {
include_once ('TOOLBOX/stop.php');
exit(0);
}
include_once ('WHAT/Lib.Main.php');
$authtype = getAuthType();
if ($authtype != 'basic') {
unset($_SERVER['PHP_AUTH_USER']);
}
#
# This is the main body of App manager
# It is used to launch application and
# function giving them all necessary environment
# element
#
#
getmainAction($auth, $action);
if ($action->user->id != ANONYMOUS_ID) {
// reopen a new anonymous session
setcookie('freedom_param', $session->id, 0);
unset($_SERVER['PHP_AUTH_USER']); // cause IE send systematicaly AUTH_USER & AUTH_PASSWD
$session->Set("");
$core->SetSession($session);
}
if ($action->user->id != ANONYMOUS_ID) {
// reverify
print "<B>:~((</B>";
exit;
}
executeAction($action);
?>