-
/www/sites/www.hstztc.cn/index/dayrui/System/Database/Database.php : 61 — CodeIgniter\Database\Database->initDriver ()
54 55 if (empty($params['DBDriver'])) { 56 throw new InvalidArgumentException('You have not selected a database type to connect to.'); 57 } 58 59 assert($this->checkDbExtension($params['DBDriver'])); 60 61 $this->connections[$alias] = $this->initDriver($params['DBDriver'], 'Connection', $params); 62 63 return $this->connections[$alias]; 64 } 65 66 /** 67 * Creates a Forge instance for the current database type. 68 */ -
/www/sites/www.hstztc.cn/index/dayrui/System/Database/Config.php : 82 — CodeIgniter\Database\Database->load ()
75 76 if ($getShared && isset(static::$instances[$group])) { 77 return static::$instances[$group]; 78 } 79 80 static::ensureFactory(); 81 82 $connection = static::$factory->load($config, $group); 83 84 static::$instances[$group] = $connection; 85 86 return $connection; 87 } 88 89 /** -
/www/sites/www.hstztc.cn/index/dayrui/System/Extend/Model.php : 19 — CodeIgniter\Database\Config::connect ()
12 static function _load_db() { 13 14 // 数据库 15 if (self::$db) { 16 return [self::$db, self::$db->DBPrefix]; 17 } 18 19 self::$db = \Config\Database::connect('default'); 20 21 return [self::$db, self::$db->DBPrefix]; 22 } 23 24 static function _load_db_source($name) { 25 26 // 数据库 -
/www/sites/www.hstztc.cn/index/dayrui/Fcms/Core/Model.php : 43 — Frame\Model::_load_db ()
36 37 protected $date_field; 38 protected $param; 39 protected $init; 40 41 public function __construct() { 42 43 list($this->db, $this->prefix) = \Frame\Model::_load_db(); 44 45 $this->uid = \Phpcmf\Service::C()->uid; 46 $this->site = \Phpcmf\Service::C()->site; 47 $this->admin = \Phpcmf\Service::C()->admin; 48 $this->member = \Phpcmf\Service::C()->member; 49 $this->siteid = defined('SITE_ID') ? SITE_ID : 0; 50 } -
/www/sites/www.hstztc.cn/index/dayrui/Fcms/Core/Service.php : 456 — Phpcmf\Model->__construct ()
449 if (class_exists($newClassName2)) { 450 static::$instances[$_cname] = new $newClassName2(); 451 return static::$instances[$_cname]; 452 } 453 } 454 } 455 456 static::$instances[$_cname] = new $newClassName(); 457 } 458 459 return static::$instances[$_cname]; 460 } 461 462 /** 463 * 引用应用的helper -
/www/sites/www.hstztc.cn/index/dayrui/Fcms/Core/Phpcmf.php : 319 — Phpcmf\Service::M ()
312 } 313 } 314 } elseif (dr_is_app('httpapi') && \Phpcmf\Service::L('input')->request('appid')) { 315 define('IS_API_HTTP', 1); 316 \Phpcmf\Service::M('http', 'httpapi')->check_auth(); 317 } else { 318 define('IS_API_HTTP', 0); 319 $this->uid = (int)\Phpcmf\Service::M('member')->member_uid(); 320 $this->member = \Phpcmf\Service::M('member')->get_member($this->uid); 321 if (!$this->member) { 322 $this->uid = 0; 323 } 324 // 验证账号cookie的有效性 325 if ($this->member && !\Phpcmf\Service::M('member')->check_member_cookie($this->member)) { 326 $this->uid = 0; -
/www/sites/www.hstztc.cn/index/dayrui/System/Extend/Run.php : 115 — Phpcmf\Common->__construct ()
108 109 $class = $namespace.'\\'.$controller; 110 if (! class_exists($class)) { 111 throw \CodeIgniter\Exceptions\PageNotFoundException::forControllerNotFound($class); 112 exit('<font color=red>控制器不存在</font>'); 113 } 114 115 $app = new $class; 116 117 if (! method_exists($app, $method)) { 118 throw \CodeIgniter\Exceptions\PageNotFoundException::forMethodNotFound($class, $method); 119 exit('<font color=red>方法不存在</font>'); 120 } 121 122 if (IS_POST && SYS_CSRF) { -
/www/sites/www.hstztc.cn/index/dayrui/System/Init.php : 404 — Frame\Run->bootWeb ()
397 $tool->respond(); 398 }); 399 } 400 401 402 // 启动框架 403 $run = new \Frame\Run(); 404 $run->bootWeb(); 405 406 -
require /www/sites/www.hstztc.cn/index/dayrui/Fcms/Init.php — require()
-
require /www/sites/www.hstztc.cn/index/public/index.php — require()