Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Marin <alex.ukf@gmail.com>2012-04-20 18:21:06 +0400
committerAlex Marin <alex.ukf@gmail.com>2012-04-20 18:21:06 +0400
commit4de7d3c83d7a8f0150cddef9dc38acd92f80fb7a (patch)
tree9aad98314e4222f889c8ce50a746201376f7fec0 /import.php
parent621280ec78ce2cde95dc7bec1b915cf63550d9ae (diff)
bookmark sql query after checking errors
Diffstat (limited to 'import.php')
-rw-r--r--import.php25
1 files changed, 0 insertions, 25 deletions
diff --git a/import.php b/import.php
index 7cc3b596f9..ea3db73bd2 100644
--- a/import.php
+++ b/import.php
@@ -241,31 +241,6 @@ if (isset($GLOBALS['show_as_php'])) {
$go_sql = true;
}
-// Store the query as a bookmark before executing it if bookmarklabel was given
-if (! empty($bkm_label) && ! empty($import_text)) {
- include_once 'libraries/bookmark.lib.php';
- $bfields = array(
- 'dbase' => $db,
- 'user' => $cfg['Bookmark']['user'],
- 'query' => urlencode($import_text),
- 'label' => $bkm_label
- );
-
- // Should we replace bookmark?
- if (isset($bkm_replace)) {
- $bookmarks = PMA_Bookmark_getList($db);
- foreach ($bookmarks as $key => $val) {
- if ($val == $bkm_label) {
- PMA_Bookmark_delete($db, $key);
- }
- }
- }
-
- PMA_Bookmark_save($bfields, isset($bkm_all_users));
-
- $bookmark_created = true;
-} // end store bookmarks
-
// We can not read all at once, otherwise we can run out of memory
$memory_limit = trim(@ini_get('memory_limit'));
// 2 MB as default