assign("parameter", "neu"); $tpl->assign("check_sending", 1); $tpl->assign("fehler", 1); } elseif ($_REQUEST['action']=="neu") { if ($_REQUEST['check_sending']==1) { if ($_REQUEST['url'] AND $_REQUEST['titel'] AND $_REQUEST['tags']) { if($sicherheits_eingabe == $_SESSION['captcha_spam'] ) { unset($_SESSION['captcha_spam']); addBookmark($userid, $_REQUEST['url'], $_REQUEST['titel'], $_REQUEST['beschr'], makeTag($_REQUEST['tags']), $_REQUEST['privat']); makeRSS(); $tpl->assign("parameter", "neu"); $tpl->assign("check_sending", 1); $tpl->assign("fehler", 0); } } else if (empty($_REQUEST['url']) OR empty($_REQUEST['titel']) OR empty($_REQUEST['tags'])) { $tpl->assign("parameter", "neu"); $tpl->assign("check_sending", 1); $tpl->assign("fehler", 1); } } else if ($_REQUEST[check_sending]!=1) { $tpl->assign("parameter", "neu"); $tpl->assign("check_sending", 0); $tpl->assign("fehler", 0); } if ($_REQUEST[url] AND $_REQUEST[title]) { $tpl->assign("newurl", $_REQUEST[url]); $tpl->assign("newtitle", $_REQUEST[title]); } } if ($_REQUEST[action]=="edit" AND is_numeric($_REQUEST[bmid])){ if ($_REQUEST[check_sending]==1) { if ($_REQUEST[url] AND $_REQUEST[titel] AND $_REQUEST[tags] AND $_REQUEST[bmuid]==$userid) { if($sicherheits_eingabe == $_SESSION['captcha_spam']) { unset($_SESSION['captcha_spam']); updateBookmark($_REQUEST[bmid], $userid, $_REQUEST[url], $_REQUEST[titel], $_REQUEST[beschr], makeTag($_REQUEST[tags]), $_REQUEST[privat]); makeRSS(); $tpl->assign("parameter", "edit"); $tpl->assign("check_sending", 1); $tpl->assign("fehler", 0); } } else if (empty($_REQUEST[url]) OR empty($_REQUEST[titel]) OR empty($_REQUEST[tags])) { $tpl->assign("parameter", "edit"); $tpl->assign("check_sending", 1); $tpl->assign("fehler", 1); } } else if ($_REQUEST[check_sending]!=1) { $tpl->assign("bm_array", getBookmarkDetails($_REQUEST[bmid], $userid)); $tpl->assign("bkmid", $_REQUEST[bmid]); $tpl->assign("parameter", "edit"); $tpl->assign("check_sending", 0); $tpl->assign("fehler", 0); } } /*if ($_REQUEST[action]=="neu" AND $_REQUEST[check_sending]!=1) { $tpl->assign("newurl", $url); $tpl->assign("newtitle", $title); } */ $tpl->assign("seitenname", $GLOBALS["seitename"]); $tpl->display('bookmarken.tpl'); include("footer.php"); ?>