SELECT * FROM categories WHERE language = 'zh_cn' ORDER BY category_id 执行错误
- /www/wwwroot/www.ccpv.net.nc/JedooPHP/Drivers/sqlite.php on line 183
178.
179.
$result = $this->db->query($sql);
180.
181.
if($result===false)
182.
//echo "查询出错!{$sql}";
183.
184.
JError("{$sql} 执行错误");
185.
$this->lastResult = $result;
186.
return $result;
187.
}
188.
- /www/wwwroot/www.ccpv.net.nc/JedooPHP/Drivers/sqlite.php on line 62
57.
*/
58.
public function getArray($sql)
59.
{
60.
$this->arrSql[] = $sql;
61.
62.
63.
$result = $this->exec($sql);
//make sure the result is valid
64.
if($result=== false || $result===NULL)
65.
return NULL; // error
66.
if(!is_object($result)) // no rows returned
67.
return array();
- /www/wwwroot/www.ccpv.net.nc/JedooPHP/MVC/JModel.php on line 134
129.
}elseif(trim($this->pk)!=''){
130.
$sort = "ORDER BY {$this->pk}";
131.
}
132.
$sql = "SELECT {$fields} FROM {$this->tbl_name} {$where} {$sort}";
133.
if(null != $limit)$sql = $this->_db->setlimit($sql, $limit);
134.
135.
return $this->_db->getArray($sql);
}
136.
137.
/**
138.
* 过滤转义字符
139.
*
- /www/wwwroot/www.ccpv.net.nc/modules/categories/categories.php on line 277
272.
}
273.
}
274.
}
275.
}
276.
277.
278.
$treelist = $categories->getAll($cond);
if($treelist) {
279.
if($show_parent) {
280.
$count = count($treelist) - 1;
281.
}
282.
else {
- /www/wwwroot/www.ccpv.net.nc/modules/JCall.php on line 53
48.
if($module_handle->template_name) {
49.
$temp_template_name = $module_handle->template_name;
50.
unset($module_handle->template_name);
51.
}
52.
if(method_exists($module_handle, $actionFunc)){
53.
54.
$module_handle->$actionFunc($params);
if(FALSE != $GLOBALS['G_JCONFIG']['view']['auto_display']){
55.
if(isset($module_handle->template_name)) {
56.
if($module_handle->template_name != '') {
57.
$tpl = $module.$GLOBALS['G_JCONFIG']['view']['auto_display_sep'].
58.
$module_handle->template_name.$GLOBALS['G_JCONFIG']['view']['template_file_suffix']; // 拼装模板路径
- /www/wwwroot/www.ccpv.net.nc/tmp/cec33791fed6f9747d9c555fd2ff5139037ae662.file.articles_show.tpl.php on line 115
110.
111.
<div id="main-nav-wrapper">
112.
<div class="container">
113.
<ul id="main-nav" class="dropdown main-menu">
114.
<!--<ul id="main-nav" class="dropdown main-menu">-->
115.
116.
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['JCall'][0][0]->__template_JCall(array('module'=>'categories','action'=>'treelist','tpl'=>'main_menu'),$_smarty_tpl);?>
117.
</ul>
118.
</div>
119.
</div>
120.
- /www/wwwroot/www.ccpv.net.nc/JedooPHP/Drivers/Smarty/sysplugins/smarty_internal_template.php on line 432
427.
$_smarty_tpl = $this;
428.
ob_start();
429.
if ($this->resource_object->isEvaluated) {
430.
eval("?>" . $this->compiled_template);
431.
} else {
432.
433.
include($this->getCompiledFilepath ());
// check file dependencies at compiled code
434.
if ($this->smarty->compile_check) {
435.
if (!empty($this->properties['file_dependency'])) {
436.
$this->mustCompile = false;
437.
$resource_type = null;
- /www/wwwroot/www.ccpv.net.nc/JedooPHP/Drivers/Smarty/sysplugins/smarty_internal_template.php on line 567
562.
if ($this->isCached === null) {
563.
$this->isCached(false);
564.
}
565.
if (!$this->isCached) {
566.
// render template (not loaded and not in cache)
567.
568.
$this->renderTemplate();
}
569.
}
570.
$this->updateParentVariables();
571.
$this->isCached = null;
572.
return $this->rendered_content;
- /www/wwwroot/www.ccpv.net.nc/JedooPHP/Drivers/Smarty/Smarty.class.php on line 338
333.
}
334.
// return rendered template
335.
if ((!$this->caching || $_template->resource_object->isEvaluated) && (isset($this->autoload_filters['output']) || isset($this->registered_filters['output']))) {
336.
$_output = Smarty_Internal_Filter_Handler::runFilter('output', $_template->getRenderedTemplate(), $_template);
337.
} else {
338.
339.
$_output = $_template->getRenderedTemplate();
}
340.
$_template->rendered_content = null;
341.
if (isset($this->error_reporting)) {
342.
error_reporting($_smarty_old_error_level);
343.
}
- /www/wwwroot/www.ccpv.net.nc/JedooPHP/Drivers/Smarty/Smarty.class.php on line 382
377.
* @param object $parent next higher level of Smarty variables
378.
*/
379.
public function display($template, $cache_id = null, $compile_id = null, $parent = null)
380.
{
381.
// display template
382.
383.
$this->fetch ($template, $cache_id, $compile_id, $parent, true);
}
384.
385.
/**
386.
* test if cache i valid
387.
*
- /www/wwwroot/www.ccpv.net.nc/JedooPHP/MVC/JView.php on line 56
51.
{
52.
try {
53.
$this->addfuncs();
54.
$this->displayed = TRUE;
55.
if($GLOBALS['G_JCONFIG']['view']['debugging'] && debugMode)$this->engine->debugging = TRUE;
56.
57.
$this->engine->display($tplname);
} catch (Exception $e) {
58.
JError( $GLOBALS['G_JCONFIG']['view']['engine_name']. ' Error: '.$e->getMessage() );
59.
}
60.
}
61.
- /www/wwwroot/www.ccpv.net.nc/JedooPHP/MVC/JController.php on line 155
150.
public function display($tplname, $output = TRUE)
151.
{
152.
@ob_start();
153.
header('Cache-control: private, must-revalidate');
154.
if(TRUE == $GLOBALS['G_JCONFIG']['view']['enabled']){
155.
156.
$this->v->display($tplname);
}else{
157.
extract($this->__template_vals);
158.
require($tplname);
159.
}
160.
if( TRUE != $output )return ob_get_clean();
- /www/wwwroot/www.ccpv.net.nc/modules/moduleController.php on line 93
88.
public function auto_display($tplname, $force)
89.
{
90.
if( $force || (TRUE != $this->v->displayed && FALSE != $GLOBALS['G_JCONFIG']['view']['auto_display'])){
91.
$tplpath = $this->getTplPath($tplname);
92.
if($tplpath){
93.
94.
$this->display($tplpath);
}
95.
else {
96.
JError("模板文件{$tplname}不存在!");
97.
}
98.
/*$tpl_info = explode('_', $tplname);
- /www/wwwroot/www.ccpv.net.nc/JedooPHP/JFunctions.php on line 56
51.
else {
52.
$__tplname = $__controller.$GLOBALS['G_JCONFIG']['view']['auto_display_sep'].
53.
$__action.$GLOBALS['G_JCONFIG']['view']['template_file_suffix']; // 拼装模板路径
54.
}
55.
if($__tplname) {
56.
57.
$__handle_controller->auto_display($__tplname);
}
58.
}
59.
60.
// 对路由进行后续相关操作
61.
JInject("router_postfilter");
- /www/wwwroot/www.ccpv.net.nc/index.php on line 68
63.
if(count($server_info) > 1) {
64.
$server_domain = $server_info[count($server_info)-2];
65.
define('DOMAIN', $server_domain);
66.
}
67.
68.
69.
JStart();
?>