Platform
3.1
PHP API documentation
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
guest.php
Go to the documentation of this file.
1
<?php
2
/*
3
* @author Anakeen
4
* @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
5
* @package FDL
6
*/
7
/**
8
* Main program to activate action in WHAT software in guest mode
9
*
10
* @author Anakeen 2000
11
* @version $Id: guest.php,v 1.24 2008/12/16 15:51:53 jerome Exp $
12
* @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
13
* @package FDL
14
* @subpackage
15
*/
16
/**
17
*/
18
19
if
(file_exists(
'maintenance.lock'
)) {
20
include_once (
'TOOLBOX/stop.php'
);
21
exit
(0);
22
}
23
24
include_once (
'WHAT/Lib.Main.php'
);
25
26
$authtype
=
getAuthType
();
27
if
(
$authtype
!=
'basic'
) {
28
unset(
$_SERVER
[
'PHP_AUTH_USER'
]);
29
}
30
#
31
# This is the main body of App manager
32
# It is used to launch application and
33
# function giving them all necessary environment
34
# element
35
#
36
#
37
getmainAction($auth,
$action
);
38
39
if
(
$action
->user->id !=
ANONYMOUS_ID
) {
40
// reopen a new anonymous session
41
setcookie(
'freedom_param'
, $session->id, 0);
42
unset(
$_SERVER
[
'PHP_AUTH_USER'
]);
// cause IE send systematicaly AUTH_USER & AUTH_PASSWD
43
$session->Set(
""
);
44
$core
->SetSession($session);
45
}
46
if
(
$action
->user->id !=
ANONYMOUS_ID
) {
47
// reverify
48
print
"<B>:~((</B>"
;
49
exit
;
50
}
51
52
executeAction
(
$action
);
53
?>
← centre documentaire
© anakeen
- published under
CC License
-
Dynacase