From bda513743f79cd210f27f725480624a07b69499e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Sat, 19 May 2001 21:23:06 +0000 Subject: [PATCH] Opus, I've melt dev version and stable one yesterday... --- db_readdump.php3 | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/db_readdump.php3 b/db_readdump.php3 index 2485b95f8..950dd92bf 100755 --- a/db_readdump.php3 +++ b/db_readdump.php3 @@ -3,16 +3,37 @@ @set_time_limit(10000); - require("grab_globals.inc.php3"); require("lib.inc.php3"); // set up default values +$view_bookmark = 0; +$sql_bookmark = isset($sql_bookmark) ? $sql_bookmark : ""; $sql_query = isset($sql_query) ? $sql_query : ""; $sql_file = isset($sql_file) ? $sql_file : "none"; - + + +// Bookmark Support +if(!empty($id_bookmark)) { + switch($action_bookmark) { + case 0: + $sql_query = query_bookmarks($db, $cfgBookmark, $id_bookmark); + break; + + case 1: + $sql_query = query_bookmarks($db, $cfgBookmark, $id_bookmark); + $view_bookmark = 1; + break; + + case 2: + $sql_query = delete_bookmarks($db, $cfgBookmark, $id_bookmark); + break; + } +} + + if($sql_file != "none") { // do file upload @@ -55,4 +76,4 @@ if($sql_query != "") { $sql_query = $sql_query_cpy; $message = $strSuccess; require("db_details.php3"); -?> +?> \ No newline at end of file