loadTemplate('error.500.tpl', $tplVars); exit(); } if (POST_CONFIRM) { if (strlen($hash)>0 && $cdservice->addBookmarkDescription(POST_HASH, stripslashes(POST_TITLE), stripslashes(POST_DESCRIPTION), $currentUser->getId(), time()) ) { $tplVars['msg'] = T_('Bookmark common description updated'); header('Location: '. POST_REFERRER); } else { $tplVars['error'] = T_('Failed to update the bookmark common description'); $template = 'error.500.tpl'; } } elseif (POST_CANCEL) { header('Location: '. POST_REFERRER); } else { $bkm = $bookmarkservice->getBookmarkByHash($hash); $tplVars['subtitle'] = T_('Edit Bookmark Common Description') .': '. $bkm['bAddress']; $tplVars['formaction'] = $_SERVER['SCRIPT_NAME'] .'/'. $hash; $tplVars['referrer'] = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : ''; $tplVars['hash'] = $hash; $tplVars['description'] = $cdservice->getLastBookmarkDescription($hash); } $templateservice->loadTemplate($template, $tplVars); ?>