Update of /cvsroot/phplib/php-lib-stable/pages/admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4474/pages/admin
Modified Files:
new_user.php3 new_user_alt.php3 new_user_md5.php3
Log Message:
prefer auto-globals (i.e. $_GET instead of $HTTP_GET_VARS)
allow for "register_long_arrays" INI setting in PHP5 to be turned off as this disables the longer arrays
Index: new_user.php3
===================================================================
RCS file: /cvsroot/phplib/php-lib-stable/pages/admin/new_user.php3,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** new_user.php3 25 Apr 2002 06:26:45 -0000 1.4
--- new_user.php3 12 Jan 2007 21:47:27 -0000 1.5
***************
*** 46,53 ****
## Pull our form variables out of HTTP_POST_VARS
! if (isset($HTTP_POST_VARS['username'])) $username = $HTTP_POST_VARS['username'];
! if (isset($HTTP_POST_VARS['password'])) $password = $HTTP_POST_VARS['password'];
! if (isset($HTTP_POST_VARS['u_id'])) $u_id = $HTTP_POST_VARS['u_id'];
! if (isset($HTTP_POST_VARS['perms'])) $perms = $HTTP_POST_VARS['perms'];
###
--- 46,56 ----
## Pull our form variables out of HTTP_POST_VARS
! if (!isset($_POST)) {
! $_POST = $HTTP_POST_VARS;
! }
! if (isset($_POST['username'])) $username = $_POST['username'];
! if (isset($_POST['password'])) $password = $_POST['password'];
! if (isset($_POST['u_id'])) $u_id = $_POST['u_id'];
! if (isset($_POST['perms'])) $perms = $_POST['perms'];
###
***************
*** 121,126 ****
// Check if there was a submission
! while (is_array($HTTP_POST_VARS)
! && list($key, $val) = each($HTTP_POST_VARS)) {
if($debug == 1) {
printf("key +$key+, val +$val+<br>");
--- 124,129 ----
// Check if there was a submission
! while (is_array($_POST)
! && list($key, $val) = each($_POST)) {
if($debug == 1) {
printf("key +$key+, val +$val+<br>");
Index: new_user_alt.php3
===================================================================
RCS file: /cvsroot/phplib/php-lib-stable/pages/admin/new_user_alt.php3,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** new_user_alt.php3 25 Apr 2002 06:26:45 -0000 1.3
--- new_user_alt.php3 12 Jan 2007 21:47:27 -0000 1.4
***************
*** 49,56 ****
## Pull our form variables out of HTTP_POST_VARS
! if (isset($HTTP_POST_VARS['username'])) $username = $HTTP_POST_VARS['username'];
! if (isset($HTTP_POST_VARS['password'])) $password = $HTTP_POST_VARS['password'];
! if (isset($HTTP_POST_VARS['u_id'])) $u_id = $HTTP_POST_VARS['u_id'];
! if (isset($HTTP_POST_VARS['perms'])) $perms = $HTTP_POST_VARS['perms'];
###
--- 49,59 ----
## Pull our form variables out of HTTP_POST_VARS
! if (!isset($_POST)) {
! $_POST = $HTTP_POST_VARS;
! }
! if (isset($_POST['username'])) $username = $_POST['username'];
! if (isset($_POST['password'])) $password = $_POST['password'];
! if (isset($_POST['u_id'])) $u_id = $_POST['u_id'];
! if (isset($_POST['perms'])) $perms = $_POST['perms'];
###
***************
*** 118,123 ****
## Check if there was a submission
! while ( is_array($HTTP_POST_VARS)
! && list($key, $val) = each($HTTP_POST_VARS)) {
switch ($key) {
--- 121,126 ----
## Check if there was a submission
! while ( is_array($_POST)
! && list($key, $val) = each($_POST)) {
switch ($key) {
Index: new_user_md5.php3
===================================================================
RCS file: /cvsroot/phplib/php-lib-stable/pages/admin/new_user_md5.php3,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** new_user_md5.php3 21 Apr 2004 10:51:52 -0000 1.5
--- new_user_md5.php3 12 Jan 2007 21:47:27 -0000 1.6
***************
*** 45,53 ****
## Pull our form variables out of HTTP_POST_VARS
! if (isset($HTTP_POST_VARS['username'])) $username = $HTTP_POST_VARS['username'];
! if (isset($HTTP_POST_VARS['password'])) $password = $HTTP_POST_VARS['password'];
! if (isset($HTTP_POST_VARS['hashpass'])) $hashpass = $HTTP_POST_VARS['hashpass'];
! if (isset($HTTP_POST_VARS['u_id'])) $u_id = $HTTP_POST_VARS['u_id'];
! if (isset($HTTP_POST_VARS['perms'])) $perms = $HTTP_POST_VARS['perms'];
###
--- 45,56 ----
## Pull our form variables out of HTTP_POST_VARS
! if (!isset($_POST)) {
! $_POST = $HTTP_POST_VARS;
! }
! if (isset($_POST['username'])) $username = $_POST['username'];
! if (isset($_POST['password'])) $password = $_POST['password'];
! if (isset($_POST['hashpass'])) $hashpass = $_POST['hashpass'];
! if (isset($_POST['u_id'])) $u_id = $_POST['u_id'];
! if (isset($_POST['perms'])) $perms = $_POST['perms'];
###
***************
*** 118,126 ****
## Some debug output - can be useful to see what's going on
#$debug_output = "<br>\n";
! #reset($HTTP_POST_VARS);
! #while(list($var,$value)=each($HTTP_POST_VARS)) {
# $debug_output .= "$var: $value<br>\n";
#}
! #reset($HTTP_POST_VARS);
#my_msg($debug_output);
--- 121,129 ----
## Some debug output - can be useful to see what's going on
#$debug_output = "<br>\n";
! #reset($_POST);
! #while(list($var,$value)=each($_POST)) {
# $debug_output .= "$var: $value<br>\n";
#}
! #reset($_POST);
#my_msg($debug_output);
***************
*** 158,163 ****
## Check if there was a submission
! while ( is_array($HTTP_POST_VARS)
! && list($key, $val) = each($HTTP_POST_VARS)) {
switch ($key) {
--- 161,166 ----
## Check if there was a submission
! while ( is_array($_POST)
! && list($key, $val) = each($_POST)) {
switch ($key) {
|