数据库链接错误 : No such file or directory
- /www/wwwroot/ifengspace.com/JedooPHP/Drivers/mysql.php on line 166
161.
* @param dbConfig 数据库配置
162.
*/
163.
public function __construct($dbConfig)
164.
{
165.
$linkfunction = ( TRUE == $dbConfig['persistent'] ) ? 'mysql_pconnect' : 'mysql_connect';
166.
167.
$this->conn = $linkfunction($dbConfig['host'].":".$dbConfig['port'], $dbConfig['user'], $dbConfig['password']) or JError("数据库链接错误 : " . mysql_error());
mysql_select_db($dbConfig['database'], $this->conn) or JError("无法找到数据库,请确认数据库名称正确!");
168.
$this->exec("SET NAMES " . $dbConfig['charset']);
169.
}
170.
/**
171.
* 对特殊字符进行过滤
- /www/wwwroot/ifengspace.com/JedooPHP/JFunctions.php on line 207
202.
$argString .= $comma . "\$args[$i]"; $comma = ', ';
203.
}
204.
}
205.
206.
if($registerGlobal) {
207.
208.
eval("\$GLOBALS['G_JCONFIG']['class_instances'][\$className]= new \$className($argString);");
return $GLOBALS['G_JCONFIG']["class_instances"][$className];
209.
}
210.
else {
211.
return new $className($argString);
212.
}
- /www/wwwroot/ifengspace.com/JedooPHP/MVC/JModel.php on line 56
51.
{
52.
if( null == $this->tbl_name )$this->tbl_name = $GLOBALS['G_JCONFIG']['db']['prefix'] . $this->table;
53.
if( '' == $GLOBALS['G_JCONFIG']['db_driver_path'] ){
54.
$GLOBALS['G_JCONFIG']['db_driver_path'] = $GLOBALS['G_JCONFIG']['drivers_dir'].'/'.$GLOBALS['G_JCONFIG']['db']['driver'].'.php';
55.
}
56.
57.
$this->_db = JLoadClass('db_'.$GLOBALS['G_JCONFIG']['db']['driver'], array(0=>$GLOBALS['G_JCONFIG']['db']), $GLOBALS['G_JCONFIG']['db_driver_path']);
}
58.
59.
/**
60.
* 开始事务
61.
*/
- /www/wwwroot/ifengspace.com/JedooPHP/JFunctions.php on line 207
202.
$argString .= $comma . "\$args[$i]"; $comma = ', ';
203.
}
204.
}
205.
206.
if($registerGlobal) {
207.
208.
eval("\$GLOBALS['G_JCONFIG']['class_instances'][\$className]= new \$className($argString);");
return $GLOBALS['G_JCONFIG']["class_instances"][$className];
209.
}
210.
else {
211.
return new $className($argString);
212.
}
- /www/wwwroot/ifengspace.com/modules/categories/categories.php on line 293
288.
'parent_id'=> 0,
289.
);
290.
if($model) {
291.
$cond['model'] = $model;
292.
}
293.
294.
$categories = JLoadClass('categories');
$this->categories = $categories->getAll($cond, 'sort_order');
295.
}
296.
297.
/**
298.
* 校验Category_name是否可用
- /www/wwwroot/ifengspace.com/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/ifengspace.com/tmp/d49c404ac30837876d9bc487c991b6adb1bac6a2.file.sidebar_en_us.tpl.php on line 25
20.
<div id="sidebar">
21.
<div class="section-gray">
22.
<div class="section-wrapper">
23.
<h3 class="section-title"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['T'][0][0]->__template_T(array('w'=>'Book Categories'),$_smarty_tpl);?>
24.
</h3>
25.
26.
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['JCall'][0][0]->__template_JCall(array('module'=>'categories','action'=>'list','model'=>'books'),$_smarty_tpl);?>
27.
</div>
28.
</div>
29.
30.
<div class="section-red">
- /www/wwwroot/ifengspace.com/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/ifengspace.com/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/ifengspace.com/tmp/9d12285677a12ffa78e5e5edd20b29cf577cf9b9.file.main_index_en_us.tpl.php on line 149
144.
<?php if ($_smarty_tpl->getVariable('lang')->value=='zh_cn'){?>
145.
<?php $_template = new Smarty_Internal_Template("../../../templates/sidebar_zh_cn.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
146.
echo $_template->getRenderedTemplate();?><?php unset($_template);?>
147.
<?php }else{ ?>
148.
<?php $_template = new Smarty_Internal_Template("../../../templates/sidebar_en_us.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
149.
150.
echo $_template->getRenderedTemplate();?><?php unset($_template);?>
<?php }?>
151.
152.
<div id="main">
153.
154.
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['JCall'][0][0]->__template_JCall(array('module'=>'main','action'=>'focus'),$_smarty_tpl);?>
- /www/wwwroot/ifengspace.com/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/ifengspace.com/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/ifengspace.com/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/ifengspace.com/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/ifengspace.com/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/ifengspace.com/JedooPHP/MVC/JController.php on line 154
149.
*/
150.
public function display($tplname, $output = TRUE)
151.
{
152.
@ob_start();
153.
if(TRUE == $GLOBALS['G_JCONFIG']['view']['enabled']){
154.
155.
$this->v->display($tplname);
}else{
156.
extract($this->__template_vals);
157.
require($tplname);
158.
}
159.
if( TRUE != $output )return ob_get_clean();
- /www/wwwroot/ifengspace.com/modules/moduleController.php on line 89
84.
{
85.
if( TRUE != $this->v->displayed && FALSE != $GLOBALS['G_JCONFIG']['view']['auto_display']){
86.
if( method_exists($this->v->engine, 'templateExists')){
87.
$tplfile = str_replace($GLOBALS['G_JCONFIG']['view']['template_file_suffix'], '_' . $this->getLang() . $GLOBALS['G_JCONFIG']['view']['template_file_suffix'], $tplname);
88.
if($this->v->engine->templateExists($tplfile)) {
89.
90.
$this->display($tplfile);
}
91.
else if($this->v->engine->templateExists($tplname)) {
92.
$this->display($tplname);
93.
}
94.
}
- /www/wwwroot/ifengspace.com/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/ifengspace.com/index.php on line 45
40.
if(count($server_info) > 1) {
41.
$server_domain = $server_info[count($server_info)-2];
42.
define('DOMAIN', $server_domain);
43.
}
44.
45.
46.
JStart();
?>