do not edit blob fields

This commit is contained in:
Marc Delisle
2001-06-30 23:51:05 +00:00
parent 9763216d2d
commit 3203f41215
25 changed files with 97 additions and 27 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2001-06-30 Marc Delisle <lem9@users.sourceforge.net>
* tbl_change.php3, lang/*: merge patch: "do not edit blobs" from
Bernard M. Piller <bernard@bmpsystems.com>
======================================================================================== ========================================================================================
2001-06-30 Olivier M<>ller <om@omnis.ch> 2001-06-30 Olivier M<>ller <om@omnis.ch>
IMPORTANT : FROM NOW, PLEASE COMMIT YOUR CHANGES IN THE PHPMYADMIN-DEVEL BRANCH! IMPORTANT : FROM NOW, PLEASE COMMIT YOUR CHANGES IN THE PHPMYADMIN-DEVEL BRANCH!

View File

@@ -270,4 +270,6 @@ $strYes = "Sim";
// automatic generated by langxlorer.php (June 27, 2001, 6:53 pm) // automatic generated by langxlorer.php (June 27, 2001, 6:53 pm)
// V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de) // V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de)
?> $strBinary=" Binary "; //to translate
$strBinaryDoNotEdit=" Binary - do not edit "; //to translate
?>

View File

@@ -270,4 +270,6 @@ $strYes = "
// automatic generated by langxlorer.php (June 27, 2001, 6:53 pm) // automatic generated by langxlorer.php (June 27, 2001, 6:53 pm)
// V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de) // V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de)
?> $strBinary=" Binary "; //to translate
$strBinaryDoNotEdit=" Binary - do not edit "; //to translate
?>

View File

@@ -270,4 +270,6 @@ $strYes = "Si";
// automatic generated by langxlorer.php (June 27, 2001, 6:53 pm) // automatic generated by langxlorer.php (June 27, 2001, 6:53 pm)
// V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de) // V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de)
?> $strBinary=" Binary "; //to translate
$strBinaryDoNotEdit=" Binary - do not edit "; //to translate
?>

View File

@@ -270,4 +270,6 @@ $strYes = "
// automatic generated by langxlorer.php (June 27, 2001, 6:53 pm) // automatic generated by langxlorer.php (June 27, 2001, 6:53 pm)
// V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de) // V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de)
?> $strBinary=" Binary "; //to translate
$strBinaryDoNotEdit=" Binary - do not edit "; //to translate
?>

View File

@@ -270,4 +270,6 @@ $strYes = "
// automatic generated by langxlorer.php (June 27, 2001, 6:53 pm) // automatic generated by langxlorer.php (June 27, 2001, 6:53 pm)
// V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de) // V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de)
?> $strBinary=" Binary "; //to translate
$strBinaryDoNotEdit=" Binary - do not edit "; //to translate
?>

View File

@@ -270,4 +270,6 @@ $strYes = "Ano";
// automatic generated by langxlorer.php (June 27, 2001, 6:53 pm) // automatic generated by langxlorer.php (June 27, 2001, 6:53 pm)
// V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de) // V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de)
?> $strBinary=" Binary "; //to translate
$strBinaryDoNotEdit=" Binary - do not edit "; //to translate
?>

View File

@@ -270,4 +270,6 @@ $strYes = "Ano";
// automatic generated by langxlorer.php (June 27, 2001, 6:53 pm) // automatic generated by langxlorer.php (June 27, 2001, 6:53 pm)
// V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de) // V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de)
?> $strBinary=" Binary "; //to translate
$strBinaryDoNotEdit=" Binary - do not edit "; //to translate
?>

View File

@@ -270,4 +270,6 @@ $strYes = "Ja";
// automatic generated by langxlorer.php (June 27, 2001, 6:53 pm) // automatic generated by langxlorer.php (June 27, 2001, 6:53 pm)
// V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de) // V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de)
?> $strBinary=" Binary "; //to translate
$strBinaryDoNotEdit=" Binary - do not edit "; //to translate
?>

View File

@@ -270,4 +270,6 @@ $strYes = "Ja";
// automatic generated by langxlorer.php (June 27, 2001, 6:53 pm) // automatic generated by langxlorer.php (June 27, 2001, 6:53 pm)
// V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de) // V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de)
?> $strBinary=" Binary "; //to translate
$strBinaryDoNotEdit=" Binary - do not edit "; //to translate
?>

View File

@@ -270,4 +270,6 @@ $strYes = "Yes";
// automatic generated by langxlorer.php (June 27, 2001, 6:53 pm) // automatic generated by langxlorer.php (June 27, 2001, 6:53 pm)
// V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de) // V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de)
?> $strBinary="Binary";
$strBinaryDoNotEdit="Binary - do not edit";
?>

View File

@@ -270,4 +270,6 @@ $strYes = "Oui";
// automatic generated by langxlorer.php (June 27, 2001, 6:53 pm) // automatic generated by langxlorer.php (June 27, 2001, 6:53 pm)
// V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de) // V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de)
?> $strBinary="Binaire";
$strBinaryDoNotEdit="Binaire - ne pas <20>diter";
?>

View File

@@ -270,4 +270,6 @@ $strYes = "Ja";
// automatic generated by langxlorer.php (June 27, 2001, 6:53 pm) // automatic generated by langxlorer.php (June 27, 2001, 6:53 pm)
// V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de) // V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de)
?> $strBinary=" Binary "; //to translate
$strBinaryDoNotEdit=" Binary - do not edit "; //to translate
?>

View File

@@ -270,4 +270,6 @@ $strYes = " Si ";
// automatic generated by langxlorer.php (June 27, 2001, 6:53 pm) // automatic generated by langxlorer.php (June 27, 2001, 6:53 pm)
// V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de) // V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de)
?> $strBinary=" Binary "; //to translate
$strBinaryDoNotEdit=" Binary - do not edit "; //to translate
?>

View File

@@ -270,4 +270,6 @@ $strYes = "
// automatic generated by langxlorer.php (June 27, 2001, 6:53 pm) // automatic generated by langxlorer.php (June 27, 2001, 6:53 pm)
// V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de) // V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de)
?> $strBinary=" Binary "; //to translate
$strBinaryDoNotEdit=" Binary - do not edit "; //to translate
?>

View File

@@ -270,4 +270,6 @@ $strYes = "
// automatic generated by langxlorer.php (June 27, 2001, 6:53 pm) // automatic generated by langxlorer.php (June 27, 2001, 6:53 pm)
// V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de) // V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de)
?> $strBinary=" Binary "; //to translate
$strBinaryDoNotEdit=" Binary - do not edit "; //to translate
?>

View File

@@ -270,4 +270,6 @@ $strYes = "Ja";
// automatic generated by langxlorer.php (June 27, 2001, 6:53 pm) // automatic generated by langxlorer.php (June 27, 2001, 6:53 pm)
// V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de) // V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de)
?> $strBinary=" Binary "; //to translate
$strBinaryDoNotEdit=" Binary - do not edit "; //to translate
?>

View File

@@ -270,4 +270,6 @@ $strYes = "Tak";
// automatic generated by langxlorer.php (June 27, 2001, 6:53 pm) // automatic generated by langxlorer.php (June 27, 2001, 6:53 pm)
// V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de) // V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de)
?> $strBinary=" Binary "; //to translate
$strBinaryDoNotEdit=" Binary - do not edit "; //to translate
?>

View File

@@ -270,4 +270,6 @@ $strYes = "Sim";
// automatic generated by langxlorer.php (June 27, 2001, 6:53 pm) // automatic generated by langxlorer.php (June 27, 2001, 6:53 pm)
// V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de) // V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de)
?> $strBinary=" Binary "; //to translate
$strBinaryDoNotEdit=" Binary - do not edit "; //to translate
?>

View File

@@ -270,4 +270,6 @@ $strYes = "
// automatic generated by langxlorer.php (June 27, 2001, 6:53 pm) // automatic generated by langxlorer.php (June 27, 2001, 6:53 pm)
// V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de) // V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de)
?> $strBinary=" Binary "; //to translate
$strBinaryDoNotEdit=" Binary - do not edit "; //to translate
?>

View File

@@ -270,4 +270,6 @@ $strYes = "
// automatic generated by langxlorer.php (June 27, 2001, 6:53 pm) // automatic generated by langxlorer.php (June 27, 2001, 6:53 pm)
// V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de) // V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de)
?> $strBinary=" Binary "; //to translate
$strBinaryDoNotEdit=" Binary - do not edit "; //to translate
?>

View File

@@ -270,4 +270,6 @@ $strYes = "Si";
// automatic generated by langxlorer.php (June 27, 2001, 6:53 pm) // automatic generated by langxlorer.php (June 27, 2001, 6:53 pm)
// V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de) // V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de)
?> $strBinary=" Binary "; //to translate
$strBinaryDoNotEdit=" Binary - do not edit "; //to translate
?>

View File

@@ -270,4 +270,6 @@ $strYes = "Ja";
// automatic generated by langxlorer.php (June 27, 2001, 6:53 pm) // automatic generated by langxlorer.php (June 27, 2001, 6:53 pm)
// V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de) // V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de)
?> $strBinary=" Binary "; //to translate
$strBinaryDoNotEdit=" Binary - do not edit "; //to translate
?>

View File

@@ -270,4 +270,6 @@ $strYes = "Yes"; //to translate
// automatic generated by langxlorer.php (June 27, 2001, 6:53 pm) // automatic generated by langxlorer.php (June 27, 2001, 6:53 pm)
// V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de) // V0.11 - experimental (Steve Alberty - alberty@neptunlabs.de)
?> $strBinary=" Binary "; //to translate
$strBinaryDoNotEdit=" Binary - do not edit "; //to translate
?>

View File

@@ -70,10 +70,24 @@ for($i=0;$i<mysql_num_rows($table_def);$i++)
break; break;
} }
echo "<td>$type</td>\n"; echo "<td>$type</td>\n";
echo "<td><select name=\"funcs[$field]\"><option>\n";
for($j=0; $j<count($cfgFunctions); $j++) // THE FUNCTION COLUMN
echo "<option>$cfgFunctions[$j]\n"; // Change by Bernard M. Piller <bernard@bmpsystems.com>
echo "</select></td>\n"; // We don't want binary data to be destroyed
if(strstr($row_table_def["Type"], "blob"))
{
echo "<td>$strBinary</td>";
}
else
{
echo "<td><select name=\"funcs[$field]\"><option>\n";
for($j=0; $j<count($cfgFunctions); $j++)
echo "<option>$cfgFunctions[$j]\n";
echo "</select></td>\n";
}
// THE VALUE COLUMN
if(isset($row) && isset($row[$field])) if(isset($row) && isset($row[$field]))
{ {
$special_chars = htmlspecialchars($row[$field]); $special_chars = htmlspecialchars($row[$field]);
@@ -170,6 +184,12 @@ for($i=0;$i<mysql_num_rows($table_def);$i++)
} }
echo "</select></td>"; echo "</select></td>";
} }
// Change by Bernard M. Piller <bernard@bmpsystems.com>
// We don't want binary data destroyed
elseif(strstr($row_table_def["Type"], "blob"))
{
echo "<td>" . $strBinaryDoNotEdit . "</td>";
}
else else
{ {
echo "<td><input type=text name=fields[$field] value=\"".$special_chars."\" style=\"width:$cfgMaxInputsize;\" maxlength=$len></td>"; echo "<td><input type=text name=fields[$field] value=\"".$special_chars."\" style=\"width:$cfgMaxInputsize;\" maxlength=$len></td>";