GetConfig(); $link = base64_decode($_GET['ref'], TRUE); $newmark = new Bookmark(); $newmark->user_id = get_userid(); $newmark->url = $link; $newmark->title = $_GET['title']; $result = $newmark->save(); if($result) { header('Location: //' . $link); } else { redirect($config['admin_url'] . '/listbookmarks.php?' . CMS_SECURE_PARAM_NAME . '=' . $_SESSION[CMS_USER_KEY]); } ?>