/source/includes/global.php
PHP | 99 lines | 83 code | 3 blank | 13 comment | 2 complexity | 69f27b25a67c136d233a48963584f4cd MD5 | raw file
Possible License(s): LGPL-2.1
- <?php
- /**??????UTF-8???.
- * Created on 2010-5-28
- *
- * @author EXT <isrn@qq.com>
- *
- */
- session_start();
- header("Content-type: text/html; charset: UTF-8");
- error_reporting(0);
- define('ROOT_PATH','/');
- define('Js_path','');
- define('HTLJ','gl/');//????
- define('CPOYRIGHT','prosperous');//??
- define("DEFAULT_CHARSET" , 'utf8');
- define('BIC_ROOT',substr(dirname(__FILE__),0,-8)); //????
- $class=array(
- array('name'=>"Db","args"=>"sevenel",'handle'=>'d_sevenel'),
- array('name'=>"Tp","args"=>"",'handle'=>'Tp')
- );
-
- /*????*/
- if(function_exists('date_default_timezone_set')) {
- @date_default_timezone_set("Asia/Shanghai");
- }
- //echo $_SERVER['DOCUMENT_ROOT'];
- require_once ($_SERVER['DOCUMENT_ROOT'].ROOT_PATH."includes/function/base.php");
- //require_once ($_SERVER['DOCUMENT_ROOT'].ROOT_PATH."includes/function/ext.php");
- iniClass($class);
- require_once ($_SERVER['DOCUMENT_ROOT'].ROOT_PATH."includes/classes/lm_page.php");
- //$Tp->debugging=true;
- require_once ($_SERVER['DOCUMENT_ROOT'].ROOT_PATH."includes/additional.php");
- //print_r(Sys::getc());
- switch($_SERVER['PHP_SELF']) {
- case Sf('index.php',$_SERVER['PHP_SELF']): {
- Tr('1','ms');
- break;
- }
- case Sf('hotel.php',$_SERVER['PHP_SELF']): {
- Tr('2','ms');
- break;
- }
- case Sf('family.php',$_SERVER['PHP_SELF']): {
- Tr('3','ms');
- break;
- }
- case Sf('car.php',$_SERVER['PHP_SELF']): {
- Tr('4','ms');
- break;
- }
- case Sf('line.php',$_SERVER['PHP_SELF']): {
- Tr('5','ms');
- break;
- }
- case Sf('golf.php',$_SERVER['PHP_SELF']): {
- Tr('6','ms');
- break;
- }
- case Sf('yacht.php',$_SERVER['PHP_SELF']): {
- Tr('7','ms');
- break;
- }
- case Sf('diving.php',$_SERVER['PHP_SELF']): {
- Tr('8','ms');
- break;
- }
- case Sf('meeting.php',$_SERVER['PHP_SELF']): {
- Tr('9','ms');
- break;
- }
- case Sf('guide.php',$_SERVER['PHP_SELF']): {
- Tr('10','ms');
- break;
- }
- case Sf('shopping.php',$_SERVER['PHP_SELF']): {
- Tr('11','ms');
- break;
- }
- case Sf('bbs.php',$_SERVER['PHP_SELF']): {
- Tr('12','ms');
- break;
- }
- default: {
- Tr('1','ms');
- break;
- }
- }
- mysql_query("set sql_mode=''");
-
- require_once(BIC_ROOT.'config.inc.php');
-
- //???????
- $activate_plugin = BIC_ROOT.'Plug-in/activate_plugin.php';
- if (is_file($activate_plugin)){
- require 'classes/plugin.php';
- require $activate_plugin;
- //global.php???????
- $plugin -> trigger('global_end');
- }