Update of /cvsroot/phpicalendar/phpicalendar/functions
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32070/functions
Modified Files:
init.inc.php userauth_functions.php
Log Message:
Updated to $_POST
Index: init.inc.php
===================================================================
RCS file: /cvsroot/phpicalendar/phpicalendar/functions/init.inc.php,v
retrieving revision 1.65
retrieving revision 1.66
diff -C2 -d -r1.65 -r1.66
*** init.inc.php 2 Sep 2004 18:39:52 -0000 1.65
--- init.inc.php 2 Sep 2004 18:41:13 -0000 1.66
***************
*** 37,41 ****
// Grab the action (login or logout).
if (isset($HTTP_GET_VARS['action'])) $action = $HTTP_GET_VARS['action'];
! else if (isset($HTTP_POST_VARS['action'])) $action = $HTTP_POST_VARS['action'];
else $action = '';
--- 37,41 ----
// Grab the action (login or logout).
if (isset($HTTP_GET_VARS['action'])) $action = $HTTP_GET_VARS['action'];
! else if (isset($_POST['action'])) $action = $_POST['action'];
else $action = '';
Index: userauth_functions.php
===================================================================
RCS file: /cvsroot/phpicalendar/phpicalendar/functions/userauth_functions.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** userauth_functions.php 2 Sep 2004 18:39:52 -0000 1.3
--- userauth_functions.php 2 Sep 2004 18:41:13 -0000 1.4
***************
*** 44,48 ****
// indicate that the login is invalid.
function user_login() {
! global $_COOKIE, $HTTP_GET_VARS, $HTTP_POST_VARS, $_SERVER;
global $login_cookies, $cookie_uri, $locked_map;
--- 44,48 ----
// indicate that the login is invalid.
function user_login() {
! global $_COOKIE, $HTTP_GET_VARS, $_POST, $_SERVER;
global $login_cookies, $cookie_uri, $locked_map;
***************
*** 89,97 ****
$username = $HTTP_GET_VARS['username'];
$password = $HTTP_GET_VARS['password'];
! } else if (isset($HTTP_POST_VARS['username']) &&
! isset($HTTP_POST_VARS['password']))
{
! $username = $HTTP_POST_VARS['username'];
! $password = $HTTP_POST_VARS['password'];
}
--- 89,97 ----
$username = $HTTP_GET_VARS['username'];
$password = $HTTP_GET_VARS['password'];
! } else if (isset($_POST['username']) &&
! isset($_POST['password']))
{
! $username = $_POST['username'];
! $password = $_POST['password'];
}
|