|
|
โค้ดเว็บบอร์ดครับ โพสต์ที่ appserv ได้ แต่พออัพขึ้นโฮส ไม่ได้ครับ มีแต่วันที่โพสต์
โพสต์บน appserv
โพสต์บน โฮส
โค้ดครับ ดูให้หน่อยผิดตรงไหนครับ
Code (PHP)
<?
$word_cut = array("ไอ้","อี","มึง","กู","ว่ะ","วะ","เหี้ย","สัด","สัส","สัต","สัตว์","สู","เยด","เย็ด","ฟาย","ห่า","ควย","ควาย","หมา","อี","อิดอก","อีดอก","พ่อง","แม่ง","สันดาร","ส้นเท้า","สันดาน","แดก","หี","หำ","ใครใหญ่","คัยใหญ่","เปรด","เปรต","เปด","บัก","ชั่ว","เลว","เรว","ส้นตีน","อิ","เวร","เวน","ตาย","ซะ","ซ่ะ","กำ","นรก","เซก","เซ็ก","เซ็กส์","บ่","เออ","เอ่อ","เอ้ย","เฮ้ย","เว้ย","ซัว","โง","โง่","ปึก","ปรึก","นิสัย","ชู้","เมีย","ผัว","กระบือ","กะบือ","โป้","แอบถ่าย","กินนม","อก","หน้าด้าน","sex","อืม","เอ็ง","อย่าแสดง","หล่า","ตด","ขี้");
$replace = "<img src=images/no-post.gif width=30>";
for ($i=0 ; $i<sizeof($word_cut) ; $i++) {
$txttitle = eregi_replace($word_cut[$i],$replace,$txttitle);
}
$title =$txttitle;
for ($i=0 ; $i<sizeof($word_cut) ; $i++) {
$txtmes = eregi_replace($word_cut[$i],$replace,$txtmes);
}
$mes =$txtmes;
for ($i=0 ; $i<sizeof($word_cut) ; $i++) {
$txtname = eregi_replace($word_cut[$i],$replace,$txtname);
}
$name =$txtname;
include "connect.php";
if($_GET["Action"] == "Save")
{
//*** Insert Question ***//
$strSQL = "INSERT INTO webboard ";
$strSQL .="(CreateDate,Question,Details,Name) ";
$strSQL .="VALUES ";
$strSQL .="('".date("Y-m-d H:i:s")."','$title','$mes','$name' ) ";
mysql_query("SET NAMES TIS620");
$objQuery = mysql_query($strSQL);
header("location:webboard.php");
}
?>
Tag : PHP
|
|
|
|
|
|
Date :
2013-05-11 18:31:02 |
By :
kunnawut |
View :
911 |
Reply :
4 |
|
|
|
|
|
|
|
|
|