SELECT moldname FROM dy_molds WHERE molds = 'article' ORDER BY mid LIMIT 1
执行错误: File './www_hppx_net/dy_molds.MYD' not found (Errcode: 13 - Permission denied)
- /www/wwwroot/www.hppx.net/include/mysql.php on line 39
34.
$this->arrSql[] = $sql;
35.
if( $result = mysql_query($sql, $this->conn) ){
36.
return $result;
37.
}else{
38.
if(mysql_error()!=''){
39.
40.
syError("{$sql}<br />执行错误: " . mysql_error());
}else{
41.
return TRUE;
42.
}
43.
}
44.
}
- /www/wwwroot/www.hppx.net/include/mysql.php on line 8
3.
class db_mysql {
4.
public $conn;
5.
public $arrSql;
6.
public function getArray($sql)
7.
{
8.
9.
if( ! $result = $this->exec($sql) )return array();
if( ! mysql_num_rows($result) )return array();
10.
$rows = array();
11.
while($rows[] = mysql_fetch_array($result,MYSQL_ASSOC)){}
12.
mysql_free_result($result);
13.
array_pop($rows);
- /www/wwwroot/www.hppx.net/include/syModel.php on line 55
50.
}else{
51.
$sort = "ORDER BY {$this->pk}";
52.
}
53.
$sql = "SELECT {$fields} FROM {$this->tbl_name} {$where} {$sort}";
54.
if(null != $limit)$sql = $this->_db->setlimit($sql, $limit);
55.
56.
return $this->_db->getArray($sql);
}
57.
58.
public function escape($value)
59.
{
60.
return $this->_db->__val_escape($value);
- /www/wwwroot/www.hppx.net/include/syModel.php on line 27
22.
if ($this->_db->showtables($value)==0){return TRUE;}else{return FALSE;}
23.
}
24.
25.
public function find($conditions = null, $sort = null, $fields = null)
26.
{
27.
28.
if( $record = $this->findAll($conditions, $sort, $fields, 1) ){
return array_pop($record);
29.
}else{
30.
return FALSE;
31.
}
32.
}
- /www/wwwroot/www.hppx.net/include/Functions.php on line 521
516.
$c=syDB('custom')->find(array('file' => $file));
517.
return $c;
518.
}
519.
//频道信息获取
520.
function moldsinfo($molds,$q){
521.
522.
$m=syDB('molds')->find(array('molds' => $molds),null,$q);
return $m[$q];
523.
}
524.
//内容信息获取
525.
function contentinfo($molds,$id,$q){
526.
$c=syDB($molds)->find(array('id' => $id),null,$q);
- /www/wwwroot/www.hppx.net/source/article.php on line 8
3.
class article extends syController
4.
{
5.
function __construct(){
6.
parent::__construct();
7.
$this->molds = 'article';
8.
9.
$this->moldname=moldsinfo('article','moldname');
$this->sy_class_type=syClass('syclasstype');
10.
$this->Class=syClass('c_article');
11.
$this->db=$GLOBALS['G_DY']['db']['prefix'].'article';
12.
}
13.
function index(){
- /www/wwwroot/www.hppx.net/include/Functions.php on line 95
90.
}
91.
}
92.
if(FALSE != $has_define){
93.
$argString = '';$comma = '';
94.
if(null != $args)for ($i = 0; $i < count($args); $i ++) { $argString .= $comma . "\$args[$i]"; $comma = ', ';}
95.
96.
eval("\$GLOBALS['G_DY']['inst_class'][\$class_name]= new \$class_name($argString);");
return $GLOBALS['G_DY']["inst_class"][$class_name];
97.
}
98.
syError($class_name."类定义不存在,请检查。");
99.
}
100.
function curl_get($url) {
- /www/wwwroot/www.hppx.net/include/Functions.php on line 11
6.
syError('route Error');
7.
exit;
8.
}
9.
syClass('sysession');
10.
spLaunch("router_prefilter");
11.
12.
$handle_controller = syClass($__controller, null, $GLOBALS['G_DY']["controller_path"].'/'.$__controller.".php");
if(!is_object($handle_controller) || !method_exists($handle_controller, $__action)){
13.
syError('route Error');
14.
exit;
15.
}
16.
$handle_controller->$__action();
- /www/wwwroot/www.hppx.net/index.php on line 5
1.
<?php
2.
require("config.php");
3.
$doyoConfig['view']['config']['template_dir'] = APP_PATH.'/template/'.$doyoConfig['ext']['view_themes'];
4.
require(DOYO_PATH."/sys.php");
5.
spRun();