From: Antoine Musso Date: Fri, 1 Oct 2004 15:57:09 +0000 (+0000) Subject: New userlevel feature. Sysop only, for testing. NO FORM IS VALIDATED : use at your... X-Git-Tag: 1.5.0alpha1~1709 X-Git-Url: http://git.cyclocoop.org/geomaker.php?a=commitdiff_plain;h=fc11eaedaa5c702df47b47f8525ecc3987f8d9c0;p=lhc%2Fweb%2Fwiklou.git New userlevel feature. Sysop only, for testing. NO FORM IS VALIDATED : use at your own risks --- diff --git a/includes/HTMLForm.php b/includes/HTMLForm.php index b5b7084835..bae40cba9b 100644 --- a/includes/HTMLForm.php +++ b/includes/HTMLForm.php @@ -26,7 +26,7 @@ class HTMLForm { * @param boolean $checked Set true to check the box (default False). */ function checkbox( $varname, $checked=false ) { - $checked = isset( $GLOBALS[$varname] ) && $GLOBALS[$varname] ; + $checked = isset( $_POST[$varname] ) && $_POST[$varname] ; return "
\n"; } /* @@ -52,7 +52,7 @@ class HTMLForm { */ function radiobox( $varname, $fields ) { foreach ( $fields as $value => $checked ) { - $s .= "
\n"; } @@ -66,9 +66,9 @@ class HTMLForm { * @param integer $size Optional size of the textarea (default 20) */ function textareabox ( $varname, $value='', $size=20 ) { - $value = isset( $GLOBALS[$varname] ) ? $GLOBALS[$varname] : $value; + $value = isset( $_POST[$varname] ) ? $_POST[$varname] : $value; return '