2.0.7 -> 2.0.7a

The 2.0.x discussion forum has been locked; this will remain read-only. The 3.0.x discussion forum has been renamed phpBB Discussion.
Locked
User avatar
RigNalScIn
Registered User
Posts: 98
Joined: Sat Feb 21, 2004 6:52 pm

2.0.7 -> 2.0.7a

Post by RigNalScIn » Fri Mar 19, 2004 7:44 pm

Why does sourceforge have a 2.0.7a package available but its not listed here?

What's updated in the a release?

Am I just a n00b that's jumping the gun and a msg/release is on its way here? (Tell me STFU if needed..) :D

ycl6
Translator
Posts: 5696
Joined: Sat Feb 15, 2003 10:35 am
Location: Taiwan
Contact:

Post by ycl6 » Fri Mar 19, 2004 8:28 pm

Upgrade from 2.0.7 to 2.0.7a

OPEN login.php

FIND

Code: Select all

   *   $Id: login.php,v 1.47.2.14 2004/03/01 16:53:21 psotfx Exp $
REPLACE WITH

Code: Select all

   *   $Id: login.php,v 1.47.2.15 2004/03/18 18:15:51 acydburn Exp $
FIND

Code: Select all

  					if( $session_id )
  					{
  						$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? $HTTP_POST_VARS['redirect'] : "index.$phpEx";
  						redirect(append_sid($url, true));
  					}
  					else
REPLACE WITH

Code: Select all

  					if( $session_id )
  					{
  						$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&amp', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "index.$phpEx";
  						redirect(append_sid($url, true));
  					}
  					else
FIND

Code: Select all

  				}
  				else
  				{
  					$redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? $HTTP_POST_VARS['redirect'] : '';
  					$redirect = str_replace('?', '&', $redirect);
  
  					$template->assign_vars(array(
REPLACE WITH

Code: Select all

  				}
  				else
  				{
  					$redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&amp', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : '';
  					$redirect = str_replace('?', '&', $redirect);
  
  					$template->assign_vars(array(
FIND

Code: Select all

  		}
  		else
  		{
  			$redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? $HTTP_POST_VARS['redirect'] : "";
  			$redirect = str_replace("?", "&", $redirect);
  
  			$template->assign_vars(array(
REPLACE WITH

Code: Select all

  		}
  		else
  		{
  			$redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&amp', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "";
  			$redirect = str_replace("?", "&", $redirect);
  
  			$template->assign_vars(array(
FIND

Code: Select all

  		if (!empty($HTTP_POST_VARS['redirect']) || !empty($HTTP_GET_VARS['redirect']))
  		{
  			$url = (!empty($HTTP_POST_VARS['redirect'])) ? $HTTP_POST_VARS['redirect'] : $HTTP_GET_VARS['redirect'];
  			redirect(append_sid($url, true));
  		}
  		else
REPLACE WITH

Code: Select all

  		if (!empty($HTTP_POST_VARS['redirect']) || !empty($HTTP_GET_VARS['redirect']))
  		{
  			$url = (!empty($HTTP_POST_VARS['redirect'])) ? htmlspecialchars($HTTP_POST_VARS['redirect']) : htmlspecialchars($HTTP_GET_VARS['redirect']);
  			$url = str_replace('&amp', '&', $url);
  			redirect(append_sid($url, true));
  		}
  		else
FIND

Code: Select all

  	}
  	else
  	{
  		$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? $HTTP_POST_VARS['redirect'] : "index.$phpEx";
  		redirect(append_sid($url, true));
  	}
  }
REPLACE WITH

Code: Select all

  	}
  	else
  	{
  		$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&amp', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "index.$phpEx";
  		redirect(append_sid($url, true));
  	}
  }
OPEN privmsg.php

FIND

Code: Select all

   *   $Id: privmsg.php,v 1.96.2.32 2003/06/12 12:49:01 psotfx Exp $
REPLACE WITH

Code: Select all

   *   $Id: privmsg.php,v 1.96.2.34 2004/03/18 18:16:21 acydburn Exp $
FIND

Code: Select all

  if ( $row = $db->sql_fetchrow($result) )
  {
  	do
  	{
  		$privmsg_id = $row['privmsgs_id'];
REPLACE WITH

Code: Select all

  if ( $row = $db->sql_fetchrow($result) )
  {
  	$i = 0;
  	do
  	{
  		$privmsg_id = $row['privmsgs_id'];
FIND

Code: Select all

  		$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
  		$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
  
  		$template->assign_block_vars('listrow', array(
  			'ROW_COLOR' => '#' . $row_color,
REPLACE WITH

Code: Select all

  		$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
  		$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
  		$i++;
  
  		$template->assign_block_vars('listrow', array(
  			'ROW_COLOR' => '#' . $row_color,
OPEN search.php

FIND

Code: Select all

   *   $Id: search.php,v 1.72.2.10 2003/07/11 17:04:31 psotfx Exp $
REPLACE WITH

Code: Select all

   *   $Id: search.php,v 1.72.2.12 2004/03/18 18:16:45 acydburn Exp $
FIND

Code: Select all

  $search_id = ( isset($HTTP_GET_VARS['search_id']) ) ? $HTTP_GET_VARS['search_id'] : '';
  
  $show_results = ( isset($HTTP_POST_VARS['show_results']) ) ? $HTTP_POST_VARS['show_results'] : 'posts';
  
  if ( isset($HTTP_POST_VARS['search_terms']) )
  {
REPLACE WITH

Code: Select all

  $search_id = ( isset($HTTP_GET_VARS['search_id']) ) ? $HTTP_GET_VARS['search_id'] : '';
  
  $show_results = ( isset($HTTP_POST_VARS['show_results']) ) ? $HTTP_POST_VARS['show_results'] : 'posts';
  $show_results = ($show_results == 'topics') ? 'topics' : 'posts';
  
  if ( isset($HTTP_POST_VARS['search_terms']) )
  {
FIND

Code: Select all

  else if ( $search_keywords != '' || $search_author != '' || $search_id )
  {
  	$store_vars = array('search_results', 'total_match_count', 'split_search', 'sort_by', 'sort_dir', 'show_results', 'return_chars');
  
  	//
  	// Search ID Limiter, decrease this value if you experience further timeout problems with searching forums
REPLACE WITH

Code: Select all

  else if ( $search_keywords != '' || $search_author != '' || $search_id )
  {
  	$store_vars = array('search_results', 'total_match_count', 'split_search', 'sort_by', 'sort_dir', 'show_results', 'return_chars');
  	$search_results = '';
  
  	//
  	// Search ID Limiter, decrease this value if you experience further timeout problems with searching forums
~Mac

txuspe
Registered User
Posts: 73
Joined: Mon Nov 03, 2003 2:48 pm
Location: Spain

Post by txuspe » Fri Mar 19, 2004 8:55 pm


madnessmotors
Registered User
Posts: 269
Joined: Sun Aug 17, 2003 7:33 pm
Contact:

Post by madnessmotors » Fri Mar 19, 2004 10:51 pm

Would be nice if it were released in the mod template so that easymod could read it.

Locked

Return to “2.0.x Discussion”