]> git.joonet.de Git - adminer.git/commitdiff
Use autocapitalize="off"
authorJakub Vrana <jakub@vrana.cz>
Thu, 31 Jan 2013 05:35:51 +0000 (21:35 -0800)
committerJakub Vrana <jakub@vrana.cz>
Thu, 31 Jan 2013 07:47:53 +0000 (23:47 -0800)
17 files changed:
adminer/create.inc.php
adminer/database.inc.php
adminer/db.inc.php
adminer/event.inc.php
adminer/include/adminer.inc.php
adminer/include/editing.inc.php
adminer/indexes.inc.php
adminer/privileges.inc.php
adminer/procedure.inc.php
adminer/scheme.inc.php
adminer/sequence.inc.php
adminer/trigger.inc.php
adminer/type.inc.php
adminer/user.inc.php
adminer/view.inc.php
changes.txt
editor/include/adminer.inc.php

index b698a8ec59fd9b95cf64338925e3a915c43ca636..3b6665d1a69b1df3f9ee7420154375065725cbb0 100644 (file)
@@ -162,7 +162,7 @@ foreach ($engines as $engine) {
 
 <form action="" method="post" id="form">
 <p>
-<?php echo lang('Table name'); ?>: <input name="name" maxlength="64" value="<?php echo h($row["name"]); ?>">
+<?php echo lang('Table name'); ?>: <input name="name" maxlength="64" value="<?php echo h($row["name"]); ?>" autocapitalize="off">
 <?php if ($TABLE == "" && !$_POST) { ?><script type='text/javascript'>document.getElementById('form')['name'].focus();</script><?php } ?>
 <?php echo ($engines ? html_select("Engine", array("" => "(" . lang('engine') . ")") + $engines, $row["Engine"]) : ""); ?>
  <?php echo ($collations && !ereg("sqlite|mssql", $jush) ? html_select("Collation", array("" => "(" . lang('collation') . ")") + $collations, $row["Collation"]) : ""); ?>
@@ -182,10 +182,10 @@ edit_fields($row["fields"], $collations, "TABLE", $suhosin, $foreign_keys, $comm
 ?>
 </table>
 <p>
-<?php echo lang('Auto Increment'); ?>: <input name="Auto_increment" size="6" value="<?php echo h($row["Auto_increment"]); ?>">
+<?php echo lang('Auto Increment'); ?>: <input type="number" name="Auto_increment" size="6" value="<?php echo h($row["Auto_increment"]); ?>">
 <label class="jsonly"><input type="checkbox" id="defaults" name="defaults" value="1" checked onclick="columnShow(this.checked, 5);"><?php echo lang('Default values'); ?></label>
 <?php if (!$_POST["defaults"]) { ?><script type="text/javascript">editingHideDefaults()</script><?php } ?>
-<?php echo (support("comment") ? checkbox("comments", 1, $comments, lang('Comment'), "columnShow(this.checked, 6); toggle('Comment'); if (this.checked) this.form['Comment'].focus();", true) . ' <input id="Comment" name="Comment" value="' . h($row["Comment"]) . '" maxlength="' . ($connection->server_info >= 5.5 ? 2048 : 60) . '"' . ($comments ? '' : ' class="hidden"') . '>' : ''); ?>
+<?php echo (support("comment") ? checkbox("comments", 1, $comments, lang('Comment'), "columnShow(this.checked, 6); toggle('Comment'); if (this.checked) this.form['Comment'].focus();", true) . ' <input name="Comment" id="Comment" value="' . h($row["Comment"]) . '" maxlength="' . ($connection->server_info >= 5.5 ? 2048 : 60) . '"' . ($comments ? '' : ' class="hidden"') . '>' : ''); ?>
 <p>
 <input type="submit" value="<?php echo lang('Save'); ?>">
 <?php if ($_GET["create"] != "") { ?><input type="submit" name="drop" value="<?php echo lang('Drop'); ?>"<?php echo confirm(); ?>><?php } ?>
@@ -204,7 +204,7 @@ if (support("partitioning")) {
 <?php
 foreach ($row["partition_names"] as $key => $val) {
        echo '<tr>';
-       echo '<td><input name="partition_names[]" value="' . h($val) . '"' . ($key == count($row["partition_names"]) - 1 ? ' onchange="partitionNameChange(this);"' : '') . '>';
+       echo '<td><input name="partition_names[]" value="' . h($val) . '"' . ($key == count($row["partition_names"]) - 1 ? ' onchange="partitionNameChange(this);"' : '') . ' autocapitalize="off">';
        echo '<td><input name="partition_values[]" value="' . h($row["partition_values"][$key]) . '">';
 }
 ?>
index 58697c04a0f2bce4f9b99e15d38c91f6567d5bc5..616549304bf51c5651872561b208b79f0a6f575b 100644 (file)
@@ -59,7 +59,7 @@ if ($_POST) {
 <?php
 echo ($_POST["add_x"] || strpos($name, "\n")
        ? '<textarea id="name" name="name" rows="10" cols="40">' . h($name) . '</textarea><br>'
-       : '<input id="name" name="name" value="' . h($name) . '" maxlength="64">'
+       : '<input name="name" id="name" value="' . h($name) . '" maxlength="64" autocapitalize="off">'
 ) . "\n" . ($collations ? html_select("collation", array("" => "(" . lang('collation') . ")") + $collations, $collate) : "");
 ?>
 <script type='text/javascript'>document.getElementById('name').focus();</script>
index 9ad10c61f1ef27a4bc07bdc4897812e70d3b684b..fc0a48536b3c5ea7c4731d3d2f2b5574a8d94747 100644 (file)
@@ -105,7 +105,7 @@ if ($adminer->homepage()) {
                                if (count($databases) != 1 && $jush != "sqlite") {
                                        $db = (isset($_POST["target"]) ? $_POST["target"] : (support("scheme") ? $_GET["ns"] : DB));
                                        echo "<p>" . lang('Move to other database') . ": ";
-                                       echo ($databases ? html_select("target", $databases, $db) : '<input name="target" value="' . h($db) . '">');
+                                       echo ($databases ? html_select("target", $databases, $db) : '<input name="target" value="' . h($db) . '" autocapitalize="off">');
                                        echo " <input type='submit' name='move' value='" . lang('Move') . "'>";
                                        echo (support("copy") ? " <input type='submit' name='copy' value='" . lang('Copy') . "'>" : "");
                                        echo "\n";
index c1926a9b9c0dbed75d545ae6cf2bef182092c08e..9e544176b563f307bac475f8c117b747d5bc0245 100644 (file)
@@ -35,7 +35,7 @@ if (!$row && $EVENT != "") {
 
 <form action="" method="post">
 <table cellspacing="0">
-<tr><th><?php echo lang('Name'); ?><td><input name="EVENT_NAME" value="<?php echo h($row["EVENT_NAME"]); ?>" maxlength="64">
+<tr><th><?php echo lang('Name'); ?><td><input name="EVENT_NAME" value="<?php echo h($row["EVENT_NAME"]); ?>" maxlength="64" autocapitalize="off">
 <tr><th><?php echo lang('Start'); ?><td><input name="STARTS" value="<?php echo h("$row[EXECUTE_AT]$row[STARTS]"); ?>">
 <tr><th><?php echo lang('End'); ?><td><input name="ENDS" value="<?php echo h($row["ENDS"]); ?>">
 <tr><th><?php echo lang('Every'); ?><td><input type="number" name="INTERVAL_VALUE" value="<?php echo h($row["INTERVAL_VALUE"]); ?>" class="size"> <?php echo html_select("INTERVAL_FIELD", $intervals, $row["INTERVAL_FIELD"]); ?>
index 5d27e26b1de86c4c2fee877f34b666177733f20a..579521076ee10bc00047e18989107d47e312744b 100644 (file)
@@ -71,10 +71,10 @@ class Adminer {
                ?>
 <table cellspacing="0">
 <tr><th><?php echo lang('System'); ?><td><?php echo html_select("auth[driver]", $drivers, DRIVER, "loginDriver(this);"); ?>
-<tr><th><?php echo lang('Server'); ?><td><input name="auth[server]" value="<?php echo h(SERVER); ?>" title="hostname[:port]">
-<tr><th><?php echo lang('Username'); ?><td><input id="username" name="auth[username]" value="<?php echo h($_GET["username"]); ?>">
+<tr><th><?php echo lang('Server'); ?><td><input name="auth[server]" value="<?php echo h(SERVER); ?>" title="hostname[:port]" autocapitalize="off">
+<tr><th><?php echo lang('Username'); ?><td><input name="auth[username]" id="username" value="<?php echo h($_GET["username"]); ?>" autocapitalize="off">
 <tr><th><?php echo lang('Password'); ?><td><input type="password" name="auth[password]">
-<tr><th><?php echo lang('Database'); ?><td><input name="auth[db]" value="<?php echo h($_GET["db"]); ?>">
+<tr><th><?php echo lang('Database'); ?><td><input name="auth[db]" value="<?php echo h($_GET["db"]); ?>" autocapitalize="off">
 </table>
 <script type="text/javascript">
 var username = document.getElementById('username');
@@ -868,7 +868,7 @@ DROP PROCEDURE adminer_alter;
 <form action="">
 <p id="dbs">
 <?php hidden_fields_get(); ?>
-<?php echo ($databases ? html_select("db", array("" => "(" . lang('database') . ")") + $databases, DB, "this.form.submit();") : '<input name="db" value="' . h(DB) . '">'); ?>
+<?php echo ($databases ? html_select("db", array("" => "(" . lang('database') . ")") + $databases, DB, "this.form.submit();") : '<input name="db" value="' . h(DB) . '" autocapitalize="off">'); ?>
 <input type="submit" value="<?php echo lang('Use'); ?>"<?php echo ($databases ? " class='hidden'" : ""); ?>>
 <?php
                if ($missing != "db" && DB != "" && $connection->select_db(DB)) {
index 8a7da38dddf5992eec6497f08ff0f0ffd3c8657d..7514b2ed3a43e7f2a1486dc3826be25fcd70e9fd 100644 (file)
@@ -245,7 +245,7 @@ function edit_fields($fields, $collations, $type = "TABLE", $allowed = 0, $forei
                ?>
 <tr<?php echo ($display ? "" : " style='display: none;'"); ?>>
 <?php echo ($type == "PROCEDURE" ? "<td>" . html_select("fields[$i][inout]", explode("|", $inout), $field["inout"]) : ""); ?>
-<th><?php if ($display) { ?><input name="fields[<?php echo $i; ?>][field]" value="<?php echo h($field["field"]); ?>" onchange="<?php echo ($field["field"] != "" || count($fields) > 1 ? "" : "editingAddRow(this, $allowed); "); ?>editingNameChange(this);" maxlength="64"><?php } ?><input type="hidden" name="fields[<?php echo $i; ?>][orig]" value="<?php echo h($orig); ?>">
+<th><?php if ($display) { ?><input name="fields[<?php echo $i; ?>][field]" value="<?php echo h($field["field"]); ?>" onchange="<?php echo ($field["field"] != "" || count($fields) > 1 ? "" : "editingAddRow(this, $allowed); "); ?>editingNameChange(this);" maxlength="64" autocapitalize="off"><?php } ?><input type="hidden" name="fields[<?php echo $i; ?>][orig]" value="<?php echo h($orig); ?>">
 <?php edit_type("fields[$i]", $field, $collations, $foreign_keys); ?>
 <?php if ($type == "TABLE") { ?>
 <td><?php echo checkbox("fields[$i][null]", 1, $field["null"]); ?>
index 67787f60b341026843c3a30c29a3eead3f47e82a..097b6077ff6b5bd0debb1aa9247fea7791db8cc8 100644 (file)
@@ -92,7 +92,7 @@ foreach ($row["indexes"] as $index) {
                echo "<input type='number' name='indexes[$j][lengths][$i]' class='size' value='" . h($index["lengths"][$key]) . "'> </span>"; //! hide for non-MySQL drivers, add ASC|DESC
                $i++;
        }
-       echo "<td><input name='indexes[$j][name]' value='" . h($index["name"]) . "'>\n";
+       echo "<td><input name='indexes[$j][name]' value='" . h($index["name"]) . "' autocapitalize='off'>\n";
        $j++;
 }
 ?>
index 6f55e7803e1a315d5bc70ed1a4f2ded0bdb20b1a..58e91174c1b3c3405c2bf4c4b0f497e81702d581 100644 (file)
@@ -17,7 +17,7 @@ while ($row = $result->fetch_assoc()) {
        echo '<tr' . odd() . '><td>' . h($row["User"]) . "<td>" . h($row["Host"]) . '<td><a href="' . h(ME . 'user=' . urlencode($row["User"]) . '&host=' . urlencode($row["Host"])) . '">' . lang('Edit') . "</a>\n";
 }
 if (!$grant || DB != "") {
-       echo "<tr" . odd() . "><td><input name='user'><td><input name='host' value='localhost'><td><input type='submit' value='" . lang('Edit') . "'>\n";
+       echo "<tr" . odd() . "><td><input name='user' autocapitalize='off'><td><input name='host' value='localhost' autocapitalize='off'><td><input type='submit' value='" . lang('Edit') . "'>\n";
 }
 echo "</table>\n";
 echo "</form>\n";
index 22c47f745f9bcc803221c0fdcc35bb6ad00a30c1..ef039a36259e5d3e74b4be3e5fc7c0d5f03d863c 100644 (file)
@@ -40,7 +40,7 @@ if ($_POST) {
 ?>
 
 <form action="" method="post" id="form">
-<p><?php echo lang('Name'); ?>: <input name="name" value="<?php echo h($row["name"]); ?>" maxlength="64">
+<p><?php echo lang('Name'); ?>: <input name="name" value="<?php echo h($row["name"]); ?>" maxlength="64" autocapitalize="off">
 <?php echo ($routine_languages ? lang('Language') . ": " . html_select("language", $routine_languages, $row["language"]) : ""); ?>
 <table cellspacing="0" class="nowrap">
 <?php
index 34bb8f4fe0f10aa706171e5e5bf983cce2776f12..be2531a1cd6035eb474bd8767cd0fa3833d2c389 100644 (file)
@@ -25,7 +25,7 @@ if (!$row) {
 ?>
 
 <form action="" method="post">
-<p><input id="name" name="name" value="<?php echo h($row["name"]); ?>">
+<p><input name="name" id="name" value="<?php echo h($row["name"]); ?>" autocapitalize="off">
 <script type='text/javascript'>document.getElementById('name').focus();</script>
 <input type="submit" value="<?php echo lang('Save'); ?>">
 <?php
index 756fe56807f7a265d63a0ab75f7c8c79e61056f8..875481f9a0405b4bd452d4e6ca7493c29d53a1d9 100644 (file)
@@ -24,7 +24,7 @@ if (!$row) {
 ?>
 
 <form action="" method="post">
-<p><input name="name" value="<?php echo h($row["name"]); ?>">
+<p><input name="name" value="<?php echo h($row["name"]); ?>" autocapitalize="off">
 <input type="submit" value="<?php echo lang('Save'); ?>">
 <?php
 if ($SEQUENCE != "") {
index 66f500c048b06f6bb68ff7778d047b301cb9a085..902dad4eb66d10fd49e0468d9ec9138af67c4e7f 100644 (file)
@@ -32,7 +32,7 @@ if (!$row) {
 <tr><th><?php echo lang('Event'); ?><td><?php echo html_select("Event", $trigger_event, $row["Event"], "this.form['Timing'].onchange();"); ?>
 <tr><th><?php echo lang('Type'); ?><td><?php echo html_select("Type", $trigger_options["Type"], $row["Type"]); ?>
 </table>
-<p><?php echo lang('Name'); ?>: <input name="Trigger" value="<?php echo h($row["Trigger"]); ?>" maxlength="64">
+<p><?php echo lang('Name'); ?>: <input name="Trigger" value="<?php echo h($row["Trigger"]); ?>" maxlength="64" autocapitalize="off">
 <p><?php textarea("Statement", $row["Statement"]); ?>
 <p>
 <input type="submit" value="<?php echo lang('Save'); ?>">
index b3bb424aad5457b45b7c070e359f2c69d80038fe..bae4252b86482a7383322274ecbfe7e5a91b54dd 100644 (file)
@@ -24,7 +24,7 @@ if (!$row) {
 if ($TYPE != "") {
        echo "<input type='submit' name='drop' value='" . lang('Drop') . "'" . confirm() . ">\n";
 } else {
-       echo "<input name='name' value='" . h($row['name']) . "'>\n";
+       echo "<input name='name' value='" . h($row['name']) . "' autocapitalize='off'>\n";
        textarea("as", $row["as"]);
        echo "<p><input type='submit' value='" . lang('Save') . "'>\n";
 }
index bb1f73de019f2d435fa1413a85ae456f04fe48d1..7d7f24e5705aaf714eac776d21b3d86afb1d85f1 100644 (file)
@@ -119,9 +119,9 @@ if ($_POST) {
 ?>
 <form action="" method="post">
 <table cellspacing="0">
-<tr><th><?php echo lang('Server'); ?><td><input name="host" maxlength="60" value="<?php echo h($row["host"]); ?>">
-<tr><th><?php echo lang('Username'); ?><td><input name="user" maxlength="16" value="<?php echo h($row["user"]); ?>">
-<tr><th><?php echo lang('Password'); ?><td><input id="pass" name="pass" value="<?php echo h($row["pass"]); ?>">
+<tr><th><?php echo lang('Server'); ?><td><input name="host" maxlength="60" value="<?php echo h($row["host"]); ?>" autocapitalize="off">
+<tr><th><?php echo lang('Username'); ?><td><input name="user" maxlength="16" value="<?php echo h($row["user"]); ?>" autocapitalize="off">
+<tr><th><?php echo lang('Password'); ?><td><input name="pass" id="pass" value="<?php echo h($row["pass"]); ?>">
 <?php if (!$row["hashed"]) { ?><script type="text/javascript">typePassword(document.getElementById('pass'));</script><?php } ?>
 <?php echo checkbox("hashed", 1, $row["hashed"], lang('Hashed'), "typePassword(this.form['pass'], this.checked);"); ?>
 </table>
@@ -132,7 +132,7 @@ echo "<table cellspacing='0'>\n";
 echo "<thead><tr><th colspan='2'><a href='http://dev.mysql.com/doc/refman/" . substr($connection->server_info, 0, 3) . "/en/grant.html#priv_level' target='_blank' rel='noreferrer'>" . lang('Privileges') . "</a>";
 $i = 0;
 foreach ($grants as $object => $grant) {
-       echo '<th>' . ($object != "*.*" ? "<input name='objects[$i]' value='" . h($object) . "' size='10'>" : "<input type='hidden' name='objects[$i]' value='*.*' size='10'>*.*"); //! separate db, table, columns, PROCEDURE|FUNCTION, routine
+       echo '<th>' . ($object != "*.*" ? "<input name='objects[$i]' value='" . h($object) . "' size='10' autocapitalize='off'>" : "<input type='hidden' name='objects[$i]' value='*.*' size='10'>*.*"); //! separate db, table, columns, PROCEDURE|FUNCTION, routine
        $i++;
 }
 echo "</thead>\n";
index f23e756be22790218aae7cbfde7f2d52426ae1fa..8197bab2aed19143a3f077cc95b4690813721b08 100644 (file)
@@ -24,7 +24,7 @@ if (!$row && $TABLE != "") {
 ?>
 
 <form action="" method="post">
-<p><?php echo lang('Name'); ?>: <input name="name" value="<?php echo h($row["name"]); ?>" maxlength="64">
+<p><?php echo lang('Name'); ?>: <input name="name" value="<?php echo h($row["name"]); ?>" maxlength="64" autocapitalize="off">
 <p><?php textarea("select", $row["select"]); ?>
 <p>
 <?php if ($dropped) { // old view was dropped but new wasn't created ?><input type="hidden" name="dropped" value="1"><?php } ?>
index ea9e8123a26ef49220722c50bdac6a848df6e7b2..e295141dfad5bca73361f99cf552a818667e42cd 100644 (file)
@@ -1,4 +1,5 @@
 Adminer 3.6.4-dev:
+Disable autocapitalize in identifiers
 
 Adminer 3.6.3 (released 2013-01-23):
 Display error code in SQL query
index 05b3178a50958f1add0efd342ec97be4aa1d6357..a376eca1421ed046f2dc31c8418ab2891c594eb3 100644 (file)
@@ -45,7 +45,7 @@ class Adminer {
        function loginForm() {
                ?>
 <table cellspacing="0">
-<tr><th><?php echo lang('Username'); ?><td><input type="hidden" name="auth[driver]" value="server"><input id="username" name="auth[username]" value="<?php echo h($_GET["username"]);  ?>">
+<tr><th><?php echo lang('Username'); ?><td><input type="hidden" name="auth[driver]" value="server"><input name="auth[username]" id="username" value="<?php echo h($_GET["username"]); ?>" autocapitalize="off">
 <tr><th><?php echo lang('Password'); ?><td><input type="password" name="auth[password]">
 </table>
 <script type="text/javascript">