|
From: Paul S. O. <ps...@us...> - 2002-04-07 13:33:55
|
Update of /cvsroot/phpbb/phpBB2
In directory usw-pr-cvs1:/tmp/cvs-serv4958
Modified Files:
Tag: phpBB-2_0_0
privmsg.php
Log Message:
intval a number of variables
Index: privmsg.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/privmsg.php,v
retrieving revision 1.96.2.1
retrieving revision 1.96.2.2
diff -C2 -r1.96.2.1 -r1.96.2.2
*** privmsg.php 7 Apr 2002 00:28:22 -0000 1.96.2.1
--- privmsg.php 7 Apr 2002 13:33:51 -0000 1.96.2.2
***************
*** 100,108 ****
}
! $start = ( !empty($HTTP_GET_VARS['start']) ) ? $HTTP_GET_VARS['start'] : 0;
if ( isset($HTTP_POST_VARS[POST_POST_URL]) || isset($HTTP_GET_VARS[POST_POST_URL]) )
{
! $privmsg_id = ( isset($HTTP_POST_VARS[POST_POST_URL]) ) ? $HTTP_POST_VARS[POST_POST_URL] : $HTTP_GET_VARS[POST_POST_URL];
}
else
--- 100,108 ----
}
! $start = ( !empty($HTTP_GET_VARS['start']) ) ? intval($HTTP_GET_VARS['start']) : 0;
if ( isset($HTTP_POST_VARS[POST_POST_URL]) || isset($HTTP_GET_VARS[POST_POST_URL]) )
{
! $privmsg_id = ( isset($HTTP_POST_VARS[POST_POST_URL]) ) ? intval($HTTP_POST_VARS[POST_POST_URL]) : intval($HTTP_GET_VARS[POST_POST_URL]);
}
else
***************
*** 174,178 ****
if ( !empty($HTTP_GET_VARS[POST_POST_URL]) )
{
! $privmsgs_id = $HTTP_GET_VARS[POST_POST_URL];
}
else
--- 174,178 ----
if ( !empty($HTTP_GET_VARS[POST_POST_URL]) )
{
! $privmsgs_id = intval($HTTP_GET_VARS[POST_POST_URL]);
}
else
***************
*** 911,915 ****
if ( !$userdata['session_logged_in'] )
{
! $user_id = ( isset($HTTP_GET_VARS[POST_USERS_URL]) ) ? '&' . POST_USERS_URL . '=' . $HTTP_GET_VARS[POST_USERS_URL] : '';
$header_location = ( @preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')) ) ? 'Refresh: 0; URL=' : 'Location: ';
header($header_location . append_sid("login.$phpEx?redirect=privmsg.$phpEx&folder=$folder&mode=$mode" . $user_id, true));
--- 911,915 ----
if ( !$userdata['session_logged_in'] )
{
! $user_id = ( isset($HTTP_GET_VARS[POST_USERS_URL]) ) ? '&' . POST_USERS_URL . '=' . intval($HTTP_GET_VARS[POST_USERS_URL]) : '';
$header_location = ( @preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')) ) ? 'Refresh: 0; URL=' : 'Location: ';
header($header_location . append_sid("login.$phpEx?redirect=privmsg.$phpEx&folder=$folder&mode=$mode" . $user_id, true));
***************
*** 1038,1042 ****
$msg_time = time();
! if ( $mode != "edit" )
{
//
--- 1038,1042 ----
$msg_time = time();
! if ( $mode != 'edit' )
{
//
***************
*** 1088,1092 ****
}
! if ( $mode != "edit" )
{
$privmsg_sent_id = $db->sql_nextid();
--- 1088,1092 ----
}
! if ( $mode != 'edit' )
{
$privmsg_sent_id = $db->sql_nextid();
***************
*** 1226,1230 ****
if ( !empty($HTTP_GET_VARS[POST_USERS_URL]) )
{
! $user_id = $HTTP_GET_VARS[POST_USERS_URL];
$sql = "SELECT username
--- 1226,1230 ----
if ( !empty($HTTP_GET_VARS[POST_USERS_URL]) )
{
! $user_id = intval($HTTP_GET_VARS[POST_USERS_URL]);
$sql = "SELECT username
***************
*** 1746,1750 ****
if ( $submit_msgdays && ( !empty($HTTP_POST_VARS['msgdays']) || !empty($HTTP_GET_VARS['msgdays']) ) )
{
! $msg_days = ( !empty($HTTP_POST_VARS['msgdays']) ) ? $HTTP_POST_VARS['msgdays'] : $HTTP_GET_VARS['msgdays'];
$min_msg_time = time() - ($msg_days * 86400);
--- 1746,1750 ----
if ( $submit_msgdays && ( !empty($HTTP_POST_VARS['msgdays']) || !empty($HTTP_GET_VARS['msgdays']) ) )
{
! $msg_days = ( !empty($HTTP_POST_VARS['msgdays']) ) ? intval($HTTP_POST_VARS['msgdays']) : intval($HTTP_GET_VARS['msgdays']);
$min_msg_time = time() - ($msg_days * 86400);
|