get_path_to_root ($post_childof)) . "&folderid=" . $post_childof; if ($post_title == '' || $post_url == '') { $path = $tree->print_path ($folderid); if ($post_title != '') { $title = $post_title; } else { $title = $get_title; } if ($post_url != '') { $url = $post_url; } else if ($get_url != '') { $url = $get_url; } else { $url = 'http://'; } if (strtolower (basename ($_SERVER['SCRIPT_NAME'])) == 'bookmark_add.php') { $js_onclick = 'history.back()'; } else { $js_onclick = 'self.close()'; } ?>

New Bookmark

Title

Homepage

Description


Tags

Public >
escape ($username), $mysql->escape ($post_title), $mysql->escape ($post_url), $mysql->escape ($post_description), $mysql->escape ($post_childof), $mysql->escape ($post_public)); if ($mysql->query ($query)) { echo "Bookmark successfully created
\n"; $bm_id = mysql_insert_id (); } else { message ($mysql->error); } unset ($_SESSION['title'], $_SESSION['url']); # safing the favicon in a separate second step is done because # we want to make sure the bookmark is safed in any case. the # favicon is not that important. if ($settings['show_bookmark_icon']) { require_once (ABSOLUTE_PATH . "favicon.php"); $favicon = & new favicon ($post_url); if (isset ($favicon->favicon)) { $query = sprintf ("UPDATE bookmark set favicon='%s' WHERE user='%s' AND id='%d'", $mysql->escape ($favicon->favicon), $mysql->escape ($username), $mysql->escape ($bm_id)); $mysql->query ($query); $icon = ''; } else { $icon = $bookmark_image; } } if (strtolower (basename ($_SERVER['SCRIPT_NAME'])) == "bookmark_add.php") { echo 'Back to '.$icon.' '.$post_title.'
' . "\n"; echo 'Open '.$folder_opened.' folder containing new Bookmark
' . "\n"; } else { echo ''; # I know, the following is ugly, but I found no other way to do. # When creating a bookmark out of the personal toolbar, there is no # window.opener that can be closed. Thus javascript exits with an error # without finishing itself (self.close()). echo ''; } } require_once (ABSOLUTE_PATH . "footer.php"); ?>