From 1eca2d231c79c046a3c122a09bd761fa8f641a6e Mon Sep 17 00:00:00 2001 From: mensonge Date: Tue, 19 May 2009 15:59:55 +0000 Subject: Many interface changes: add 'back to the top links', a variable to display more bookmarks for admins... git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@329 b3834d28-1941-0410-a4f8-b48e95affb8f --- edit.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'edit.php') diff --git a/edit.php b/edit.php index 01f2e59..76a977c 100644 --- a/edit.php +++ b/edit.php @@ -1,4 +1,5 @@ getBookmark(intval($bookmark), true))) { $tplVars['error'] = sprintf(T_('Bookmark with id %s not was not found'), $bookmark); $templateservice->loadTemplate('error.404.tpl', $tplVars); exit(); } else { + if (!$bookmarkservice->editAllowed($row)) { $tplVars['error'] = T_('You are not allowed to edit this bookmark'); $templateservice->loadTemplate('error.500.tpl', $tplVars); exit(); } else if (POST_SUBMITTED != '') { + + + if (!POST_TITLE || !POST_ADDRESS) { $tplVars['error'] = T_('Your bookmark must have a title and an address'); } else { @@ -66,7 +71,7 @@ if (!($row = $bookmarkservice->getBookmark(intval($bookmark), true))) { $description = trim(POST_DESCRIPTION); $privateNote = trim(POST_PRIVATENOTE); $status = intval(POST_STATUS); - $tags = trim(POST_TAGS); + $tags = trim(POST_TAGS); if (!$bookmarkservice->updateBookmark($bId, $address, $title, $description, $privateNote, $status, $tags)) { $tplvars['error'] = T_('Error while saving your bookmark'); -- cgit v1.2.3-54-g00ecf