# Patch dla phpBB modified by Przemo w wersjach niszych od 1.9.6
#
# Rozwizuje problem z wylogowywaniem po klikniciu na nazw tematu w ktrym s
# nowe posty gdy uytkownik nie akceptuje cookies forum; naprawia wysyanie
# ycze urodzinowych

#
#-----[ OPEN ]------------------------------------------
#
index.php

#
#-----[ FIND ]------------------------------------------
#
				$fp_message = '<b>' . $lang['choose_congratulations_format'] . '</b><br /><br /><a href="' . append_sid("index.$phpEx") . '?mode=congratulations&amp;send_mode=sending&amp;user=' . $user . '&amp;user_age=' . $user_age . '">' . $lang['congratulations_format_standart'] . '</a><br /><span class="gensmall">' . $lang['congratulations_format_standart_e'] . '</span><br /><br /><a href="' . append_sid("index.$phpEx") . '?mode=congratulations&amp;send_mode=custom&amp;user=' . $user . '&amp;user_age=' . $user_age . '">' . $lang['congratulations_format_custom'] . '</a><br /><span class="gensmall">' . $lang['congratulations_format_custom_e'] . '</span>';

#
#-----[ REPLACE WITH ]------------------------------------------
#
				$fp_message = '<b>' . $lang['choose_congratulations_format'] . '</b><br /><br /><a href="' . append_sid("index.$phpEx?mode=congratulations&amp;send_mode=sending&amp;user=$user&amp;user_age=$user_age") . '">' . $lang['congratulations_format_standart'] . '</a><br /><span class="gensmall">' . $lang['congratulations_format_standart_e'] . '</span><br /><br /><a href="' . append_sid("index.$phpEx?mode=congratulations&amp;send_mode=custom&amp;user=$user&amp;user_age=$user_age") . '">' . $lang['congratulations_format_custom'] . '</a><br /><span class="gensmall">' . $lang['congratulations_format_custom_e'] . '</span>';

#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php

#
#-----[ FIND ]------------------------------------------
#
			if (!preg_match('/^[A-Za-z0-9]*$/', $session_id)) 
			{
				$session_id = '';
				$SID = "sid=$session_id";
			}

#
#-----[ REPLACE WITH ]------------------------------------------
#
			if (!preg_match('/^[A-Za-z0-9]*$/', $session_id)) 
			{
				$session_id = '';
			}
			$SID = "sid=$session_id";

#
#-----[ CLOSE/SAVE ALL FILES ]------------------------------------------
# EoM