Handle max_input_vars and generalize Suhosin compatibility
This commit is contained in:
parent
f3920f381d
commit
7769cab32c
|
@ -145,11 +145,6 @@ if ($_POST) {
|
||||||
}
|
}
|
||||||
$collations = collations();
|
$collations = collations();
|
||||||
|
|
||||||
$suhosin = floor(extension_loaded("suhosin") ? (min(ini_get("suhosin.request.max_vars"), ini_get("suhosin.post.max_vars")) - 13) / 10 : 0); // 10 - number of fields per row, 13 - number of other fields
|
|
||||||
if ($suhosin && count($row["fields"]) > $suhosin) {
|
|
||||||
echo "<p class='error'>" . h(lang('Maximum number of allowed fields exceeded. Please increase %s and %s.', 'suhosin.post.max_vars', 'suhosin.request.max_vars')) . "\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
$engines = engines();
|
$engines = engines();
|
||||||
// case of engine may differ
|
// case of engine may differ
|
||||||
foreach ($engines as $engine) {
|
foreach ($engines as $engine) {
|
||||||
|
@ -178,7 +173,7 @@ if (!$_POST && !$comments) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
edit_fields($row["fields"], $collations, "TABLE", $suhosin, $foreign_keys, $comments);
|
edit_fields($row["fields"], $collations, "TABLE", $foreign_keys, $comments);
|
||||||
?>
|
?>
|
||||||
</table>
|
</table>
|
||||||
<p>
|
<p>
|
||||||
|
@ -189,7 +184,6 @@ edit_fields($row["fields"], $collations, "TABLE", $suhosin, $foreign_keys, $comm
|
||||||
<p>
|
<p>
|
||||||
<input type="submit" value="<?php echo lang('Save'); ?>">
|
<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 } ?>
|
<?php if ($_GET["create"] != "") { ?><input type="submit" name="drop" value="<?php echo lang('Drop'); ?>"<?php echo confirm(); ?>><?php } ?>
|
||||||
<input type="hidden" name="token" value="<?php echo $token; ?>">
|
|
||||||
<?php
|
<?php
|
||||||
if (support("partitioning")) {
|
if (support("partitioning")) {
|
||||||
$partition_table = ereg('RANGE|LIST', $row["partition_by"]);
|
$partition_table = ereg('RANGE|LIST', $row["partition_by"]);
|
||||||
|
@ -213,4 +207,5 @@ foreach ($row["partition_names"] as $key => $val) {
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
<input type="hidden" name="token" value="<?php echo $token; ?>">
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -114,7 +114,27 @@ $token = $_SESSION["token"]; ///< @var string CSRF protection
|
||||||
if ($auth && $_POST["token"]) {
|
if ($auth && $_POST["token"]) {
|
||||||
$_POST["token"] = $token; // reset token after explicit login
|
$_POST["token"] = $token; // reset token after explicit login
|
||||||
}
|
}
|
||||||
$error = ($_POST ///< @var string
|
|
||||||
? ($_POST["token"] == $token ? "" : lang('Invalid CSRF token. Send the form again.'))
|
$error = ''; ///< @var string
|
||||||
: ($_SERVER["REQUEST_METHOD"] != "POST" ? "" : lang('Too big POST data. Reduce the data or increase the %s configuration directive.', '"post_max_size"')) // posted form with no data means that post_max_size exceeded because Adminer always sends token at least
|
if ($_POST) {
|
||||||
|
if ($_POST["token"] != $token) {
|
||||||
|
$ini = "max_input_vars";
|
||||||
|
$max_vars = ini_get($ini);
|
||||||
|
if (extension_loaded("suhosin")) {
|
||||||
|
foreach (array("suhosin.request.max_vars", "suhosin.post.max_vars") as $key) {
|
||||||
|
$val = ini_get($key);
|
||||||
|
if ($val && (!$max_vars || $val < $max_vars)) {
|
||||||
|
$ini = $key;
|
||||||
|
$max_vars = $val;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$error = (!$_POST["token"] && $max_vars
|
||||||
|
? lang('Maximum number of allowed fields exceeded. Please increase %s.', "'$ini'")
|
||||||
|
: lang('Invalid CSRF token. Send the form again.')
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
} elseif ($_SERVER["REQUEST_METHOD"] == "POST") {
|
||||||
|
// posted form with no data means that post_max_size exceeded because Adminer always sends token at least
|
||||||
|
$error = lang('Too big POST data. Reduce the data or increase the %s configuration directive.', "'post_max_size'");
|
||||||
|
}
|
||||||
|
|
|
@ -214,12 +214,11 @@ function type_class($type) {
|
||||||
* @param array
|
* @param array
|
||||||
* @param array
|
* @param array
|
||||||
* @param string TABLE or PROCEDURE
|
* @param string TABLE or PROCEDURE
|
||||||
* @param int number of fields allowed by Suhosin
|
|
||||||
* @param array returned by referencable_primary()
|
* @param array returned by referencable_primary()
|
||||||
* @param bool display comments column
|
* @param bool display comments column
|
||||||
* @return null
|
* @return null
|
||||||
*/
|
*/
|
||||||
function edit_fields($fields, $collations, $type = "TABLE", $allowed = 0, $foreign_keys = array(), $comments = false) {
|
function edit_fields($fields, $collations, $type = "TABLE", $foreign_keys = array(), $comments = false) {
|
||||||
global $connection, $inout;
|
global $connection, $inout;
|
||||||
?>
|
?>
|
||||||
<thead><tr class="wrap">
|
<thead><tr class="wrap">
|
||||||
|
@ -245,7 +244,7 @@ function edit_fields($fields, $collations, $type = "TABLE", $allowed = 0, $forei
|
||||||
?>
|
?>
|
||||||
<tr<?php echo ($display ? "" : " style='display: none;'"); ?>>
|
<tr<?php echo ($display ? "" : " style='display: none;'"); ?>>
|
||||||
<?php echo ($type == "PROCEDURE" ? "<td>" . html_select("fields[$i][inout]", explode("|", $inout), $field["inout"]) : ""); ?>
|
<?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" autocapitalize="off"><?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); "); ?>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 edit_type("fields[$i]", $field, $collations, $foreign_keys); ?>
|
||||||
<?php if ($type == "TABLE") { ?>
|
<?php if ($type == "TABLE") { ?>
|
||||||
<td><?php echo checkbox("fields[$i][null]", 1, $field["null"]); ?>
|
<td><?php echo checkbox("fields[$i][null]", 1, $field["null"]); ?>
|
||||||
|
@ -256,7 +255,7 @@ function edit_fields($fields, $collations, $type = "TABLE", $allowed = 0, $forei
|
||||||
<?php
|
<?php
|
||||||
echo "<td>";
|
echo "<td>";
|
||||||
echo (support("move_col") ?
|
echo (support("move_col") ?
|
||||||
"<input type='image' class='icon' name='add[$i]' src='../adminer/static/plus.gif' alt='+' title='" . lang('Add next') . "' onclick='return !editingAddRow(this, $allowed, 1);'> "
|
"<input type='image' class='icon' name='add[$i]' src='../adminer/static/plus.gif' alt='+' title='" . lang('Add next') . "' onclick='return !editingAddRow(this, 1);'> "
|
||||||
. "<input type='image' class='icon' name='up[$i]' src='../adminer/static/up.gif' alt='^' title='" . lang('Move up') . "'> "
|
. "<input type='image' class='icon' name='up[$i]' src='../adminer/static/up.gif' alt='^' title='" . lang('Move up') . "'> "
|
||||||
. "<input type='image' class='icon' name='down[$i]' src='../adminer/static/down.gif' alt='v' title='" . lang('Move down') . "'> "
|
. "<input type='image' class='icon' name='down[$i]' src='../adminer/static/down.gif' alt='v' title='" . lang('Move down') . "'> "
|
||||||
: "");
|
: "");
|
||||||
|
|
|
@ -188,7 +188,7 @@ $translations = array(
|
||||||
'%d item(s) have been affected.' => 'عدد العناصر المعدلة هو %d.',
|
'%d item(s) have been affected.' => 'عدد العناصر المعدلة هو %d.',
|
||||||
'whole result' => 'نتيجة كاملة',
|
'whole result' => 'نتيجة كاملة',
|
||||||
'Clone' => 'نسخ',
|
'Clone' => 'نسخ',
|
||||||
'Maximum number of allowed fields exceeded. Please increase %s and %s.' => 'لقد تجاوزت العدد الأقصى للحقول. يرجى الرفع من %s و %s.',
|
'Maximum number of allowed fields exceeded. Please increase %s.' => 'لقد تجاوزت العدد الأقصى للحقول. يرجى الرفع من %s.',
|
||||||
'Partition by' => 'مقسم بواسطة',
|
'Partition by' => 'مقسم بواسطة',
|
||||||
'Partitions' => 'التقسيمات',
|
'Partitions' => 'التقسيمات',
|
||||||
'Partition name' => 'إسم التقسيم',
|
'Partition name' => 'إسم التقسيم',
|
||||||
|
|
|
@ -190,7 +190,7 @@ $translations = array(
|
||||||
'%d item(s) have been affected.' => '%d টি বিষয়বস্তু প্রভাবিত হয়েছে',
|
'%d item(s) have been affected.' => '%d টি বিষয়বস্তু প্রভাবিত হয়েছে',
|
||||||
'whole result' => 'সম্পূর্ণ ফলাফল',
|
'whole result' => 'সম্পূর্ণ ফলাফল',
|
||||||
'Clone' => 'ক্লোন',
|
'Clone' => 'ক্লোন',
|
||||||
'Maximum number of allowed fields exceeded. Please increase %s and %s.' => 'অনুমোদিত ফিল্ড এর সর্বাধিক সংখ্যা অতিক্রম করে গেছে। অনুগ্রহপূর্বক %s এবং %s বৃদ্ধি করুন।',
|
'Maximum number of allowed fields exceeded. Please increase %s.' => 'অনুমোদিত ফিল্ড এর সর্বাধিক সংখ্যা অতিক্রম করে গেছে। অনুগ্রহপূর্বক %s বৃদ্ধি করুন।',
|
||||||
'Partition by' => 'পার্টিশন যার মাধ্যমে',
|
'Partition by' => 'পার্টিশন যার মাধ্যমে',
|
||||||
'Partitions' => 'পার্টিশন',
|
'Partitions' => 'পার্টিশন',
|
||||||
'Partition name' => 'পার্টিশনের নাম',
|
'Partition name' => 'পার্টিশনের নাম',
|
||||||
|
|
|
@ -199,7 +199,7 @@ $translations = array(
|
||||||
'Show structure' => 'Mostra l\'estructura',
|
'Show structure' => 'Mostra l\'estructura',
|
||||||
'Select data' => 'Selecciona dades',
|
'Select data' => 'Selecciona dades',
|
||||||
'Stop on error' => 'Atura en trobar un error',
|
'Stop on error' => 'Atura en trobar un error',
|
||||||
'Maximum number of allowed fields exceeded. Please increase %s and %s.' => 'S\'ha assolit el nombre màxim de camps. Incrementa %s i %s.',
|
'Maximum number of allowed fields exceeded. Please increase %s.' => 'S\'ha assolit el nombre màxim de camps. Incrementa %s.',
|
||||||
'anywhere' => 'a qualsevol lloc',
|
'anywhere' => 'a qualsevol lloc',
|
||||||
'%.3f s' => '%.3f s',
|
'%.3f s' => '%.3f s',
|
||||||
'$1-$3-$5' => '$5/$3/$1',
|
'$1-$3-$5' => '$5/$3/$1',
|
||||||
|
|
|
@ -166,7 +166,7 @@ $translations = array(
|
||||||
'Move up' => 'Přesunout nahoru',
|
'Move up' => 'Přesunout nahoru',
|
||||||
'Move down' => 'Přesunout dolů',
|
'Move down' => 'Přesunout dolů',
|
||||||
'Remove' => 'Odebrat',
|
'Remove' => 'Odebrat',
|
||||||
'Maximum number of allowed fields exceeded. Please increase %s and %s.' => 'Byl překročen maximální povolený počet polí. Zvyšte prosím %s a %s.',
|
'Maximum number of allowed fields exceeded. Please increase %s.' => 'Byl překročen maximální povolený počet polí. Zvyšte prosím %s.',
|
||||||
|
|
||||||
'Partition by' => 'Rozdělit podle',
|
'Partition by' => 'Rozdělit podle',
|
||||||
'Partitions' => 'Oddíly',
|
'Partitions' => 'Oddíly',
|
||||||
|
|
|
@ -190,7 +190,7 @@ $translations = array(
|
||||||
'%d item(s) have been affected.' => '%d Artikel betroffen.',
|
'%d item(s) have been affected.' => '%d Artikel betroffen.',
|
||||||
'whole result' => 'Gesamtergebnis',
|
'whole result' => 'Gesamtergebnis',
|
||||||
'Clone' => 'Klonen',
|
'Clone' => 'Klonen',
|
||||||
'Maximum number of allowed fields exceeded. Please increase %s and %s.' => 'Die maximal erlaubte Anzahl der Felder ist überschritten. Bitte %s und %s erhöhen.',
|
'Maximum number of allowed fields exceeded. Please increase %s.' => 'Die maximal erlaubte Anzahl der Felder ist überschritten. Bitte %s erhöhen.',
|
||||||
'Partition by' => 'Partitionieren um',
|
'Partition by' => 'Partitionieren um',
|
||||||
'Partitions' => 'Partitionen',
|
'Partitions' => 'Partitionen',
|
||||||
'Partition name' => 'Name der Partition',
|
'Partition name' => 'Name der Partition',
|
||||||
|
|
|
@ -190,7 +190,7 @@ $translations = array(
|
||||||
'%d item(s) have been affected.' => array('%d ítem afectado.', '%d itemes afectados.'),
|
'%d item(s) have been affected.' => array('%d ítem afectado.', '%d itemes afectados.'),
|
||||||
'whole result' => 'resultado completo',
|
'whole result' => 'resultado completo',
|
||||||
'Clone' => 'Clonar',
|
'Clone' => 'Clonar',
|
||||||
'Maximum number of allowed fields exceeded. Please increase %s and %s.' => 'Cantida máxima de campos permitidos excedidos. Por favor aumente %s y %s.',
|
'Maximum number of allowed fields exceeded. Please increase %s.' => 'Cantida máxima de campos permitidos excedidos. Por favor aumente %s.',
|
||||||
'Partition by' => 'Particionar por',
|
'Partition by' => 'Particionar por',
|
||||||
'Partitions' => 'Particiones',
|
'Partitions' => 'Particiones',
|
||||||
'Partition name' => 'Nombre de Partición',
|
'Partition name' => 'Nombre de Partición',
|
||||||
|
|
|
@ -190,7 +190,7 @@ $translations = array(
|
||||||
'%d item(s) have been affected.' => 'Mõjutatud kirjeid: %d.',
|
'%d item(s) have been affected.' => 'Mõjutatud kirjeid: %d.',
|
||||||
'whole result' => 'Täielikud tulemused',
|
'whole result' => 'Täielikud tulemused',
|
||||||
'Clone' => 'Kloon',
|
'Clone' => 'Kloon',
|
||||||
'Maximum number of allowed fields exceeded. Please increase %s and %s.' => 'Maksimaalne väljade arv ületatud. Palun suurendage %s ja %s.',
|
'Maximum number of allowed fields exceeded. Please increase %s.' => 'Maksimaalne väljade arv ületatud. Palun suurendage %s.',
|
||||||
'Partition by' => 'Partitsiooni',
|
'Partition by' => 'Partitsiooni',
|
||||||
'Partitions' => 'Partitsioonid',
|
'Partitions' => 'Partitsioonid',
|
||||||
'Partition name' => 'Partitsiooni nimi',
|
'Partition name' => 'Partitsiooni nimi',
|
||||||
|
|
|
@ -165,7 +165,7 @@ $translations = array(
|
||||||
'Move up' => 'انتقال به بالا',
|
'Move up' => 'انتقال به بالا',
|
||||||
'Move down' => 'انتقال به پایین',
|
'Move down' => 'انتقال به پایین',
|
||||||
'Remove' => 'حذف',
|
'Remove' => 'حذف',
|
||||||
'Maximum number of allowed fields exceeded. Please increase %s and %s.' => 'حداکثر مجاز فیلدهای مجاز اشباع شد. لطفا %s و %s را کاهش دهید',
|
'Maximum number of allowed fields exceeded. Please increase %s.' => 'حداکثر مجاز فیلدهای مجاز اشباع شد. لطفا %s را کاهش دهید',
|
||||||
|
|
||||||
'Partition by' => 'بخشبندی توسط',
|
'Partition by' => 'بخشبندی توسط',
|
||||||
'Partitions' => 'بخشبندیها',
|
'Partitions' => 'بخشبندیها',
|
||||||
|
|
|
@ -188,7 +188,7 @@ $translations = array(
|
||||||
'%d item(s) have been affected.' => array('%d élément a été modifié.', '%d éléments ont été modifiés.'),
|
'%d item(s) have been affected.' => array('%d élément a été modifié.', '%d éléments ont été modifiés.'),
|
||||||
'whole result' => 'résultat entier',
|
'whole result' => 'résultat entier',
|
||||||
'Clone' => 'Cloner',
|
'Clone' => 'Cloner',
|
||||||
'Maximum number of allowed fields exceeded. Please increase %s and %s.' => 'Le nombre maximum de champs est dépassé. Veuillez augmenter %s et %s.',
|
'Maximum number of allowed fields exceeded. Please increase %s.' => 'Le nombre maximum de champs est dépassé. Veuillez augmenter %s.',
|
||||||
'Partition by' => 'Partitionner par',
|
'Partition by' => 'Partitionner par',
|
||||||
'Partitions' => 'Partitions',
|
'Partitions' => 'Partitions',
|
||||||
'Partition name' => 'Nom de la partition',
|
'Partition name' => 'Nom de la partition',
|
||||||
|
|
|
@ -199,7 +199,7 @@ $translations = array(
|
||||||
'Show structure' => 'Struktúra',
|
'Show structure' => 'Struktúra',
|
||||||
'Select data' => 'Tartalom',
|
'Select data' => 'Tartalom',
|
||||||
'Stop on error' => 'Hiba esetén megáll',
|
'Stop on error' => 'Hiba esetén megáll',
|
||||||
'Maximum number of allowed fields exceeded. Please increase %s and %s.' => 'A maximális mezőszámot elérted. Növeld meg ezeket: %s, %s.',
|
'Maximum number of allowed fields exceeded. Please increase %s.' => 'A maximális mezőszámot elérted. Növeld meg ezeket: %s.',
|
||||||
'anywhere' => 'bárhol',
|
'anywhere' => 'bárhol',
|
||||||
'%.3f s' => '%.3f másodperc',
|
'%.3f s' => '%.3f másodperc',
|
||||||
'$1-$3-$5' => '$6.$4.$1',
|
'$1-$3-$5' => '$6.$4.$1',
|
||||||
|
|
|
@ -166,7 +166,7 @@ $translations = array(
|
||||||
'Move up' => 'Naik',
|
'Move up' => 'Naik',
|
||||||
'Move down' => 'Turun',
|
'Move down' => 'Turun',
|
||||||
'Remove' => 'Hapus',
|
'Remove' => 'Hapus',
|
||||||
'Maximum number of allowed fields exceeded. Please increase %s and %s.' => 'Jumlah ruas maksimum yang diizinkan dilewati. Harap naikkan %s dan %s.',
|
'Maximum number of allowed fields exceeded. Please increase %s.' => 'Jumlah ruas maksimum yang diizinkan dilewati. Harap naikkan %s.',
|
||||||
|
|
||||||
'Partition by' => 'Partisi menurut',
|
'Partition by' => 'Partisi menurut',
|
||||||
'Partitions' => 'Partisi',
|
'Partitions' => 'Partisi',
|
||||||
|
|
|
@ -190,7 +190,7 @@ $translations = array(
|
||||||
'%d item(s) have been affected.' => array('Il risultato consiste in %d elemento.', 'Il risultato consiste in %d elementi.'),
|
'%d item(s) have been affected.' => array('Il risultato consiste in %d elemento.', 'Il risultato consiste in %d elementi.'),
|
||||||
'whole result' => 'intero risultato',
|
'whole result' => 'intero risultato',
|
||||||
'Clone' => 'Clona',
|
'Clone' => 'Clona',
|
||||||
'Maximum number of allowed fields exceeded. Please increase %s and %s.' => 'Troppi campi. Per favore aumentare %s e %s.',
|
'Maximum number of allowed fields exceeded. Please increase %s.' => 'Troppi campi. Per favore aumentare %s.',
|
||||||
'Partition by' => 'Partiziona per',
|
'Partition by' => 'Partiziona per',
|
||||||
'Partitions' => 'Partizioni',
|
'Partitions' => 'Partizioni',
|
||||||
'Partition name' => 'Nome partizione',
|
'Partition name' => 'Nome partizione',
|
||||||
|
|
|
@ -189,7 +189,7 @@ $translations = array(
|
||||||
'whole result' => '全結果',
|
'whole result' => '全結果',
|
||||||
'Tables have been dropped.' => 'テーブルを削除しました',
|
'Tables have been dropped.' => 'テーブルを削除しました',
|
||||||
'Clone' => 'クローン',
|
'Clone' => 'クローン',
|
||||||
'Maximum number of allowed fields exceeded. Please increase %s and %s.' => '定義可能な最大フィールド数を越えました。%s と %s を増やしてください。',
|
'Maximum number of allowed fields exceeded. Please increase %s.' => '定義可能な最大フィールド数を越えました。%s を増やしてください。',
|
||||||
'Partition by' => 'パーティション',
|
'Partition by' => 'パーティション',
|
||||||
'Partitions' => 'パーティション',
|
'Partitions' => 'パーティション',
|
||||||
'Partition name' => 'パーティション名',
|
'Partition name' => 'パーティション名',
|
||||||
|
|
|
@ -165,7 +165,7 @@ $translations = array(
|
||||||
'Move up' => 'Perkelti į viršų',
|
'Move up' => 'Perkelti į viršų',
|
||||||
'Move down' => 'Perkelti žemyn',
|
'Move down' => 'Perkelti žemyn',
|
||||||
'Remove' => 'Pašalinti',
|
'Remove' => 'Pašalinti',
|
||||||
'Maximum number of allowed fields exceeded. Please increase %s and %s.' => 'Viršytas maksimalus leidžiamų stulpelių kiekis. Padidinkite %s ir %s.',
|
'Maximum number of allowed fields exceeded. Please increase %s.' => 'Viršytas maksimalus leidžiamų stulpelių kiekis. Padidinkite %s.',
|
||||||
|
|
||||||
'Partition by' => 'Skirstyti pagal',
|
'Partition by' => 'Skirstyti pagal',
|
||||||
'Partitions' => 'Skirsniai',
|
'Partitions' => 'Skirsniai',
|
||||||
|
|
|
@ -191,7 +191,7 @@ $translations = array(
|
||||||
'%d item(s) have been affected.' => array('%d item aangepast.', '%d items aangepast.'),
|
'%d item(s) have been affected.' => array('%d item aangepast.', '%d items aangepast.'),
|
||||||
'whole result' => 'volledig resultaat',
|
'whole result' => 'volledig resultaat',
|
||||||
'Clone' => 'Dupliceer',
|
'Clone' => 'Dupliceer',
|
||||||
'Maximum number of allowed fields exceeded. Please increase %s and %s.' => 'Maximum aantal velden bereikt. Verhoog %s en %s.',
|
'Maximum number of allowed fields exceeded. Please increase %s.' => 'Maximum aantal velden bereikt. Verhoog %s.',
|
||||||
'Partition by' => 'Partitioneren op',
|
'Partition by' => 'Partitioneren op',
|
||||||
'Partitions' => 'Partities',
|
'Partitions' => 'Partities',
|
||||||
'Partition name' => 'Partitie naam',
|
'Partition name' => 'Partitie naam',
|
||||||
|
|
|
@ -166,7 +166,7 @@ $translations = array(
|
||||||
'Move up' => 'Przesuń w górę',
|
'Move up' => 'Przesuń w górę',
|
||||||
'Move down' => 'Przesuń w dół',
|
'Move down' => 'Przesuń w dół',
|
||||||
'Remove' => 'Usuń',
|
'Remove' => 'Usuń',
|
||||||
'Maximum number of allowed fields exceeded. Please increase %s and %s.' => 'Przekroczono maksymalną liczbę pól. Zwiększ %s i %s.',
|
'Maximum number of allowed fields exceeded. Please increase %s.' => 'Przekroczono maksymalną liczbę pól. Zwiększ %s.',
|
||||||
|
|
||||||
'Partition by' => 'Partycjonowanie',
|
'Partition by' => 'Partycjonowanie',
|
||||||
'Partitions' => 'Partycje',
|
'Partitions' => 'Partycje',
|
||||||
|
|
|
@ -190,7 +190,7 @@ $translations = array(
|
||||||
'%d item(s) have been affected.' => array('%d item afetado.', '%d itens afetados.'),
|
'%d item(s) have been affected.' => array('%d item afetado.', '%d itens afetados.'),
|
||||||
'whole result' => 'resultado completo',
|
'whole result' => 'resultado completo',
|
||||||
'Clone' => 'Clonar',
|
'Clone' => 'Clonar',
|
||||||
'Maximum number of allowed fields exceeded. Please increase %s and %s.' => 'Quantidade máxima de campos permitidos excedidos. Por favor aumente %s e %s.',
|
'Maximum number of allowed fields exceeded. Please increase %s.' => 'Quantidade máxima de campos permitidos excedidos. Por favor aumente %s.',
|
||||||
'Partition by' => 'Particionar por',
|
'Partition by' => 'Particionar por',
|
||||||
'Partitions' => 'Partições',
|
'Partitions' => 'Partições',
|
||||||
'Partition name' => 'Nome da Partição',
|
'Partition name' => 'Nome da Partição',
|
||||||
|
|
|
@ -197,7 +197,7 @@ $translations = array(
|
||||||
'%d row(s) have been imported.' => array('%d rînd importat.', '%d rînduri importate.'),
|
'%d row(s) have been imported.' => array('%d rînd importat.', '%d rînduri importate.'),
|
||||||
'Import' => 'Importă',
|
'Import' => 'Importă',
|
||||||
'Stop on error' => 'Opreștete la eroare',
|
'Stop on error' => 'Opreștete la eroare',
|
||||||
'Maximum number of allowed fields exceeded. Please increase %s and %s.' => 'Numărul maxim de înscrieri disponibile a fost atins. Majorați %s și %s.',
|
'Maximum number of allowed fields exceeded. Please increase %s.' => 'Numărul maxim de înscrieri disponibile a fost atins. Majorați %s.',
|
||||||
'anywhere' => 'oriunde',
|
'anywhere' => 'oriunde',
|
||||||
'%.3f s' => '%.3f s',
|
'%.3f s' => '%.3f s',
|
||||||
'$1-$3-$5' => '$5.$3.$1',
|
'$1-$3-$5' => '$5.$3.$1',
|
||||||
|
|
|
@ -197,7 +197,7 @@ $translations = array(
|
||||||
'%d row(s) have been imported.' => array('Импортирована %d строка.', 'Импортировано %d строки.', 'Импортировано %d строк.'),
|
'%d row(s) have been imported.' => array('Импортирована %d строка.', 'Импортировано %d строки.', 'Импортировано %d строк.'),
|
||||||
'Import' => 'Импорт',
|
'Import' => 'Импорт',
|
||||||
'Stop on error' => 'Остановить при ошибке',
|
'Stop on error' => 'Остановить при ошибке',
|
||||||
'Maximum number of allowed fields exceeded. Please increase %s and %s.' => 'Достигнуто максимальное значение количества доступных полей. Увеличьте %s и %s.',
|
'Maximum number of allowed fields exceeded. Please increase %s.' => 'Достигнуто максимальное значение количества доступных полей. Увеличьте %s.',
|
||||||
'anywhere' => 'в любом месте',
|
'anywhere' => 'в любом месте',
|
||||||
'%.3f s' => '%.3f s',
|
'%.3f s' => '%.3f s',
|
||||||
'$1-$3-$5' => '$5.$3.$1',
|
'$1-$3-$5' => '$5.$3.$1',
|
||||||
|
|
|
@ -198,7 +198,7 @@ $translations = array(
|
||||||
'%d row(s) have been imported.' => array('Bol importovaný %d záznam.', 'Boli importované %d záznamy.', 'Bolo importovaných %d záznamov.'),
|
'%d row(s) have been imported.' => array('Bol importovaný %d záznam.', 'Boli importované %d záznamy.', 'Bolo importovaných %d záznamov.'),
|
||||||
'Import' => 'Import',
|
'Import' => 'Import',
|
||||||
'Stop on error' => 'Zastaviť pri chybe',
|
'Stop on error' => 'Zastaviť pri chybe',
|
||||||
'Maximum number of allowed fields exceeded. Please increase %s and %s.' => 'Bol prekročený maximálny počet povolených polí. Zvýšte prosím %s a %s.',
|
'Maximum number of allowed fields exceeded. Please increase %s.' => 'Bol prekročený maximálny počet povolených polí. Zvýšte prosím %s.',
|
||||||
'anywhere' => 'kdekoľvek',
|
'anywhere' => 'kdekoľvek',
|
||||||
'%.3f s' => '%.3f s',
|
'%.3f s' => '%.3f s',
|
||||||
'$1-$3-$5' => '$6.$4.$1',
|
'$1-$3-$5' => '$6.$4.$1',
|
||||||
|
|
|
@ -161,7 +161,7 @@ $translations = array(
|
||||||
'Move up' => 'Premakni gor',
|
'Move up' => 'Premakni gor',
|
||||||
'Move down' => 'Premakni dol',
|
'Move down' => 'Premakni dol',
|
||||||
'Remove' => 'Odstrani',
|
'Remove' => 'Odstrani',
|
||||||
'Maximum number of allowed fields exceeded. Please increase %s and %s.' => 'Največje število dovoljenih polje je preseženo. Prosimo, povečajte %s in %s.',
|
'Maximum number of allowed fields exceeded. Please increase %s.' => 'Največje število dovoljenih polje je preseženo. Prosimo, povečajte %s.',
|
||||||
|
|
||||||
'Partition by' => 'Porazdeli po',
|
'Partition by' => 'Porazdeli po',
|
||||||
'Partitions' => 'Porazdelitve',
|
'Partitions' => 'Porazdelitve',
|
||||||
|
|
|
@ -166,7 +166,7 @@ $translations = array(
|
||||||
'Move up' => 'Помери на горе',
|
'Move up' => 'Помери на горе',
|
||||||
'Move down' => 'Помери на доле',
|
'Move down' => 'Помери на доле',
|
||||||
'Remove' => 'Уклони',
|
'Remove' => 'Уклони',
|
||||||
'Maximum number of allowed fields exceeded. Please increase %s and %s.' => 'Премашен је максимални број дозвољених поља. Молим увећајте %s и %s.',
|
'Maximum number of allowed fields exceeded. Please increase %s.' => 'Премашен је максимални број дозвољених поља. Молим увећајте %s.',
|
||||||
|
|
||||||
'Partition by' => 'Подели по',
|
'Partition by' => 'Подели по',
|
||||||
'Partitions' => 'Поделе',
|
'Partitions' => 'Поделе',
|
||||||
|
|
|
@ -187,7 +187,7 @@ $translations = array(
|
||||||
'%d item(s) have been affected.' => array('%d உருப்படி மாற்றமடைந்தது.', '%d உருப்படிகள் மாற்றமடைந்தன.'),
|
'%d item(s) have been affected.' => array('%d உருப்படி மாற்றமடைந்தது.', '%d உருப்படிகள் மாற்றமடைந்தன.'),
|
||||||
'whole result' => 'முழுமையான முடிவு',
|
'whole result' => 'முழுமையான முடிவு',
|
||||||
'Clone' => 'நகலி (Clone)',
|
'Clone' => 'நகலி (Clone)',
|
||||||
'Maximum number of allowed fields exceeded. Please increase %s and %s.' => 'அனுமதிக்கப்பட்ட அதிகபட்ச கோப்புகளின் எண்ணிக்கை மீறப்பட்டது. தயவு செய்து %s மற்றும் %s யை அதிகரிக்கவும்.',
|
'Maximum number of allowed fields exceeded. Please increase %s.' => 'அனுமதிக்கப்பட்ட அதிகபட்ச கோப்புகளின் எண்ணிக்கை மீறப்பட்டது. தயவு செய்து %s மற்றும் %s யை அதிகரிக்கவும்.',
|
||||||
'Partition by' => 'பிரித்தது',
|
'Partition by' => 'பிரித்தது',
|
||||||
'Partitions' => 'பிரிவுகள்',
|
'Partitions' => 'பிரிவுகள்',
|
||||||
'Partition name' => 'பிரிவின் பெயர்',
|
'Partition name' => 'பிரிவின் பெயர்',
|
||||||
|
|
|
@ -166,7 +166,7 @@ $translations = array(
|
||||||
'Move up' => 'Yukarı taşı',
|
'Move up' => 'Yukarı taşı',
|
||||||
'Move down' => 'Aşağı taşı',
|
'Move down' => 'Aşağı taşı',
|
||||||
'Remove' => 'Sil',
|
'Remove' => 'Sil',
|
||||||
'Maximum number of allowed fields exceeded. Please increase %s and %s.' => 'İzin verilen en fazla alan sayısı aşıldı. Lütfen %s ve %s değerlerini artırın.',
|
'Maximum number of allowed fields exceeded. Please increase %s.' => 'İzin verilen en fazla alan sayısı aşıldı. Lütfen %s değerlerini artırın.',
|
||||||
|
|
||||||
'Partition by' => 'Bununla bölümle',
|
'Partition by' => 'Bununla bölümle',
|
||||||
'Partitions' => 'Bölümler',
|
'Partitions' => 'Bölümler',
|
||||||
|
|
|
@ -166,7 +166,7 @@ $translations = array(
|
||||||
'Move up' => 'Пересунути вгору',
|
'Move up' => 'Пересунути вгору',
|
||||||
'Move down' => 'Пересунути вниз',
|
'Move down' => 'Пересунути вниз',
|
||||||
'Remove' => 'Видалити',
|
'Remove' => 'Видалити',
|
||||||
'Maximum number of allowed fields exceeded. Please increase %s and %s.' => 'Досягнута максимальна кількість доступних полів. Будь ласка, збільшіть %s і %s.',
|
'Maximum number of allowed fields exceeded. Please increase %s.' => 'Досягнута максимальна кількість доступних полів. Будь ласка, збільшіть %s.',
|
||||||
|
|
||||||
'Partition by' => 'Розділити по',
|
'Partition by' => 'Розділити по',
|
||||||
'Partitions' => 'Розділи',
|
'Partitions' => 'Розділи',
|
||||||
|
|
|
@ -166,7 +166,7 @@ $translations = array(
|
||||||
'Move up' => 'xx',
|
'Move up' => 'xx',
|
||||||
'Move down' => 'xx',
|
'Move down' => 'xx',
|
||||||
'Remove' => 'xx',
|
'Remove' => 'xx',
|
||||||
'Maximum number of allowed fields exceeded. Please increase %s and %s.' => 'xx',
|
'Maximum number of allowed fields exceeded. Please increase %s.' => 'xx',
|
||||||
|
|
||||||
'Partition by' => 'xx',
|
'Partition by' => 'xx',
|
||||||
'Partitions' => 'xx',
|
'Partitions' => 'xx',
|
||||||
|
|
|
@ -188,7 +188,7 @@ $translations = array(
|
||||||
'whole result' => '所有結果',
|
'whole result' => '所有結果',
|
||||||
'Tables have been dropped.' => '已丟棄表。',
|
'Tables have been dropped.' => '已丟棄表。',
|
||||||
'Clone' => '複製',
|
'Clone' => '複製',
|
||||||
'Maximum number of allowed fields exceeded. Please increase %s and %s.' => '超過最多允許的字段數量。請增加%s和%s 。',
|
'Maximum number of allowed fields exceeded. Please increase %s.' => '超過最多允許的字段數量。請增加%s。',
|
||||||
'Partition by' => '分區類型',
|
'Partition by' => '分區類型',
|
||||||
'Partitions' => '分區',
|
'Partitions' => '分區',
|
||||||
'Partition name' => '分區名',
|
'Partition name' => '分區名',
|
||||||
|
|
|
@ -190,7 +190,7 @@ $translations = array(
|
||||||
'whole result' => '所有结果',
|
'whole result' => '所有结果',
|
||||||
'Tables have been dropped.' => '已丢弃表。',
|
'Tables have been dropped.' => '已丢弃表。',
|
||||||
'Clone' => '克隆',
|
'Clone' => '克隆',
|
||||||
'Maximum number of allowed fields exceeded. Please increase %s and %s.' => '超过最多允许的字段数量。请增加 %s 和 %s 。',
|
'Maximum number of allowed fields exceeded. Please increase %s.' => '超过最多允许的字段数量。请增加 %s。',
|
||||||
'Partition by' => '分区类型',
|
'Partition by' => '分区类型',
|
||||||
'Partitions' => '分区',
|
'Partitions' => '分区',
|
||||||
'Partition name' => '分区名',
|
'Partition name' => '分区名',
|
||||||
|
|
|
@ -185,7 +185,6 @@ echo "<p>" . (ini_bool("file_uploads")
|
||||||
?>
|
?>
|
||||||
<p>
|
<p>
|
||||||
<input type="submit" value="<?php echo lang('Execute'); ?>" title="Ctrl+Enter">
|
<input type="submit" value="<?php echo lang('Execute'); ?>" title="Ctrl+Enter">
|
||||||
<input type="hidden" name="token" value="<?php echo $token; ?>">
|
|
||||||
<?php
|
<?php
|
||||||
echo checkbox("error_stops", 1, $_POST["error_stops"], lang('Stop on error')) . "\n";
|
echo checkbox("error_stops", 1, $_POST["error_stops"], lang('Stop on error')) . "\n";
|
||||||
echo checkbox("only_errors", 1, $_POST["only_errors"], lang('Show only errors')) . "\n";
|
echo checkbox("only_errors", 1, $_POST["only_errors"], lang('Show only errors')) . "\n";
|
||||||
|
@ -212,5 +211,5 @@ if ($history) {
|
||||||
echo "</div></fieldset>\n";
|
echo "</div></fieldset>\n";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
<input type="hidden" name="token" value="<?php echo $token; ?>">
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -254,13 +254,9 @@ function editingNameChange(field) {
|
||||||
/** Add table row for next field
|
/** Add table row for next field
|
||||||
* @param HTMLInputElement
|
* @param HTMLInputElement
|
||||||
* @param boolean
|
* @param boolean
|
||||||
* @param boolean
|
|
||||||
* @return boolean
|
* @return boolean
|
||||||
*/
|
*/
|
||||||
function editingAddRow(button, allowed, focus) {
|
function editingAddRow(button, focus) {
|
||||||
if (allowed && rowCount >= allowed) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
var match = /(\d+)(\.\d+)?/.exec(button.name);
|
var match = /(\d+)(\.\d+)?/.exec(button.name);
|
||||||
var x = match[0] + (match[2] ? added.substr(match[2].length) : added) + '1';
|
var x = match[0] + (match[2] ? added.substr(match[2].length) : added) + '1';
|
||||||
var row = parentTag(button, 'tr');
|
var row = parentTag(button, 'tr');
|
||||||
|
|
|
@ -4,6 +4,7 @@ Compatibility with MySQL 5.6
|
||||||
Recover original view, trigger, routine if creating fails
|
Recover original view, trigger, routine if creating fails
|
||||||
Allow loading more data with inline edit (bug #3605531)
|
Allow loading more data with inline edit (bug #3605531)
|
||||||
Stay on the same page after deleting rows (bug #3605845)
|
Stay on the same page after deleting rows (bug #3605845)
|
||||||
|
Handle max_input_vars
|
||||||
Disable autocapitalize in identifiers
|
Disable autocapitalize in identifiers
|
||||||
|
|
||||||
Adminer 3.6.3 (released 2013-01-23):
|
Adminer 3.6.3 (released 2013-01-23):
|
||||||
|
|
Loading…
Reference in a new issue