Bookmark : 'view only' option
This commit is contained in:
@@ -67,7 +67,7 @@ $query = "?server=$server&lang=$lang&db=$db&goto=db_details.php3";
|
||||
<input type="hidden" name="zero_rows" value="<?php echo $strSuccess; ?>">
|
||||
<?php echo $strRunSQLQuery.$db." ".show_docu("manual_Reference.html#Select");?>:<br>
|
||||
<textarea name="sql_query" cols="40" rows="3" wrap="VIRTUAL" style="width: <?php
|
||||
echo $cfgMaxInputsize;?>"></textarea><br>
|
||||
echo $cfgMaxInputsize;?>"><?php echo (isset($sql_query) ? $sql_query : '');?></textarea><br>
|
||||
<?php echo "<i>$strOr</i> $strLocationTextfile";?>:<br>
|
||||
<input type="file" name="sql_file"><br>
|
||||
<?php
|
||||
@@ -84,6 +84,7 @@ if($cfgBookmark['db'] && $cfgBookmark['table'])
|
||||
echo "<option value=\"".htmlentities($value)."\">".htmlentities($key)."</option>\n";
|
||||
}
|
||||
echo "</select>\n";
|
||||
echo "<input type=\"checkbox\" name=\"view_bookmark\" value=\"1\">".$strBookmarkView;
|
||||
echo "<br>\n";
|
||||
}
|
||||
}
|
||||
|
@@ -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 {
|
||||
|
@@ -153,4 +153,5 @@ $strOptimizeTable = "Optimize table";
|
||||
$strBookmarkQuery = "Bookmarked SQL-query";
|
||||
$strBookmarkThis = "Bookmark this SQL-query";
|
||||
$strBookmarkLabel = "Label";
|
||||
$strBookmarkView = "View only";
|
||||
?>
|
||||
|
@@ -170,5 +170,6 @@ $strTableType = "Table en format";
|
||||
|
||||
$strBookmarkQuery = "Requ<EFBFBD>tes bookmark<72>es";
|
||||
$strBookmarkThis = "Bookmarker cette requ<71>te";
|
||||
$strBookmarkLabel = "Label";
|
||||
$strBookmarkLabel = "Intitul<EFBFBD>";
|
||||
$strBookmarkView = "Voir uniquement";
|
||||
?>
|
||||
|
Reference in New Issue
Block a user