Bookmark : 'executer' option
This commit is contained in:
@@ -14,18 +14,17 @@ include("lib.inc.php3");
|
||||
// Bookmark Support
|
||||
|
||||
if(!empty($id_bookmark)) {
|
||||
if(!empty($action_bookmark)) {
|
||||
switch($action_bookmark) {
|
||||
case 0:
|
||||
$sql_query = query_bookmarks($db, $cfgBookmark, $id_bookmark);
|
||||
break;
|
||||
case 1:
|
||||
$sql_query = delete_bookmarks($db, $cfgBookmark, $id_bookmark);
|
||||
break;
|
||||
}
|
||||
switch($action_bookmark) {
|
||||
case 0:
|
||||
$sql_query = query_bookmarks($db, $cfgBookmark, $id_bookmark);
|
||||
break;
|
||||
case 1:
|
||||
$sql_query = query_bookmarks($db, $cfgBookmark, $id_bookmark);
|
||||
break;
|
||||
case 2:
|
||||
$sql_query = delete_bookmarks($db, $cfgBookmark, $id_bookmark);
|
||||
break;
|
||||
}
|
||||
else
|
||||
$sql_query = query_bookmarks($db, $cfgBookmark, $id_bookmark);
|
||||
}
|
||||
|
||||
//
|
||||
@@ -39,7 +38,7 @@ else if (get_magic_quotes_gpc()) {
|
||||
|
||||
$pieces = split_string($sql_query, ";");
|
||||
|
||||
if (count($pieces) == 1 && !empty($pieces[0]) && empty($action_bookmark)) {
|
||||
if (count($pieces) == 1 && !empty($pieces[0]) && $action_bookmark==0) {
|
||||
$sql_query = addslashes(trim($pieces[0]));
|
||||
// Enforce reloading of the left frame when a table has to be created
|
||||
if (eregi('^CREATE TABLE (.+)', $sql_query)) {
|
||||
|
Reference in New Issue
Block a user