XOOPS 2.5.6
Final
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Pages
precheck.inc.php
Go to the documentation of this file.
1
<?php
2
3
require_once dirname(__FILE__).
'/precheck_functions.php'
;
4
5
if
( class_exists(
'Database'
) ) {
6
require dirname(__FILE__).
'/postcheck.inc.php'
;
7
return
;
8
}
9
10
define(
'PROTECTOR_PRECHECK_INCLUDED'
, 1 ) ;
11
define(
'PROTECTOR_VERSION'
, file_get_contents( dirname(__FILE__).
'/version.txt'
) ) ;
12
13
// set $_SERVER['REQUEST_URI'] for IIS
14
if
( empty(
$_SERVER
[
'REQUEST_URI'
] ) ) {
// Not defined by IIS
15
// Under some configs, IIS makes SCRIPT_NAME point to php.exe :-(
16
if
( !(
$_SERVER
[
'REQUEST_URI'
] = @
$_SERVER
[
'PHP_SELF'
] ) ) {
17
$_SERVER
[
'REQUEST_URI'
] =
$_SERVER
[
'SCRIPT_NAME'
];
18
}
19
if
( isset(
$_SERVER
[
'QUERY_STRING'
] ) ) {
20
$_SERVER
[
'REQUEST_URI'
] .=
'?'
.
$_SERVER
[
'QUERY_STRING'
];
21
}
22
}
23
24
protector_prepare
() ;
25
26
?>
L:
0xoops
xoops-2.5.6
htdocs
xoops_lib
modules
protector
include
precheck.inc.php
Generated on Fri May 10 2013 01:04:29 for XOOPS 2.5.6 by
1.8.3.1