diff --git a/admin/form.autosave.php b/admin/form.autosave.php deleted file mode 100644 index 570ef5b..0000000 --- a/admin/form.autosave.php +++ /dev/null @@ -1,44 +0,0 @@ -offsetTime)); -} - -function loadForm() { - $type = getMethod(); - $id = ($type=='GET') ? $_GET['autosaveid'] : $_POST['autosaveid']; - if(isset($_SESSION[$id])) - echo $_SESSION[$id]; -} - -function isLoad() { - $type = getMethod(); - if($type=='GET' and isset($_GET['autosave'])) return true; - elseif(isset($_POST['autosave'])) return true; - return false; -} - -function getMethod() { - return $_SERVER['REQUEST_METHOD']; -} - -if(isAjax()) { - if(isLoad()) loadForm(); - else saveForm(); -} - -exit; - -?> \ No newline at end of file diff --git a/admin/index.php b/admin/index.php index 003eb5d..59cc32c 100644 --- a/admin/index.php +++ b/admin/index.php @@ -299,7 +299,7 @@ if ($user->isAdmin()) { Textile
- Bookmarklet - + Bookmarklet -