HavePermission($Permission)) { exit; } $wordFile0 = "chatmonitor/word_" . $spid . "_0.txt"; $wordFile1 = "chatmonitor/word_" . $spid . "_1.txt"; $ok = 0; $alertMsg = ""; if ($_POST["submit"]) { $words0 = $_POST["words0"]; $words1 = $_POST["words1"]; $ret0 = file_put_contents($wordFile0, $words0); $ret1 = file_put_contents($wordFile1, $words1); if ($ret0 >= 0 && $ret1 >= 0) { $ok = 1; $alertMsg = "ok"; } else { $alertMsg = "error"; } } else { $words0 = \CommFunc\GetFileContents($wordFile0); $words1 = \CommFunc\GetFileContents($wordFile1); } ?>