37000dCm威尼斯(中国)有限公司-Baidu百科

数据库链接错误/无法找到数据库 : malformed database schema - unable to open a temporary database file for storing temporary tables

160.       */
161.      public function __construct($dbConfig)
162.      {
163.              if(!function_exists('sqlite_open'))spError('PHP环境未安装Sqlite函数库!');
164.              $linkfunction = ( TRUE == $dbConfig['persistent'] ) ? 'sqlite_popen' 'sqlite_open';
165.              if (! $this->conn $linkfunction($dbConfig['host'], 0666$sqliteerror))JError('数据库链接错误/无法找到数据库 : '$sqliteerror);
166.      }
167.      
168.      /**
169.       对特殊字符进行过滤
170.       *
202.                  $argString .= $comma "\$args[$i]"$comma ', '
203.              }
204.          }
205.          
206.          if($registerGlobal) {
207.              eval("\$GLOBALS['G_JCONFIG']['class_instances'][\$className]= new \$className($argString);"); 
208.              return $GLOBALS['G_JCONFIG']["class_instances"][$className];
209.          }
210.          else {
211.              return new $className($argString);
212.          }
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.          $this->_db JLoadClass('db_'.$GLOBALS['G_JCONFIG']['db']['driver'], array(0=>$GLOBALS['G_JCONFIG']['db']), $GLOBALS['G_JCONFIG']['db_driver_path']);
57.      }
58. 
59.      /**
60.       开始事务
61.       */
202.                  $argString .= $comma "\$args[$i]"$comma ', '
203.              }
204.          }
205.          
206.          if($registerGlobal) {
207.              eval("\$GLOBALS['G_JCONFIG']['class_instances'][\$className]= new \$className($argString);"); 
208.              return $GLOBALS['G_JCONFIG']["class_instances"][$className];
209.          }
210.          else {
211.              return new $className($argString);
212.          }
41.          else {
42.              $cond['category_code'] = $category_id;    
43.          }
44.          $cond['language'] = $language;
45.          
46.          $categories JLoadClass('categories');
47.          if($category $categories->getOne($cond)) {
48.              if($category['category_type'] == 'links' && $category['link_url']) {
49.                  $this->redirect($category['link_url']);    
50.              }
51.              else if($category['category_type'] == 'models') {
26.          eval($GLOBALS['G_JCONFIG']["dispatcher_error"]);
27.          exit;
28.      }
29. 
30.      // 执行用户代码    
31.      $__handle_controller->$__actionFunc();
32. 
33.      //显示前执行自定义代码
34.      JInject("before_display");
35. 
36.      // 控制器程序运行完毕,进行模板的自动输出
105.  if(count($server_info) > 1) {
106.      $server_domain $server_info[count($server_info)-2];
107.      define('DOMAIN'$server_domain);
108.  }
109. 
110.  JStart();
111.  ?>
Baidu
sogou