-
D:\WwwRoot\dtdata.cn\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 */ -
D:\WwwRoot\dtdata.cn\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 /** -
D:\WwwRoot\dtdata.cn\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 // 数据库 -
D:\WwwRoot\dtdata.cn\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 } -
D:\WwwRoot\dtdata.cn\dayrui\Fcms\Core\Service.php : 422 — Phpcmf\Model->__construct ()
415 if (class_exists($newClassName2)) { 416 static::$instances[$_cname] = new $newClassName2(); 417 return static::$instances[$_cname]; 418 } 419 } 420 } 421 422 static::$instances[$_cname] = new $newClassName(); 423 } 424 425 return static::$instances[$_cname]; 426 } 427 428 /** 429 * 引用应用的helper -
D:\WwwRoot\dtdata.cn\dayrui\Fcms\Core\Phpcmf.php : 312 — Phpcmf\Service::M ()
305 } 306 } 307 } elseif (dr_is_app('httpapi') && \Phpcmf\Service::L('input')->request('appid')) { 308 define('IS_API_HTTP', 1); 309 \Phpcmf\Service::M('http', 'httpapi')->check_auth(); 310 } else { 311 define('IS_API_HTTP', 0); 312 $this->uid = (int)\Phpcmf\Service::M('member')->member_uid(); 313 $this->member = \Phpcmf\Service::M('member')->get_member($this->uid); 314 if (!$this->member) { 315 $this->uid = 0; 316 } 317 // 验证账号cookie的有效性 318 if ($this->member && !\Phpcmf\Service::M('member')->check_member_cookie($this->member)) { 319 $this->uid = 0; -
D:\WwwRoot\dtdata.cn\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) { -
D:\WwwRoot\dtdata.cn\dayrui\System\Init.php : 402 — Frame\Run->bootWeb ()
395 $tool->respond(); 396 }); 397 } 398 399 400 // 启动框架 401 $run = new \Frame\Run(); 402 $run->bootWeb(); 403 404 -
require D:\WwwRoot\dtdata.cn\dayrui\Fcms\Init.php — require()
-
require D:\WwwRoot\dtdata.cn\index.php — require()