Bookmark : 'view only' option

This commit is contained in:
Armel Fauveau
2001-05-10 04:12:51 +00:00
parent ce9d3b8c57
commit 2765982708
4 changed files with 6 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ if(!empty($sql_file) && $sql_file != "none" && ereg("^php[0-9A-Za-z_.-]+$", base
$pieces = split_string($sql_query, ";");
if (count($pieces) == 1 && !empty($pieces[0])) {
if (count($pieces) == 1 && !empty($pieces[0]) && empty($view_bookmark)) {
if(!get_magic_quotes_gpc()) {
$sql_query = addslashes(trim($pieces[0]));
} else {