- <?php
- include_once ('config.php');
- $path = $_POST['path'];
- $file = $_POST['file'];
- $content = $_POST['content'];
- // this is a fix for returns that doubles each time saved is pressed
- $content = str_replace("r",'',$content);
- $fp = @fopen("$path/$file", "w");
- if ($fp)
- {
- fputs($fp,stripslashes($content));
- fclose($fp);
- $show_Message = 1;
- }
- else $show_Message = 2;
- include("./edit_text.php");
English
