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.          }
21. 
22.      function showAction() {
23.          $content_id intval($this->JArgs('content_id'));
24.          $language$this->getLang();
25.          
26.          $contents_description JLoadClass('contents_description');
27.          if($content_description $contents_description->getOne(array('content_id' => $content_id'language' => $language))) {
28.              $cdid intval($content_description['id']);
29.              $contents_description->incrField(array('id'=>$cdid), 'hits');
30. 
31.              $model $content_description['model'];
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