หน้าหลัก  กำหนดการเรียน  ประมวลวิชา เข้าห้องเรียน แหล่งค้นคว้า ถาม-ตอบ ห้องสนทนา ข้อมูลผู้เรียน ข้อมูลผู้สอน  ติดต่อ





















  • liengz@hotmail.com
  • "; Function AdminLogin($no) { echo"
    กรุณาล็อกอินก่อน"; echo"
    "; echo""; echo""; echo""; echo""; echo"
    Name
    Password
    "; echo"
    "; } Function Check($text) { $text = stripslashes(htmlspecialchars($text)); $text = eregi_replace ( "\n","
    ",$text); $text = eregi_replace ( "<","<",$text); $text = eregi_replace ( ">",">",$text); return ($text); } //ฟังก์ชั่นตัดคำหยาบซึ่งสามารถเพิ่มคำที่ต้องการตัดได้ function CheckRude($text){ $wordrude = array( "ashole","a s h o l e","a.s.h.o.l.e","bitch","b i t c h","b.i.t.c.h","shit","s h i t","s.h.i.t","fuck", "dick","f u c k","d i c k","f.u.c.k","d.i.c.k","มึง","มึ ง","กู","ควย","ค ว ย","ค.ว.ย", "คอ วอ ยอ","คอ-วอ-ยอ","ปี้","เหี้ย","เฮี้ย","ชาติหมา","ชาดหมา","ช า ด ห ม า","ช.า.ด.ห.ม.า","ช า ติ ห ม า", "ช.า.ติ.ห.ม.า","ไอ้","สัดหมา","สัด","เย็ด","หี","สันดาน","แม่ง","ระยำ","ส้นตีน","แตด") ; $wordchange = ("+++") ; for ( $i=0 ; $i"; echo""; echo""; echo""; echo""; echo""; echo""; echo"
    ชื่อ-นามสกุล
    อีเมล์
     
    "; } echo"

    ลงทเบียนก่อนเข้าชั้นเรียนนะคะ

    "; $totalfile=fopen("total.txt","r"); $total=fread($totalfile,filesize("total.txt")); echo"มีผู้เข้าเรียนทั้งหมด $total คน
    "; fclose($totalfile); if(empty($action)) echo"$power"; if($action=="sign") { Formguest(); } if($sign) { $total=$total+1; $listfile="./list/user$total.txt"; if($homepage=="") $homepage="nohomepage"; $openlistfile=fopen($listfile,"w"); $name=Check($name); $email=Check($email); $name=CheckRude($name); $email=CheckRude($email); if(fputs($openlistfile,"$name\n$email\n$homepage\n$list_choice\n$comment\n$mdate")) echo"
    ****ได้รับข้อมูลแล้วครับ****"; else echo"
    !!!!ไม่สามารถบันทึกข้อมูลได้!!!!"; fclose($openlistfile); $totalfile=fopen("total.txt","w"); fputs($totalfile,$total); fclose($totalfile); } if($action=="view") { $font="cc9933"; if(isset($nextpage)) $nextpage=$nextpage; else $nextpage=1; for($i=$nextpage;$i<$nextpage+$listpage;$i++) { $listfile="./list/user$i.txt"; if(file_exists($listfile)) { echo""; $listarr=file($listfile); echo ""; echo ""; echo ""; else echo""; echo""; echo ""; echo ""; echo"
    ลำดับที่ : $i
    ชื่อ : $listarr[0]
    อีเมล์ : $listarr[1]
    เซ็นต์วันที่ : $listarr[5]
    ลบ
    "; echo"
    "; } else echo"
    "; if($i==$total) break; } $over=$total%$listpage; if($over!=0) $totalpage=floor($total/$listpage)+1; else $totalpage=floor($total/$listpage); if($total>$listpage) { echo"หน้าที่"; for($i=1;$i<=$totalpage;$i++) { $nextpage=($i-1)*$listpage; $nextpage=$nextpage+1; echo"$i "; } } } if($action=="delete") { if(!$loggin) { AdminLogin($no); } else { if(($uname==$username) and ($pword==$password)) { if(!$confirm) { $font="cc9933"; $listfile="./list/user$no.txt"; $listarr=file($listfile); echo"

    คุณต้องการลบไช่หรือไม่"; echo"
    "; echo""; echo ""; echo ""; echo ""; echo ""; else echo""; echo""; echo ""; echo ""; echo""; echo ""; echo"
    ลำดับที่ : $no
    ชื่อ : $listarr[0]
    อีเมล์ : $listarr[1]
    โฮมเพจ : "; $home=trim($listarr[2]); if($home!="nohomepage") echo"$home
    $question : $listarr[3]
    ข้อเสนอแนะ
    $listarr[4]
    เซ็นต์วันที่ : $listarr[5]
    "; echo"
    "; echo""; echo"
    "; echo"
    "; } else { $file="./list/user$no.txt"; if(unlink($file)) echo"
    ****ลบไฟล์สำเร็จ****"; else echo"
    !!!!ลบไฟล์ไม่สำเร็จ!!!!!"; } } else { echo"
    Username หรือ Password ผิด"; AdminLogin($no); } } } ?>
    โครงการพัฒนาสื่อการเรียนการสอนผ่านเครือข่ายอินเทอร์เน็ต สถาบันการพลศึกษา วิทยาเขตชุมพร     
    ต.ขุนกระทิง อ.เมือง จ.ชุมพร 86190 โทร. 0-7753-4279 โทรสาร. 0-7753-4277