Fix bug #2555949 Where inserting in a table with no champs is allowed and shows warni...
authorGuillaume (ioguix) de Rorthais <ioguix@free.fr>
Sun, 8 Feb 2009 17:20:15 +0000 (12:20 -0500)
committerGuillaume (ioguix) de Rorthais <ioguix@free.fr>
Sun, 8 Feb 2009 17:20:15 +0000 (12:20 -0500)
lang/english.php
lang/french.php
lang/recoded/english.php
tables.php

index ca4bcdc67ee47cb263ff2e5e10d5744fed98c968..9bf6d322d7a509230307c633a21c60139b1ae831 100644 (file)
        $lang['strspecifytabletoempty'] = 'You must specify at least one table to empty.';
        $lang['strspecifytabletodrop'] = 'You must specify at least one table to drop.';
        $lang['strspecifytabletovacuum'] = 'You must specify at least one table to vacuum.';
+       $lang['strnofieldsforinsert'] = 'You cannot insert a row into a table with no column.';
 
        // Columns
        $lang['strcolprop'] = 'Column properties';
index 9c0c01c8e81c28d17da999463d3f13b8bd87b5a0..5abda048c7446114181c340d6eecf2db94ef46f6 100644 (file)
        $lang['strfile']  =  'Fichier';
        $lang['strfileimported']  =  'Fichier importé.';
        $lang['strtrycred']  =  'Utilisez ces identifiants pour tous les serveurs';
+$lang['strconfdropcred']  =  'For security reason, disconnecting will destroy your shared login information. Are you sure you want to disconnect ?';
        $lang['stractionsonmultiplelines']  =  'Actions sur plusieurs lignes';
        $lang['strselectall']  =  'Sélectionner tout';
        $lang['strunselectall']  =  'Desélectionner tout';
        $lang['strspecifytabletoempty']  =  'Vous devez spécifier au moins une table à vider';
        $lang['strspecifytabletodrop']  =  'Vous devez spécifier au moins une table à supprimer';
        $lang['strspecifytabletovacuum']  =  'Vous devez spécifier au moins une table sur laquelle effectuer le vacuum';
+       $lang['strnofieldsforinsert']  =  'Vous ne pouvez insérer de données dans une table sans champs.';
 
        // Columns
        $lang['strcolprop']  =  'Propriétés de la Colonne';
index 37c10bd9ded9c917be019415c45e8db2aea83b87..d5fdab4bc69a4a8ed65ae2e7c4400c90cde15f4f 100644 (file)
        $lang['strspecifytabletoempty'] = 'You must specify at least one table to empty.';
        $lang['strspecifytabletodrop'] = 'You must specify at least one table to drop.';
        $lang['strspecifytabletovacuum'] = 'You must specify at least one table to vacuum.';
+       $lang['strnofieldsforinsert'] = 'You cannot insert a row into a table with no column.';
 
        // Columns
        $lang['strcolprop'] = 'Column properties';
index 16913a71c9c9e274b4589f6a9c5fa81c43ca2db4..582a2cc25b1cd99d01a5c45568bafff1ac86f633 100644 (file)
                                        echo '<script src="aciur.js" type="text/javascript"></script>';
                                        echo "<div id=\"ac\"></div>";
                                }
-                       }
-                       else echo "<p>{$lang['strnodata']}</p>\n";
 
-                       if (!isset($_SESSION['counter'])) { $_SESSION['counter'] = 0; }
+                               if (!isset($_SESSION['counter'])) { $_SESSION['counter'] = 0; }
 
-                       echo "<input type=\"hidden\" name=\"action\" value=\"insertrow\" />\n";
-                       echo "<input type=\"hidden\" name=\"protection_counter\" value=\"".$_SESSION['counter']."\" />\n";
-                       echo "<input type=\"hidden\" name=\"table\" value=\"", htmlspecialchars($_REQUEST['table']), "\" />\n";
-                       echo $misc->form;
-                       echo "<p><input type=\"submit\" name=\"insert\" value=\"{$lang['strinsert']}\" />\n";
-                       echo "<input type=\"submit\" name=\"insertandrepeat\" value=\"{$lang['strinsertandrepeat']}\" />\n";
-                       echo "<input type=\"submit\" name=\"cancel\" value=\"{$lang['strcancel']}\" />\n";
-                       if($bAllowAC) {
-                               $szChecked = $conf['autocomplete'] != 'default off' ? 'checked="checked"' : '';
-                               echo "<input type=\"checkbox\" name=\"no_ac\" id=\"no_ac\" onclick=\"rEB(this.checked);\" value=\"1\" {$szChecked} /><label for='no_ac' onmouseover='this.style.cursor=\"pointer\";'>{$lang['strac']}</label>\n";
+                               echo "<input type=\"hidden\" name=\"action\" value=\"insertrow\" />\n";
+                               echo "<input type=\"hidden\" name=\"protection_counter\" value=\"".$_SESSION['counter']."\" />\n";
+                               echo "<input type=\"hidden\" name=\"table\" value=\"", htmlspecialchars($_REQUEST['table']), "\" />\n";
+                               echo "<p><input type=\"submit\" name=\"insert\" value=\"{$lang['strinsert']}\" />\n";
+                               echo "<input type=\"submit\" name=\"insertandrepeat\" value=\"{$lang['strinsertandrepeat']}\" />\n";
+                               echo "<input type=\"submit\" name=\"cancel\" value=\"{$lang['strcancel']}\" />\n";
+                               if($bAllowAC) {
+                                       $szChecked = $conf['autocomplete'] != 'default off' ? 'checked="checked"' : '';
+                                       echo "<input type=\"checkbox\" name=\"no_ac\" id=\"no_ac\" onclick=\"rEB(this.checked);\" value=\"1\" {$szChecked} /><label for='no_ac' onmouseover='this.style.cursor=\"pointer\";'>{$lang['strac']}</label>\n";
+                               }
+                               echo "</p>\n";
+                               echo "<script type=\"text/javascript\">rEB(document.getElementById('no_ac').checked);</script>";
                        }
-                       echo "</p>\n";
+                       else { 
+                               echo "<p>{$lang['strnofieldsforinsert']}</p>\n";
+                               echo "<input type=\"submit\" name=\"cancel\" value=\"{$lang['strcancel']}\" />\n";
+                       }
+                       echo $misc->form;
                        echo "</form>\n";
-                       echo "<script type=\"text/javascript\">rEB(document.getElementById('no_ac').checked);</script>";
                }
                else {
                        if (!isset($_POST['values'])) $_POST['values'] = array();