From 8cd7c28c84472dc8196dd93e16325efb3048bf9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 3 Oct 2006 13:11:22 +0000 Subject: [PATCH] Sync token name, move it's definition to one place (bug #1569612). --- ChangeLog | 5 +++++ scripts/setup.php | 39 ++++++++++++++++++++++++--------------- 2 files changed, 29 insertions(+), 15 deletions(-) diff --git a/ChangeLog b/ChangeLog index dbdc09918..05b9964f0 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,11 @@ phpMyAdmin - ChangeLog $Id$ $Source$ + +2006-10-03 Michal Čihař + * scripts/setup.php: Sync token name, move it's definition to one place + (bug #1569612). + 2006-10-01 Marc Delisle ### 2.9.0.1 released from MAINT_2_9_0 * libraries/database_interface.lib.php: bug #1568341, diff --git a/scripts/setup.php b/scripts/setup.php index c5f724e8a..1f16951c0 100644 --- a/scripts/setup.php +++ b/scripts/setup.php @@ -304,6 +304,15 @@ function get_hidden_cfg() { return '' . "\n"; } +/** + * Returns needed hidden input for forms. + * + * @return string HTML with hidden inputs + */ +function get_hidden_inputs() { + return ''; +} + /** * Creates form for some action * @@ -316,7 +325,7 @@ function get_hidden_cfg() { function get_action($name, $title, $added = '', $enabled = TRUE) { $ret = ''; $ret .= '
'; - $ret .= ''; + $ret .= get_hidden_inputs(); $ret .= ''; $ret .= $added; $ret .= ''; - $ret .= ''; + $ret .= get_hidden_inputs(); foreach ($params as $key => $val) { $ret .= ''; } @@ -751,7 +760,7 @@ function show_config_form($list, $legend, $help, $defaults = array(), $save = '' function show_security_form($defaults = array()) { ?> - + - + - + - + - + - + - + - + - + - + - + - + - +