DESCRIBE fengnuo_classtype
执行错误: Query execution was interrupted

113.          $this->arrSql[] = $sql;
114.          if( $result mysql_query($sql$this->conn) ){
115.              return $result;
116.          }else{
117.              if(mysql_error()!=''){
118.                  syError("{$sql}<br />执行错误: " mysql_error());
119.              }else{
120.                  return TRUE;
121.              }
122.          }
123.      }
82.  class db_mysql {
83.      public $conn;
84.      public $arrSql;
85.      public function getArray($sql)
86.      {
87.          if( ! $result $this->exec($sql) )return array();
88.          if( ! mysql_num_rows($result) )return array();
89.          $rows = array();
90.          while($rows[] = mysql_fetch_array($result,MYSQL_ASSOC)){}
91.          mysql_free_result($result);
92.          array_pop($rows);
127.          return mysql_affected_rows($this->conn);
128.      }
129. 
130.      public function getTable($tbl_name)
131.      {
132.          return $this->getArray("DESCRIBE {$tbl_name}");
133.      }
134. 
135.      public function __construct($dbConfig)
136.      {
137.          $linkfunction = ( TRUE == $dbConfig['persistent'] ) ? 'mysql_pconnect' 'mysql_connect';
207. 
208.  function syDB($tbl_name$pk null){
209.      $modelObj syClass("syModel");
210.      $modelObj->tbl_name = (TRUE == $GLOBALS['G_DY']["db_spdb_full_tblname"]) ? $tbl_name :    $GLOBALS['G_DY']['db']['prefix'] . $tbl_name;
211.      if( !$pk ){
212.          @list($pk) = $modelObj->_db->getTable($modelObj->tbl_name);$pk $pk['Field'];
213.      }
214.      $modelObj->pk $pk;
215.      return $modelObj;
216.  }
217. 
765.                      $re_url=$sg.$GLOBALS['G_DY']['rewrite']['rewrite_channel_type'];
766.                  }else{
767.                      $re_url=$sg.$GLOBALS['G_DY']['rewrite']['rewrite_'.$c['molds'].'_type'];
768.                  }
769.                  if(!empty($c['htmlfile'])) {
770.                      $parent syDB('classtype')->find(" tid =  ".intval($c['pid']), null'htmlfile, tid');
771.                      if(!empty($parent) && $parent['htmlfile'] != $c['htmlfile'] ) {
772.                          if(empty($parent['htmlfile'])) {
773.                              $re_url '/'.$c['htmlfile'].'/';
774.                          }else {
775.                              $re_url '/'.$parent['htmlfile'].'/'.$c['htmlfile'].'/';
203.           </div>
204.        </div>
205.     </div>
206.     <div class="fnavs">
207.        <div class="container flexJb">
208.           <?php $vn=0;$tablev=syClass("syModel")->syCache(3600)->findSql("select tid,molds,pid,classname,gourl,litpic,litpic2,litpic3,litpic4,title,keywords,description,des,cn_title,orders,mrank,htmldir,htmlfile,mshow,tshow,isindex from fengnuo_classtype where  pid='0' and mshow='1'  order by orders,tid  limit 4");foreach($tablev as $v){ $v["tid_leafid"]=$sy_class_type->leafid($v["tid"]);$v["n"]=$vn=$vn+1$v["classname"]=stripslashes($v["classname"]);$v["description"]=stripslashes($v["description"]); $v["url"]=html_url("classtype",$v); ?>
209.           <dl>        
210.              <dt><a href="<?php echo $v['url'?>"><?php echo $v['classname'?></a></li>
211.              <?php $v2n=0;$tablev2=syClass("syModel")->syCache(3600)->findSql("select tid,molds,pid,classname,gourl,litpic,litpic2,litpic3,litpic4,title,keywords,description,des,cn_title,orders,mrank,htmldir,htmlfile,mshow,tshow,isindex from fengnuo_classtype where  pid='".$v[tid]."' and mshow='1'  order by orders,tid ");foreach($tablev2 as $v2){ $v2["tid_leafid"]=$sy_class_type->leafid($v2["tid"]);$v2["n"]=$v2n=$v2n+1$v2["classname"]=stripslashes($v2["classname"]);$v2["description"]=stripslashes($v2["description"]); $v2["url"]=html_url("classtype",$v2); ?>
212.              <dd><a href="<?php echo $v2['url'?>"><?php echo $v2['classname'?></a></dd>
213.              <?php ?>
66.          if( $enable_gzip==){
67.              GLOBAL $__template_compression_level;
68.              $__template_compression_level=syExt('enable_gzip_level');
69.              ob_start('template_ob_gzip');
70.          }
71.          include $template_tpl;
72.      }
73.      
74.      private function template_html($content){
75.          preg_match_all('/\{include=\"(.*?)\"\}/si',$content,$i);
76.          foreach($i[0] as $k=>$v){
23.      {
24.          try {
25.                  $this->addfuncs();
26.                  $this->displayed TRUE;
27.                  if($GLOBALS['G_DY']['view']['debugging'] && SP_DEBUG)$this->engine->debugging TRUE;
28.                  $this->engine->display($tplname);
29.          } catch (Exception $e) {
30.              syError$GLOBALS['G_DY']['view']['engine_name']. ' Error: '.$e->getMessage() );
31.          }
32.      }
33. 
25. 
26.      public function display($tplname$output TRUE)
27.      {
28.          @ob_start();
29.          if(TRUE == $GLOBALS['G_DY']['view']['enabled']){
30.              $this->v->display($tplname);
31.          }else{
32.              extract($this->__template_vals);
33.              require($tplname);
34.          }
35.          if( TRUE != $output )return ob_get_clean();
115.          }
116.          if(empty($this->type['tid'])) {
117.              $tid 2;
118.              $this->type=syDB('classtype')->find(' tid= '.$tid);
119.              $is404 true;
120.              $this->display('/404.html');
121.              exit();
122.          }
123.          if($this->type['mrank']>0){
124.              syClass('symember')->p_v($this->type['mrank']);
125.          }
12.      $handle_controller syClass($__controllernull$GLOBALS['G_DY']["controller_path"].'/'.$__controller.".php");
13.      if(!is_object($handle_controller) || !method_exists($handle_controller$__action)){
14.          syError('route Error');
15.          exit;
16.      }
17.      $handle_controller->$__action();
18.      if(FALSE != $GLOBALS['G_DY']['view']['auto_display']){
19.          $__tplname $__controller.$GLOBALS['G_DY']['view']['auto_display_sep'].
20.                  $__action.$GLOBALS['G_DY']['view']['auto_display_suffix']; 
21.          $handle_controller->auto_display($__tplname);
22.      }
2.  require("config.php");
3.  define("APP_PATH",dirname(__FILE__));
4.  define("DOYO_PATH",APP_PATH."/include");
5.  $doyoConfig['view']['config']['template_dir'] = APP_PATH.'/template/'.$doyoConfig['ext']['view_themes'];
6.  require(DOYO_PATH."/sys.php");
7.  spRun();