loask.com
域名年龄: 11年10个月11天HTTP/1.1 200 OK 访问时间:2015年12月13日 17:38:04 接受单位:字节 文件大小:36060 Keep-Alive: timeout=15, max=100 连接:Keep-Alive 类型:text/html 页面编码:utf-8
87. * @param dbConfig 数据库配置88. */89. public function __construct($dbConfig)90. {91. $linkfunction = ( TRUE == $dbConfig['persistent'] ) ? 'mysql_pconnect' : 'mysql_connect';92. $this->conn = $linkfunction($dbConfig['host'].":".$dbConfig['port'], $dbConfig['login'], $dbConfig['password']) or spError("数据库链接错误 : " . mysql_error()); 93. mysql_select_db($dbConfig['database'], $this->conn) or spError("无法找到数据库,请确认数据库名称正确!");94. $this->exec("SET NAMES UTF8");95. }96. /**97. * 对特殊字符进行过滤144. }145. }146. if(FALSE != $has_define){147. $argString = '';$comma = ''; 148. if(null != $args)for ($i = 0; $i < count($args); $i ++) { $argString .= $comma . "\$args[$i]"; $comma = ', '; } 149. eval("\$GLOBALS['G_SP']['inst_class'][\$class_name]= new \$class_name($argString);"); 150. return $GLOBALS['G_SP']["inst_class"][$class_name];151. }152. spError($class_name."类定义不存在,请检查。");153. }154.47. {48. if( null == $this->tbl_name )$this->tbl_name = $GLOBALS['G_SP']['db']['prefix'] . $this->table;49. if( '' == $GLOBALS['G_SP']['db_driver_path'] ){50. $GLOBALS['G_SP']['db_driver_path'] = $GLOBALS['G_SP']['sp_drivers_path'].'/'.$GLOBALS['G_SP']['db']['driver'].'.php';51. }52. $this->_db = spClass('db_'.$GLOBALS['G_SP']['db']['driver'], array(0=>$GLOBALS['G_SP']['db']), $GLOBALS['G_SP']['db_driver_path']);53. }54. public function getAll($sql)55. {56. $res = $this->query($sql);57. nbsp; if ($res !== false)144. }145. }146. if(FALSE != $has_define){147. $argString = '';$comma = ''; 148. if(null != $args)for ($i = 0; $i < count($args); $i ++) { $argString .= $comma . "\$args[$i]"; $comma = ', '; } 149. eval("\$GLOBALS['G_SP']['inst_class'][\$class_name]= new \$class_name($argString);"); 150. return $GLOBALS['G_SP']["inst_class"][$class_name];151. }152. &bbsp;spError($class_name."类定义不存在,请检查。");153. }154.5. parent::__construct(); // 这是必须的6. $this->tpl_title = "主体模块|主题部分";7. }8.9. function header(){10. $this->title = spClass("site_config")->find("id=101");11. $this->desc = spClass("site_config")->find("id=103"); 12. $this->keywords = spClass("site_config")->find("id=104"); 13. $this->add = spClass('site_config')->find('id=910'); 14. $this->tel = spClass('site_config')->find('id=911'); 15. $this->fax = spClass('site_config')->find('id=912'); 37. 38. $this->qqtitle = spClass('qq_title')->findAll("id>0","id desc limit 0,8"); 39. } 40. 41. function index(){ 42. $this->header(); 43. 44. $this->chanpin = spClass('goods_list')->findAll('promote=1','id desc limit 0,12'); 45. 46. $this->frilinks = spClass("page_img")->findAll("nid=1 and is_open=1","sort_id desc limit 0,9"); 47. //$sql1="SELECT * FROM sp_goods WHERE promote=1 ORDER BY sort_id asc LIMIT 0,1"; 16. if(!is_object($handle_controller) || !method_exists($handle_controller, $__action)){ 17. eval($GLOBALS['G_SP']["dispatcher_error"]); 18. exit; 19. } 20. // 路由并执行用户代码 21. $handle_controller->
© 2010 - 2020 网站综合信息查询 同IP网站查询 相关类似网站查询 网站备案查询网站地图 最新查询 最近更新 优秀网站 热门网站 全部网站 同IP查询 备案查询
2024-12-18 14:21, Process in 0.0098 second.