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