XOOPS 2.5.6  Final
 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 
25 
26 ?>