|
if($_GET[op] == "editortalk_edit"){
//ทำการแก้ไขไฟล์ text ของ Editor Talk
$Filename = "schooldata.html";
$txt_name = "schooldata/".$Filename."";
$txt_open = @fopen("$txt_name", "w");
@fwrite($txt_open, "".$_POST[EDITORTALK]."");
@fclose($txt_open);
$ProcessOutput .= " "; //$ProcessOutput .= " "; $ProcessOutput .= "ได้ทำการแก้ไข ข้อมูลโรงเรียน เรียบร้อยแล้ว "; //$ProcessOutput .= "หน้าหลักผู้ดูแลระบบ"; echo ""; $ProcessOutput .= " "; } //อ่านค่าจากไฟล์ Text เพื่อแก้ไข $FileNewsTopic = "schooldata/schooldata.html"; $file_open = @fopen($FileNewsTopic, "r"); $TextContent = @fread ($file_open, @filesize($FileNewsTopic)); @fclose ($file_open); $TextContent = stripslashes($TextContent); ?>
|