nt: Comsenz/1.0 ($version)\r\n"; $out .= "Host: $host\r\n"; $out .= 'Content-Length: '.strlen($post)."\r\n"; $out .= "Connection: Close\r\n"; $out .= "Cache-Control: no-cache\r\n"; $out .= "Cookie: $cookie\r\n\r\n"; $out .= $post; } else { $out = "GET $script HTTP/1.1\r\n"; $out .= "Accept: */*\r\n"; $out .= "Referer: $boardurl\r\n"; $out .= "Accept-Language: zh-cn\r\n"; $out .= "Accept-Encoding:\r\n"; $out .= "User-Agent: Comsenz/1.0 ($version)\r\n"; $out .= "Host: $host\r\n"; $out .= "Connection: Close\r\n"; $out .= "Cookie: $cookie\r\n\r\n"; } $fp = fsockopen($host, $port, $errno, $errstr, 30); if(!$fp) { return ""; } else { @fwrite($fp, $out); while(!feof($fp) && $limit > -1) { $limit -= 524; $return .= @fread($fp, 524); } @fclose($fp); $return = preg_replace("/\r\n\r\n/", "\n\n", $return, 1); $strpos = strpos($return, "\n\n"); $strpos = $strpos !== FALSE ? $strpos + 2 : 0; $return = substr($return, $strpos); return $return; } } ?>========================================================== ?> = '', $sql = '') { define('CACHE_FORBIDDEN', TRUE); require_once DISCUZ_ROOT.'./include/db_mysql_error.inc.php'; } } ?>); ?>dvs'], $advs, $advarray); if(empty($advlist['intercat'])) { unset($advitems); } ?>n_visit'] || $creditspolicy['promotion_register'])) { require_once DISCUZ_ROOT.'/include/promotion.inc.php'; } $rssauth = $rssstatus && $discuz_uid ? rawurlencode(authcode("$discuz_uid\t".($fid ? $fid : '')."\t".substr(md5($discuz_pw.$discuz_secques), 0, 8), 'ENCODE', md5($_DCACHE['settings']['authkey']))) : '0'; $transferstatus = $transferstatus && $allowtransfer; ?>'authorid'] = $thread['authorid']; $recommendlists[$thread['tid']]['subject'] = $modrecommend['maxlength'] ? cutstr($thread['subject'], $modrecommend['maxlength']) : $thread['subject']; } } return $recommendlists; } ?> )]; ?> all')) { $advs['type'][$type][] = $adv['advid']; $advs['items'][$adv['advid']] = $adv['code']; } } } } return $advs; } function pluginmodulecmp($a, $b) { return $a['displayorder'] > $b['displayorder'] ? 1 : -1; } function smthumb($size, $smthumb = 50) { if($size[0] <= $smthumb && $size[1] <= $smthumb) { return array('w' => $size[0], 'h' => $size[1]); } $sm = array(); $x_ratio = $smthumb / $size[0]; $y_ratio = $smthumb / $size[1]; if(($x_ratio * $size[1]) < $smthumb) { $sm['h'] = ceil($x_ratio * $size[1]); $sm['w'] = $smthumb; } else { $sm['w'] = ceil($y_ratio * $size[0]); $sm['h'] = $smthumb; } return $sm; } function arrayeval($array, $level = 0) { if(!is_array($array)) { return "'".$array."'"; } if(is_array($array) && function_exists('var_export')) { return var_export($array, true); } $space = ''; for($i = 0; $i <= $level; $i++) { $space .= "\t"; } $evaluate = "Array\n$space(\n"; $comma = $space; if(is_array($array)) { foreach($array as $key => $val) { $key = is_string($key) ? '\''.addcslashes($key, '\'\\').'\'' : $key; $val = !is_array($val) && (!preg_match("/^\-?[1-9]\d*$/", $val) || strlen($val) > 12) ? '\''.addcslashes($val, '\'\\').'\'' : $val; if(is_array($val)) { $evaluate .= "$comma$key => ".arrayeval($val, $level + 1); } else { $evaluate .= "$comma$key => $val"; } $comma = ",\n$space"; } } $evaluate .= "\n$space)"; return $evaluate; } ?>w_hot_threadlist).";\n\n"; writetocache("showother", '', $curdata); include $cachename; } ?>
Discuz! info: MySQL Query Error
Time: 2010-9-6 4:39pm
Script: /bbs/index.php
SQL: SELECT f.fid, f.fup, f.type, f.name, f.threads, f.posts, f.todayposts, f.lastpost, f.inheritedmod, f.forumcolumns, f.simple, ff.description, ff.moderators, ff.icon, ff.viewperm, ff.redirect FROM [Table]forums f
LEFT JOIN [Table]forumfields ff USING(fid)
WHERE f.status>0 ORDER BY f.type, f.displayorder
Error: Table './ssc77307683/[Table]forumfields' is marked as crashed and last (automatic?) repair failed
Errno.: 144
Similar error report has beed dispatched to administrator before.