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

@@ -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; ?>"> <input type="hidden" name="zero_rows" value="<?php echo $strSuccess; ?>">
<?php echo $strRunSQLQuery.$db." ".show_docu("manual_Reference.html#Select");?>:<br> <?php echo $strRunSQLQuery.$db." ".show_docu("manual_Reference.html#Select");?>:<br>
<textarea name="sql_query" cols="40" rows="3" wrap="VIRTUAL" style="width: <?php <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> <?php echo "<i>$strOr</i> $strLocationTextfile";?>:<br>
<input type="file" name="sql_file"><br> <input type="file" name="sql_file"><br>
<?php <?php
@@ -84,6 +84,7 @@ if($cfgBookmark['db'] && $cfgBookmark['table'])
echo "<option value=\"".htmlentities($value)."\">".htmlentities($key)."</option>\n"; echo "<option value=\"".htmlentities($value)."\">".htmlentities($key)."</option>\n";
} }
echo "</select>\n"; echo "</select>\n";
echo "<input type=\"checkbox\" name=\"view_bookmark\" value=\"1\">".$strBookmarkView;
echo "<br>\n"; echo "<br>\n";
} }
} }

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, ";"); $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()) { if(!get_magic_quotes_gpc()) {
$sql_query = addslashes(trim($pieces[0])); $sql_query = addslashes(trim($pieces[0]));
} else { } else {

View File

@@ -153,4 +153,5 @@ $strOptimizeTable = "Optimize table";
$strBookmarkQuery = "Bookmarked SQL-query"; $strBookmarkQuery = "Bookmarked SQL-query";
$strBookmarkThis = "Bookmark this SQL-query"; $strBookmarkThis = "Bookmark this SQL-query";
$strBookmarkLabel = "Label"; $strBookmarkLabel = "Label";
$strBookmarkView = "View only";
?> ?>

View File

@@ -170,5 +170,6 @@ $strTableType = "Table en format";
$strBookmarkQuery = "Requ<EFBFBD>tes bookmark<72>es"; $strBookmarkQuery = "Requ<EFBFBD>tes bookmark<72>es";
$strBookmarkThis = "Bookmarker cette requ<71>te"; $strBookmarkThis = "Bookmarker cette requ<71>te";
$strBookmarkLabel = "Label"; $strBookmarkLabel = "Intitul<EFBFBD>";
$strBookmarkView = "Voir uniquement";
?> ?>