PageRenderTime 32ms CodeModel.GetById 17ms app.highlight 11ms RepoModel.GetById 1ms app.codeStats 0ms

/source/includes/global.php

http://prosporous.googlecode.com/
PHP | 99 lines | 83 code | 3 blank | 13 comment | 2 complexity | 69f27b25a67c136d233a48963584f4cd MD5 | raw file
 1<?php
 2/**??????UTF-8???.
 3 * Created on 2010-5-28
 4 *
 5 * @author EXT <isrn@qq.com>
 6 *
 7 */
 8session_start();
 9header("Content-type: text/html; charset: UTF-8");
10error_reporting(0);
11define('ROOT_PATH','/');
12define('Js_path','');
13define('HTLJ','gl/');//????
14define('CPOYRIGHT','prosperous');//??
15define("DEFAULT_CHARSET" , 'utf8');
16define('BIC_ROOT',substr(dirname(__FILE__),0,-8));	//????
17$class=array(
18array('name'=>"Db","args"=>"sevenel",'handle'=>'d_sevenel'),
19array('name'=>"Tp","args"=>"",'handle'=>'Tp')
20);
21
22/*????*/
23if(function_exists('date_default_timezone_set')) {
24    @date_default_timezone_set("Asia/Shanghai");
25}
26//echo $_SERVER['DOCUMENT_ROOT'];
27require_once ($_SERVER['DOCUMENT_ROOT'].ROOT_PATH."includes/function/base.php");
28//require_once ($_SERVER['DOCUMENT_ROOT'].ROOT_PATH."includes/function/ext.php");
29iniClass($class);
30require_once ($_SERVER['DOCUMENT_ROOT'].ROOT_PATH."includes/classes/lm_page.php");
31//$Tp->debugging=true;
32require_once ($_SERVER['DOCUMENT_ROOT'].ROOT_PATH."includes/additional.php");
33//print_r(Sys::getc());
34switch($_SERVER['PHP_SELF']) {
35    case Sf('index.php',$_SERVER['PHP_SELF']): {
36		Tr('1','ms');
37		break;
38		}
39    case Sf('hotel.php',$_SERVER['PHP_SELF']): {
40		Tr('2','ms');
41		break;
42		}
43    case Sf('family.php',$_SERVER['PHP_SELF']): {
44		Tr('3','ms');
45		break;
46		}
47    case Sf('car.php',$_SERVER['PHP_SELF']): {
48		Tr('4','ms');
49		break;
50		}
51    case Sf('line.php',$_SERVER['PHP_SELF']): {
52		Tr('5','ms');
53		break;
54		}
55    case Sf('golf.php',$_SERVER['PHP_SELF']): {
56		Tr('6','ms');
57		break;
58		}
59    case Sf('yacht.php',$_SERVER['PHP_SELF']): {
60		Tr('7','ms');
61		break;
62		}
63    case Sf('diving.php',$_SERVER['PHP_SELF']): {
64		Tr('8','ms');
65		break;
66		}
67    case Sf('meeting.php',$_SERVER['PHP_SELF']): {
68		Tr('9','ms');
69		break;
70		}
71    case Sf('guide.php',$_SERVER['PHP_SELF']): {
72		Tr('10','ms');
73		break;
74		}
75    case Sf('shopping.php',$_SERVER['PHP_SELF']): {
76		Tr('11','ms');
77		break;
78		}
79    case Sf('bbs.php',$_SERVER['PHP_SELF']): {
80		Tr('12','ms');
81		break;
82		}
83   default: {
84		Tr('1','ms');
85		break;
86		}
87}
88mysql_query("set sql_mode=''");
89
90require_once(BIC_ROOT.'config.inc.php');
91
92//???????
93$activate_plugin = BIC_ROOT.'Plug-in/activate_plugin.php';
94if (is_file($activate_plugin)){
95    require 'classes/plugin.php';
96    require $activate_plugin;
97    //global.php???????
98    $plugin -> trigger('global_end');
99}