From ebbed3e47c2dd66ea05d5836574cddf7cebb9dc4 Mon Sep 17 00:00:00 2001 From: pecesama Date: Tue, 2 Oct 2007 22:15:10 +0000 Subject: [PATCH] Fixed bookmarklet problem related to Mozilla's bug 232605 --- admin/form.autosave.php | 44 ----------------------------------------- admin/index.php | 2 +- 2 files changed, 1 insertion(+), 45 deletions(-) delete mode 100644 admin/form.autosave.php 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 -