-
/www/wwwroot/www.jingmu.net/dayrui/System/Database/MySQLi/Connection.php : 336 — mysqli->query ()
329 $this->connID->next_result(); 330 if ($res = $this->connID->store_result()) { 331 $res->free(); 332 } 333 } 334 335 try { 336 return $this->connID->query($this->prepQuery($sql), $this->resultMode); 337 } catch (mysqli_sql_exception $e) { 338 log_message('error', (string) $e); 339 340 if ($this->DBDebug) { 341 throw new DatabaseException($e->getMessage(), $e->getCode(), $e); 342 } 343 } -
/www/wwwroot/www.jingmu.net/dayrui/System/Database/BaseConnection.php : 736 — CodeIgniter\Database\MySQLi\Connection->execute ()
729 */ 730 public function simpleQuery(string $sql) 731 { 732 if (empty($this->connID)) { 733 $this->initialize(); 734 } 735 736 return $this->execute($sql); 737 } 738 739 /** 740 * Disable Transactions 741 * 742 * This permits transactions to be disabled at run-time. 743 * -
/www/wwwroot/www.jingmu.net/dayrui/System/Database/BaseConnection.php : 653 — CodeIgniter\Database\BaseConnection->simpleQuery ()
646 647 return $query; 648 } 649 650 // Run the query for real 651 try { 652 $exception = null; 653 $this->resultID = $this->simpleQuery($query->getQuery()); 654 } catch (DatabaseException $exception) { 655 $this->resultID = false; 656 } 657 658 if ($this->resultID === false) { 659 $query->setDuration($startTime, $startTime); 660 -
/www/wwwroot/www.jingmu.net/dayrui/System/Database/BaseBuilder.php : 2521 — CodeIgniter\Database\BaseConnection->query ()
2514 } 2515 2516 $sql = $this->_update($this->QBFrom[0], $this->QBSet); 2517 2518 if (! $this->testMode) { 2519 $this->resetWrite(); 2520 2521 $result = $this->db->query($sql, $this->binds, false); 2522 2523 if ($result !== false) { 2524 // Clear our binds so we don't eat up memory 2525 $this->binds = []; 2526 2527 return true; 2528 } -
/www/wwwroot/www.jingmu.net/dayrui/App/Updatetime/Models/My.php : 12 — CodeIgniter\Database\BaseBuilder->update ()
5 6 // 这是插件的类模型方法 控制器调用方法是: 7 // \Phpcmf\Service::M('my', 'myapp')->test(); 8 // 'my' 表示文件名,'myapp'表示插件目录 9 public function updatetime($id,$mid,$time) { 10 11 //$res=\Phpcmf\Service::M()->table_site($mid)->update($id,['updatetime' => time()]); 12 $res=\Phpcmf\Service::M()->db->table(SITE_ID.'_'.$mid)->where('id',$id)->update(['updatetime' => $time]); 13 return $res; 14 } 15 public function autoupdatetime($config) { 16 if(empty($config))return; 17 $adaynum=empty($config['adaynum']) ? 10:(int)$config['adaynum']; 18 $udaynum=(int)$config['udaynum']; 19 //$date=date("Y-m-d",strtotime('-10day')); -
/www/wwwroot/www.jingmu.net/dayrui/App/Updatetime/Config/Hooks.php : 12 — Phpcmf\Model\Updatetime\My->updatetime ()
5 $thisconfig=\Phpcmf\Service::M('app')->get_config('updatetime'); 6 // 7 if ($thisconfig['visitswitch']==1 && !IS_ADMIN &&dr_strpos(\Phpcmf\Service::L('Router')->uri(),"show/index")!==false && in_array(\Phpcmf\Service::C()->module['dirname'],$thisconfig['mid'])){ 8 $adaynum=empty($thisconfig['adaynum']) ? 10:(int)$thisconfig['adaynum']; 9 $beforedate=date("Y-m-d",strtotime('-'.$adaynum.'day')); 10 $datestr=strtotime($beforedate); 11 if($data['_updatetime']<$datestr){ 12 \Phpcmf\Service::M('My', 'Updatetime')->updatetime($data['id'],MOD_DIR,time()); 13 } 14 15 } 16 17 }); -
{PHP internal code} — Phpcmf\Service::{closure} ()
-
/www/wwwroot/www.jingmu.net/dayrui/Fcms/Core/Hooks.php : 337 — call_user_func()
-
/www/wwwroot/www.jingmu.net/dayrui/Fcms/Core/View.php : 293 — Phpcmf\Hooks::trigger ()
286 287 $LANG_PATH = LANG_PATH; 288 $THEME_PATH = THEME_PATH; 289 290 $_temp_file = $this->load_view_file($_view_file); 291 292 // 挂钩点 模板加载之后 293 \Phpcmf\Hooks::trigger('cms_view', $this->_options, $_temp_file); 294 295 include $_temp_file; 296 297 // 挂钩点 模板结束之后 298 \Phpcmf\Hooks::trigger('cms_view_end'); 299 300 $this->_view_time = round(microtime(true) - $phpcmf_start, 2); -
/www/wwwroot/www.jingmu.net/dayrui/App/Cms/Extends/Home/Module.php : 707 — Phpcmf\View->display ()
700 'related' => $related, 701 'urlrule' => dr_module_show_url($this->module, $data, '[page]'), 702 'fix_html_now_url' => defined('SC_HTML_FILE') ? dr_url_prefix(dr_module_show_url($this->module, $data, $page), $this->module['dirname'], SITE_ID, \Phpcmf\Service::IS_MOBILE_TPL()) : '', // 修复静态下的当前url变量 703 ]); 704 705 \Phpcmf\Service::V()->module($this->module['dirname']); 706 $data['phpcmf_tpl'] = isset($data['template']) && strpos($data['template'], '.html') !== FALSE && is_file(\Phpcmf\Service::V()->get_dir().$data['template']) ? $data['template'] : ($cat['setting']['template']['show'] ? $cat['setting']['template']['show'] : 'show.html'); 707 !$rt && \Phpcmf\Service::V()->display($data['phpcmf_tpl']); 708 709 return $data; 710 } 711 712 // 模块草稿、审核、定时、内容页 713 protected function _MyShow($type, $id = 0, $page = 1) { 714 -
/www/wwwroot/www.jingmu.net/dayrui/Fcms/Control/Show.php : 34 — Phpcmf\Home\Module->_Show ()
27 $this->goto_404_page(dr_lang('无法通过id找到共享模块的模块目录')); 28 } 29 30 // 初始化模块 31 $this->_module_init($mid); 32 33 // 调用内容方法 34 $this->_Show($id, null, max(1, (int)\Phpcmf\Service::L('input')->get('page'))); 35 } 36 37 } 38 -
/www/wwwroot/www.jingmu.net/dayrui/System/Extend/Run.php : 149 — Phpcmf\Control\Show->index ()
142 'value' => $value 143 ]); 144 145 } 146 } 147 } 148 149 $app->$method(); 150 151 if (CI_DEBUG) { 152 $tool = new \CodeIgniter\Debug\Toolbar(config(\Config\Toolbar::class)); 153 $tool->prepare($this); 154 } 155 156 -
/www/wwwroot/www.jingmu.net/dayrui/System/Init.php : 408 — Frame\Run->bootWeb ()
401 $tool->respond(); 402 }); 403 } 404 405 406 // 启动框架 407 $run = new \Frame\Run(); 408 $run->bootWeb(); 409 410 -
require /www/wwwroot/www.jingmu.net/dayrui/Fcms/Init.php — require()
-
require /www/wwwroot/www.jingmu.net/public/index.php — require()