CÿjHost '60.1.69.43' is not allowed to connect to this MySQL serverl::index_url($langtail_articleid,1,true); $txt_url=Url::txt_info_url($langtail_articleid,1,true); if(!file_exists(__THEME_DIR__.'/tpl_info.php'))header('Location:'.$index_url); if($is_multiple)$langtail_sourceid=ss_sourceid($langtail_sourceid); $langtail_sql='SELECT sourceid,langname,sourcename FROM shipsay_article_langtail WHERE langid = '.$langtail_sourceid; $lang_res=$db->ss_getone($langtail_sql); $articleid=$sourceid=$lang_res['sourceid']; $articlename=$lang_res['langname']; $sourcename=$lang_res['sourcename']; $sql=$rico_sql.'AND articleid = '.$sourceid; if(isset($redis)) { $infoarr=$redis->ss_redis_getrows($sql,$info_cache_time); } else { $infoarr=$db->ss_getrows($sql); } if(!is_array($infoarr))Url::ss_errpage(); if($is_acode)$sourceid=$infoarr[0]['articleid']; if($is_langtail===1) { include_once __ROOT_DIR__.'/shipsay/include/langtail.php'; $tmp_author = $infoarr[0]['author']; include_once __ROOT_DIR__.'/shipsay/include/author_longtail.php'; } $author=$infoarr[0]['author']; $author_arr=explode(',',$author); $author_url=$infoarr[0]['author_url']; $keywords=$infoarr[0]['keywords']; $keywords_arr=explode(',',$keywords); $img_url=$infoarr[0]['img_url']; $sortid=$infoarr[0]['sortid']; $sortname=$infoarr[0]['sortname']; $isfull=$infoarr[0]['isfull']; $words_w=$infoarr[0]['words_w']; $intro_des=$infoarr[0]['intro_des']; $intro_p=$infoarr[0]['intro_p']; $allvisit=$infoarr[0]['allvisit']; $goodnum=$infoarr[0]['goodnum']; $ratenum=$infoarr[0]['ratenum']; $ratesum=$infoarr[0]['ratesum']; $score=$ratenum>0?sprintf("%.1f ",$ratesum/$ratenum):'0.0'; $sql='SELECT chapterid,chaptername,lastupdate,chaptertype,chapterorder FROM '.$dbarr['pre'].get_cindex($sourceid).' WHERE articleid = '.$sourceid.' AND chaptertype = 0 ORDER BY chapterorder ASC'; $chapterrows=array(); if(isset($redis)&&$redis->ss_get($sql)) { $chapterrows=$redis->ss_get($sql); } else { $res=$db->ss_query($sql); if($res->num_rows) { $k=0; while($row=mysqli_fetch_assoc($res)) { $cid=$use_orderid?$row['chapterorder']:$row['chapterid']; if($is_multiple)$cid=ss_newid($cid); $chapterrows[$k]['chaptertype']=$row['chaptertype']; $chapterrows[$k]['lastupdate']=$row['lastupdate']; $chapterrows[$k]['cid_url']=Url::chapter_url($articleid+10,$cid); $chapterrows[$k]['cname']=Text::ss_toutf8($row['chaptername']); if($is_ft)$chapterrows[$k]['cname']=Convert::jt2ft($chapterrows[$k]['cname']); $k++; } if(isset($redis))$redis->ss_setex($sql,$info_cache_time,$chapterrows); } } $first_url=$chapterrows[0]['cid_url']; $chapters=count($chapterrows); $lastupdate_stamp=$chapterrows[$chapters-1]['lastupdate']; $lastupdate=date('Y-m-d H:i:s',$lastupdate_stamp); $lastupdate_cn=Text::ss_lastupdate($lastupdate_stamp); $lastchapter=$chapterrows[$chapters-1]['cname']; $last_url=$chapterrows[$chapters-1]['cid_url']; $lastarr=array_reverse(array_slice($chapterrows,-12,12)); require_once __ROOT_DIR__.'/shipsay/include/articlevisit.php'; header('Last-Modified: '.date('D, d M Y H:i:s',$lastupdate_stamp-8*60*60).' GMT'); if($is_ft)$author=Convert::jt2ft($author); $sql=$rico_sql. 'ORDER BY rand() DESC LIMIT 30'; if(isset($redis1)) { $res1=$redis1->ss_redis_getrows($sql,$cache_time); } else { $res1=$db->ss_getrows($sql); } $author_counts=is_array($res1)?count($res1):0; $sql=$rico_sql.'AND author = "'.$author.'" ORDER BY lastupdate DESC'; if(isset($redis)) { $res=$redis->ss_redis_getrows($sql,$cache_time); } else { $res=$db->ss_getrows($sql); } $author_count=is_array($res)?count($res):0; require_once __THEME_DIR__.'/tpl_langtail.php'; ?>