<?php require_once './header.php'; logged_in_only(); $delete = set_post_string_var('delete'); $create = set_post_string_var('create'); $new_username = set_post_string_var('new_username'); $new_password = set_post_string_var('new_password'); $new_admin = set_post_bool_var('new_admin', false); $existing_user = set_post_string_var('existing_user'); $noconfirm = set_get_noconfirm(); $message1 = ''; $message2 = ''; ?> <h1 id="caption">Admin Page</h1> <!-- Wrapper starts here. --> <div style="min-width: <?php echo 230 + $settings['column_width_folder']; ?> px;"> <!-- Menu starts here. --> <div id="menu"> <h2 class="nav">Bookmarks</h2> <ul class="nav"> <li><a href="./index.php">My Bookmarks</a></li> <li><a href="./shared.php">Shared Bookmarks</a></li> </ul> <h2 class="nav">Tools</h2>
<?php require_once "./header.php"; logged_in_only(); $bmlist = set_get_num_list('bmlist'); if (count($bmlist) == 0) { echo "No Bookmarks selected"; } else { if (!$settings['confirm_delete'] || set_get_noconfirm()) { $bmlist = implode(",", $bmlist); $query = sprintf("DELETE FROM bookmark WHERE id IN (%s) AND user='******'", $mysql->escape($bmlist), $mysql->escape($username)); if ($mysql->query($query)) { echo "Bookmarks successfully deleted<br>\n"; echo '<script language="JavaScript">reloadclose();</script>'; } else { message($mysql->error); } } else { $bmlistq = implode(",", $bmlist); $query = sprintf("SELECT title, id, favicon FROM bookmark WHERE id IN (%s) AND user='******' ORDER BY title", $mysql->escape($bmlistq), $mysql->escape($username)); if ($mysql->query($query)) { require_once ABSOLUTE_PATH . "bookmarks.php"; $query_string = "?bmlist=" . implode("_", $bmlist) . "&noconfirm=1"; ?> <h2 class="title">Delete these Bookmarks?</h2> <div style="width:100%; height:330px; overflow:auto;"> <?php $bookmarks = array(); while ($row = mysql_fetch_assoc($mysql->result)) {