if($_GET['cookie_clear']=="yes")
{
setcookie("user_passwd");
}
?>
# ----------------------------------------- #
# 程式名稱:C.P.Gb 留言版 #
# 設計者:Cooltey #
# E-Mail:cooltey@yahoo.com.tw #
# HomePage:http://cooltey.mytw.net #
# 程式版本:V0.88 #
# 最後更新:2006/8/23 #
# 注意,本版權宣告不得刪除,程式可任意修改! #
# 最下面一行的 Powered By Cooltey 請不要刪除 #
# ----------------------------------------- #
?>
require("gsystem.php") ;?>
require("css.php");?>
$gname=stripslashes($gname) ;?>
$gup=stripslashes($gup) ;?>
$guser=stripslashes($guser) ;?>
//Filter keyword
$FilterKerword1 = "meworks";
$FilterKerword2 = "缺錢";
$BlockadeIP = "38.100.219.156";
?>
$close_html=$ghtml; //語法部分
$per=$gn; //每頁顯示
$number=$_GET['number'];
if($number==""){
$number=$per;
}
$lines=file("guest.dat");
$count=count($lines);
$truecount=$count-1;
$rlines=file("re.dat");
$rcount=count($rlines);
$rtruecount=$rcount-1;
?>
require("count.php");?> |
│我要留言│
站長管理│
告訴│
回到首頁│
|
共有 echo $count;?>筆留言 | 每頁顯示 echo $gn;?>筆 |
if($close_html=="0"){
echo " HTML語法開啟 ";
}else{
echo " HTML語法關閉 ";
}
?> |
for($a=($count-1);$a>=0;$a--){
$line[]=$lines[$a];
}
for($i=0;$i<$count;$i++){
if($i>=($number-$per)&&$i<$number){
list($name,$submit,$email,$color,$sexual,$ip,$R2,$msn,$home,$homename,$R1,$date,$hidden,$note)=explode("∥",$line[$i]);
$fun=$count-$i;
$ThisIP = $ip; //Cheng-Yen Chuang
if($gip==0)
{
if(ereg(".",$ip)){
$ip="IP已設定隱藏";
}
}
if($close_html==1)
{
$note=eregi_replace("
","\n",$note);
$note=nl2br(htmlspecialchars($note));
$name=htmlspecialchars($name);
$submit=htmlspecialchars($submit);
$email=htmlspecialchars($email);
$home=htmlspecialchars($home);
$msn=htmlspecialchars($msn);
}elseif($close_html==0){
$note=nl2br($note);
}
$name=stripslashes($name);
$home=stripslashes($home);
$homename=stripslashes($homename);
$submit=stripslashes($submit);
$note=stripslashes($note);
if($email){
$email="";
}else{
$email="";
}
if($R2==yes){
$note="這是給".$guser."的悄悄話!";
}
if($R2==yes){
$rebutton="";
}else{
$rebutton="";
}
if($msn){
$msn="";
}else{
$msn="";
}
if($home){
$home="";
}else{
$home="";
}
if($note){
if((strstr($note, $FilterKerword1) == NULL || strstr($note, $FilterKerword2) == NULL) && strcmp($ThisIP, $BlockadeIP) != 0){ //By Cheng-Yen Chuang
?>
}//if(strstr($note, $FilterKerword1) == NULL || strstr($note, $FilterKerword2) == NULL)
}//EndOf: if($note)
}
}
?>