var pagename = window.location.pathname.replace(/^\//, '') || 'index';
var data = 'page='+encodeURIComponent(pagename)+'&body='+encodeURIComponent(editor.getData());
ajaxpost = new XMLHttpRequest();
- ajaxpost.open('POST', 'edit.php', true);
+ ajaxpost.open('POST', '/edit.php', true);
ajaxpost.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
ajaxpost.onreadystatechange = function () {
if (ajaxpost.readyState != 4)
['Inlinesave', '-', 'ShowBlocks', 'Sourcedialog', '-', 'Undo', 'Redo'],
['Format'],
['BulletedList', 'NumberedList', '-', 'Blockquote'],
- ['Bold', 'Italic', 'Underline', 'Strike', '-', 'Link'],
+ ['Bold', 'Italic', 'Underline', 'Strike', 'RemoveFormat', '-', 'Link'],
['HorizontalRule', 'Table', 'Image'],
];
if (file_exists($filename) and !is_writable($filename))
abort('403 input error', "ongeldige bestandsnaam: $filename");
-$prepend = '<!--#include virtual="common.html" -->'."\n\n";
-$append = "\n".'<!--#include virtual="footer.html" -->'."\n";
+$prepend = '<!--#include virtual="/common.html" -->'."\n\n";
+$append = "\n".'<!--#include virtual="/footer.html" -->'."\n";
$upload = $_POST['body'];
if (!$upload)