無法找到數(shù)據(jù)庫,請(qǐng)確認(rèn)數(shù)據(jù)庫名稱正確!

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("數(shù)據(jù)庫鏈接錯(cuò)誤 : " mysql_error()); 
93.          mysql_select_db($dbConfig['database'], $this->conn) or spError("無法找到數(shù)據(jù)庫,請(qǐng)確認(rèn)數(shù)據(jù)庫名稱正確!");
94.          $this->exec("SET NAMES UTF8");
95.      }
96.      /**
97.       對(duì)特殊字符進(jìn)行過濾
98.       *
151.          }
152.      }
153.      if(FALSE != $has_define){
154.          $argString '';$comma ''
155.          if(null != $args)for ($i 0$i count($args); $i ++) { $argString .= $comma "\$args[$i]"$comma ', '; } 
156.          eval("\$GLOBALS['G_SP']['inst_class'][\$class_name]= new \$class_name($argString);"); 
157.          return $GLOBALS['G_SP']["inst_class"][$class_name];
158.      }
159.      //spError($class_name."類定義不存在,請(qǐng)檢查。");
160.      Urljumpdebug($GLOBALS['_pnfConfig']['hosturl'],'類定義不存在,請(qǐng)檢查。',1);
161.  }
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. 
55.      /**
56.       從數(shù)據(jù)表中查找一條記錄
57.       *
151.          }
152.      }
153.      if(FALSE != $has_define){
154.          $argString '';$comma ''
155.          if(null != $args)for ($i 0$i count($args); $i ++) { $argString .= $comma "\$args[$i]"$comma ', '; } 
156.          eval("\$GLOBALS['G_SP']['inst_class'][\$class_name]= new \$class_name($argString);"); 
157.          return $GLOBALS['G_SP']["inst_class"][$class_name];
158.      }
159.      //spError($class_name."類定義不存在,請(qǐng)檢查。");
160.      Urljumpdebug($GLOBALS['_pnfConfig']['hosturl'],'類定義不存在,請(qǐng)檢查。',1);
161.  }
446.  獲取導(dǎo)航二級(jí)菜單
447.  $nav導(dǎo)航
448.  **********************/
449.  function getNavigatorChild($nav
450. 
451.      $md_article_class     spClass('md_article_class');
452.      $md_article         spClass('md_article'); 
453.      foreach($nav as $key=>$val){    
454.          if($val['type'] == 'inSite'){
455.              $navChild['class'.$val['class']] = $md_article_class->findAll(array('pclass_id'=>$val['class']));
456.          }else{
28.              
29.              $contactInfo    json_decode(file_get_contents("data/contactInfo.".$_SESSION["language"].".data.php"), true);
30.      
31.              $this->contactInfo $contactInfo;//賦值聯(lián)系信息數(shù)據(jù)至模板
32.              $this->topnavs         getNavigatorByOrder();
33.              $this->navChild     getNavigatorChild($this->topnavs);
34.              //dump($this->navChild);
35.              $this->footernavs     getNavigator('footer');
36.              $this->pnfConfig     $GLOBALS['_pnfConfig'];//賦值系統(tǒng)基本配置信息至模板
37.              $this->Title         $GLOBALS['_pnfConfig']['webTitle']." - 首頁";//賦值頁面標(biāo)題至模板
38.              $this->display("index.html");  
17.          //eval($GLOBALS['G_SP']["dispatcher_error"]); //路由錯(cuò)誤,請(qǐng)檢查控制器目錄下是否存在該控制器/動(dòng)作。
18.              Urljumpdebug($GLOBALS['_pnfConfig']['hosturl'],'路由錯(cuò)誤,請(qǐng)檢查控制器目錄下是否存在該控制器/動(dòng)作',1);
19.          exit;
20.      }
21.      // 路由并執(zhí)行用戶代碼
22.      $handle_controller->$__action();
23.      // 控制器程序運(yùn)行完畢,進(jìn)行模板的自動(dòng)輸出
24.      if(FALSE != $GLOBALS['G_SP']['view']['auto_display']){
25.          $__tplname $__controller.$GLOBALS['G_SP']['view']['auto_display_sep'].
26.                  $__action.$GLOBALS['G_SP']['view']['auto_display_suffix']; // 拼裝模板路徑
27.          $handle_controller->auto_display($__tplname);
15.  require(SP_PATH."/SpeedPHP.php");
16. 
17.  //注冊(cè)模板函數(shù)
18.  require(APP_PATH."/include/spViewFunction.inc.php");
19. 
20.  spRun();
久久精品娱乐亚洲,免费在线观看一级a一片,欧美日韩国产精品自在自线,久久国产精品推油
亚洲欧美日韩国产一区二区三区精品 | 日韩欧美激情国产一区二区蜜 | 亚洲色精品Aⅴ一区区三区 亚洲1级欧美高清 | 亚洲国产人成视频在线观看 | 亚洲日韩理论片在线观看 | 亚洲国产另类久久久精品女同 |