From: John B. <joh...@gm...> - 2013-02-11 18:48:06
|
Hi, I made a small change (which worked), and then attempted to make it an option, but got in trouble with an undeclared value (cannot see where values are declared or why). Also, I attempted to add the editor back to editor feature, but got lost in flow, and figured big changes may have to be made to make all the input filters in a single, malleable structure -- but not by me, because the flow confuses me. If I have to do it, I will start rewriting from my google docs replacement (GDR), but in perl, because I understand those things. Is there any assistance available before I fork? Please write soon, John Below: fixing the filetoedit (or filetowrite?) works but the ini stuff was an attempt that failed Code: /* Save content from 'editor' */ if (isset($_POST["filetoedit"]) && ($_POST["filetoedit"] != "")) { $filetoedit_handle = fopen($_POST["filetoedit"], "w"); // if (($ini['settings']['no-ctl-M']) && ($no-ctl-M == true)) { $_POST["filecontent"] = str_ireplace("\x0D", "", $_POST["filecontent"]); // } fputs($filetoedit_handle, str_replace("%0D%0A", "%0D%0A", $_POST["filecontent"])); fclose($filetoedit_handle); } And keeping editing going (necessary for online development). I added the input, but I cannot see a filter for the incoming $_POST structures of hidden structures: <input type="submit" value="Execute command"> <input type="submit" name="clear" value="Clear screen"> <?php } else { /* for 'editor-mode' */ ?> <input type="hidden" name="filetoedit" id="filetoedit" value="<?php print($filetoedit) ?>"> <input type="submit" value="Save and Exit"> <input type="submit" name="Save and Continue editing" value="Save and Continue editing"> <input type="reset" value="Undo all Changes"> <input type="submit" value="Exit without saving" onclick="javascript:document.getElementById('filetoedit').value='';return true;"> |