WARNING: count(): Parameter must be an array or an object that implements Countable in /www/wwwroot/test.com/protected/tmp/d2056a7f2abd760414a7cf4d46b82058.1758168471.detail_article.html.php on line 63
- /www/wwwroot/test.com/protected/lib/speed.php on line 524
519.
$msg = "ERROR";
520.
if($errno == E_WARNING)$msg = "WARNING";
521.
if($errno == E_NOTICE)$msg = "NOTICE";
522.
if($errno == E_STRICT)$msg = "STRICT";
523.
if($errno == 8192)$msg = "DEPRECATED";
524.
525.
err("$msg: $errstr in $errfile on line $errline");
}
526.
function err($msg){
527.
$msg = htmlspecialchars($msg);
528.
$traces = debug_backtrace();
529.
if(!empty($GLOBALS['err_handler'])){
- /www/wwwroot/test.com/protected/tmp/d2056a7f2abd760414a7cf4d46b82058.1758168471.detail_article.html.php on line 63
58.
<div class="prose max-w-none mb-8">
59.
<?php echo $record['content']; ?>
60.
</div>
61.
62.
<div class="flex flex-wrap gap-2 mb-8">
63.
64.
<?php if(!empty($record['tags'])){ $_foreach_tag_counter = 0; $_foreach_tag_total = count($record['tags']);?><?php foreach( $record['tags'] as $tag ) : ?><?php $_foreach_tag_index = $_foreach_tag_counter;$_foreach_tag_iteration = $_foreach_tag_counter + 1;$_foreach_tag_first = ($_foreach_tag_counter == 0);$_foreach_tag_last = ($_foreach_tag_counter == $_foreach_tag_total - 1);$_foreach_tag_counter++;?>
<span class="bg-gray-100 text-gray-700 px-3 py-1 rounded-full text-sm"><?php echo htmlspecialchars($tag, ENT_QUOTES, "UTF-8"); ?></span>
65.
<?php endforeach; }?>
66.
</div>
67.
68.
<div class="flex flex-wrap gap-3 mb-8">
- /www/wwwroot/test.com/protected/tmp/d856a5ab21f08a71ffb29ab2869b4b0a.1758264967.layout.html.php on line 261
256.
</div>
257.
</div>
258.
</div>
259.
</header>
260.
261.
262.
<?php include $_view_obj->compile($__template_file); ?>
263.
<!-- 底部 -->
264.
<footer class="bg-secondary text-white pt-12 pb-6">
265.
<div class="container mx-auto px-4 md:px-6">
266.
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 gap-8 mb-10">
- /www/wwwroot/test.com/protected/lib/speed.php on line 401
396.
$complied_file = $this->compile($tempalte_name);
397.
398.
@ob_start();
399.
extract($this->template_vals, EXTR_SKIP);
400.
$_view_obj = & $this;
401.
402.
include $complied_file;
403.
return ob_get_clean();
404.
}
405.
406.
public function assign($mixed, $val = ''){
- /www/wwwroot/test.com/protected/lib/speed.php on line 213
208.
$this->_auto_display = false;
209.
210.
if($return){
211.
return $this->_v->render($tpl_name);
212.
}else{
213.
214.
echo $this->_v->render($tpl_name);
}
215.
}
216.
}
217.
218.
class Model{
- /www/wwwroot/test.com/protected/controller/pc/MainController.php on line 2880
2875.
2876.
$this->display("pc/detail_game.html");
2877.
}else if($record["content_type"] == "article"){
2878.
// 获取相关推荐数据
2879.
$this->related_articles = $this->get_related_data("article", $record["category_name"], 5, $record["id"]);
2880.
2881.
$this->display("pc/detail_article.html");
}else if($record["content_type"] == "gzh"){
2882.
// 获取相关推荐数据
2883.
$this->related_officials = $this->get_related_data("gzh", $record["category_name"], 5, $record["id"]);
2884.
$this->display("pc/detail_official.html");
2885.
}else if($record["content_type"] == "xcx"){
- /www/wwwroot/test.com/protected/lib/speed.php on line 96
91.
exit;
92.
};
93.
if(!method_exists($controller_name, $action_name))_err_router("Err: Method '$action_name' of '$controller_name' is not exists!");
94.
95.
$controller_obj = new $controller_name();
96.
97.
$controller_obj->$action_name();
98.
if($controller_obj->_auto_display){
99.
$auto_tpl_name = (empty($__module) ? '' : $__module.DS).$__controller.'_'.$__action.'.html';
100.
if(file_exists(APP_DIR.DS.'protected'.DS.'view'.DS.$auto_tpl_name))$controller_obj->display($auto_tpl_name);
101.
}
- /www/wwwroot/test.com/index.php on line 8
3.
header('Access-Control-Allow-Origin: *');
4.
header('Access-Control-Allow-Methods: GET, POST, OPTIONS');
5.
header('Access-Control-Allow-Headers: Content-Type, Authorization, X-Requested-With');
6.
define('APP_DIR', realpath('./'));
7.
define("APP_PATH",dirname(__FILE__));
8.
require(APP_DIR.'/protected/lib/speed.php');