phpBB 2.0.17 Çıktı (2.0.16 dan 2.0.17e değişecek dosyalar)

Yeni çıkan phpBB 2.0.x sürüm duyuruları ve eski phpBB 2.0.x sürümlerini yeni sürümlere güncelleme bilgileri.
Kilitli
Kullanıcı avatarı
ESQARE
Web Sitesi Yöneticisi
Web Sitesi Yöneticisi
Mesajlar: 6971
Kayıt: 18.09.2005, 20:51
İletişim:

phpBB 2.0.17 Çıktı (2.0.16 dan 2.0.17e değişecek dosyalar)

Mesaj gönderen ESQARE »

phpBB 2.0.16 dan phpBB 2.0.17ye Değişecek Dosyalar

'FIND' - Bul
'AFTER, ADD' - Kodun Sonrasına Ekle
'BEFORE, ADD' - Kodun Öncesine Ekle
'REPLACE WITH' - Kodu Bununla Değiştir

Kodlar değiştikten sonra altta verdiğim güncelleme download linkinin içinden update_to_latest.php dosyasını root/install dizinine attıktan sonra http://www.siteadı.com/phpBB/install/up ... latest.php yazarak scriptin yüklemeyi tamamlamasını bekleyin.Ardından dosyayı silin.

  • admin/admin_ug_auth.php[/color][/size]
  1. FIND - Line 417

    Kod: Tümünü seç

    
    			FROM " . AUTH_ACCESS_TABLE . " aa, " . USER_GROUP_TABLE . " ug, " . USERS_TABLE . " u  
    			WHERE ug.group_id = aa.group_id 
    				AND u.user_id = ug.user_id 
    
    AFTER, ADD

    Kod: Tümünü seç

    
    				AND ug.user_pending = 0
    
  2. FIND - Line 572

    Kod: Tümünü seç

    
    	$sql = "SELECT * 
    		FROM " . FORUMS_TABLE . " f
    		ORDER BY forum_order";
    
    REPLACE WITH

    Kod: Tümünü seç

    
    	$sql = "SELECT f.* 
    		FROM " . FORUMS_TABLE . " f, " . CATEGORIES_TABLE . " c
    		WHERE f.cat_id = c.cat_id
    		ORDER BY c.cat_order, f.forum_order ASC";
    
  3. FIND - Line 608

    Kod: Tümünü seç

    
    	$sql = "SELECT u.user_id, u.username, u.user_level, g.group_id, g.group_name, g.group_single_user FROM " . USERS_TABLE . " u, " . GROUPS_TABLE . " g, " . USER_GROUP_TABLE . " ug WHERE ";
    
    REPLACE WITH

    Kod: Tümünü seç

    
    	$sql = "SELECT u.user_id, u.username, u.user_level, g.group_id, g.group_name, g.group_single_user, ug.user_pending FROM " . USERS_TABLE . " u, " . GROUPS_TABLE . " g, " . USER_GROUP_TABLE . " ug WHERE ";
    
  4. FIND - Line 836

    Kod: Tümünü seç

    
    		$t_usergroup_list = '';
    		for($i = 0; $i < count($ug_info); $i++)
    		{
    			$ug = ( $mode == 'user' ) ? 'group&' . POST_GROUPS_URL : 'user&' . POST_USERS_URL;
    
    			$t_usergroup_list .= ( ( $t_usergroup_list != '' ) ? ', ' : '' ) . '<a href="' . append_sid("admin_ug_auth.$phpEx?mode=$ug=" . $id[$i]) . '">' . $name[$i] . '</a>';
    
    REPLACE WITH

    Kod: Tümünü seç

    
    		$t_usergroup_list = $t_pending_list = '';
    		for($i = 0; $i < count($ug_info); $i++)
    		{
    			$ug = ( $mode == 'user' ) ? 'group&' . POST_GROUPS_URL : 'user&' . POST_USERS_URL;
    
    			if (!$ug_info[$i]['user_pending'])
    			{
    				$t_usergroup_list .= ( ( $t_usergroup_list != '' ) ? ', ' : '' ) . '<a href="' . append_sid("admin_ug_auth.$phpEx?mode=$ug=" . $id[$i]) . '">' . $name[$i] . '</a>';
    			}
    			else
    			{
    				$t_pending_list .= ( ( $t_pending_list != '' ) ? ', ' : '' ) . '<a href="' . append_sid("admin_ug_auth.$phpEx?mode=$ug=" . $id[$i]) . '">' . $name[$i] . '</a>';
    			}
    
  5. FIND - Line 911

    Kod: Tümünü seç

    
    			'GROUP_MEMBERSHIP' => $lang['Usergroup_members'] . ' : ' . $t_usergroup_list)
    
    REPLACE WITH

    Kod: Tümünü seç

    
    			'GROUP_MEMBERSHIP' => $lang['Usergroup_members'] . ' : ' . $t_usergroup_list . '<br />' . $lang['Pending_members'] . ' : ' . $t_pending_list)
    
  • admin/admin_users.php[/color][/size]
  1. FIND - Line 89

    Kod: Tümünü seç

    
    				SET poster_id = " . DELETED . ", post_username = '$username' 
    
    REPLACE WITH

    Kod: Tümünü seç

    
    				SET poster_id = " . DELETED . ", post_username = '" . str_replace("\\'", "''", addslashes($this_userdata['username'])) . "' 
    
  • includes/bbcode.php[/color][/size]
  1. FIND - Line 203

    Kod: Tümünü seç

    
    	$patterns[] = "#\[url\]([\w]+?://[^ \"\n\r\t<]*?)\[/url\]#is";
    	$replacements[] = $bbcode_tpl['url1'];
    
    	// [url]www.phpbb.com[/url] code.. (no xxxx:// prefix).
    	$patterns[] = "#\[url\]((www|ftp)\.[^ \"\n\r\t<]*?)\[/url\]#is";
    	$replacements[] = $bbcode_tpl['url2'];
    
    	// [url=xxxx://www.phpbb.com]phpBB[/url] code..
    	$patterns[] = "#\[url=([\w]+?://[^ \"\n\r\t<]*?)\]([^?\n\r\t].*?)\[/url\]#is";
    	$replacements[] = $bbcode_tpl['url3'];
    
    	// [url=www.phpbb.com]phpBB[/url] code.. (no xxxx:// prefix).
    	$patterns[] = "#\[url=((www|ftp)\.[^ \"\n\r\t<]*?)\]([^?\n\r\t].*?)\[/url\]#is";
    
    REPLACE WITH

    Kod: Tümünü seç

    
    	$patterns[] = "#\[url\]([\w]+?://[\w\#$%&~/.\-;:=,?@\[\]+]*?)\[/url\]#is";
    	$replacements[] = $bbcode_tpl['url1'];
    
    	// [url]www.phpbb.com[/url] code.. (no xxxx:// prefix).
    	$patterns[] = "#\[url\]((www|ftp)\.[\w\#$%&~/.\-;:=,?@\[\]+]*?)\[/url\]#is";
    	$replacements[] = $bbcode_tpl['url2'];
    
    	// [url=xxxx://www.phpbb.com]phpBB[/url] code..
    	$patterns[] = "#\[url=([\w]+?://[\w\#$%&~/.\-;:=,?@\[\]+]*?)\]([^?\n\r\t].*?)\[/url\]#is";
    	$replacements[] = $bbcode_tpl['url3'];
    
    	// [url=www.phpbb.com]phpBB[/url] code.. (no xxxx:// prefix).
    	$patterns[] = "#\[url=((www|ftp)\.[\w\#$%&~/.\-;:=,?@\[\]+]*?)\]([^?\n\r\t].*?)\[/url\]#is";
    
  2. FIND - Line 627

    Kod: Tümünü seç

    
    	$ret = preg_replace("#(^|[\n ])([\w]+?://[^ \"\n\r\t<]*)#is", "\\1<a href=\"\\2\" target=\"_blank\">\\2</a>", $ret);
    
    	// matches a "www|ftp.xxxx.yyyy[/zzzz]" kinda lazy URL thing
    	// Must contain at least 2 dots. xxxx contains either alphanum, or "-"
    	// zzzz is optional.. will contain everything up to the first space, newline, 
    	// comma, double quote or <.
    	$ret = preg_replace("#(^|[\n ])((www|ftp)\.[^ \"\t\n\r<]*)#is", "\\1<a href=\"http://\\2\" target=\"_blank\">\\2</a>", $ret);
    
    REPLACE WITH

    Kod: Tümünü seç

    
    	$ret = preg_replace("#(^|[\n ])([\w]+?://[\w\#$%&~/.\-;:=,?@\[\]+]*)#is", "\\1<a href=\"\\2\" target=\"_blank\">\\2</a>", $ret);
    
    	// matches a "www|ftp.xxxx.yyyy[/zzzz]" kinda lazy URL thing
    	// Must contain at least 2 dots. xxxx contains either alphanum, or "-"
    	// zzzz is optional.. will contain everything up to the first space, newline, 
    	// comma, double quote or <.
    	$ret = preg_replace("#(^|[\n ])((www|ftp)\.[\w\#$%&~/.\-;:=,?@\[\]+]*)#is", "\\1<a href=\"http://\\2\" target=\"_blank\">\\2</a>", $ret);
    
  • includes/functions.php[/color][/size]
  1. FIND - Line 120

    Kod: Tümünü seç

    
    	if (intval($user) == 0 || $force_str)
    
    REPLACE WITH

    Kod: Tümünü seç

    
    	if (!is_numeric($user) || $force_str)
    
  2. FIND - Line 581

    Kod: Tümünü seç

    
    	define(HAS_DIED, 1);
    
    REPLACE WITH

    Kod: Tümünü seç

    
    	define('HAS_DIED', 1);
    
  • includes/functions_validate.php[/color][/size]
  1. FIND - Line 33

    Kod: Tümünü seç

    
    	$username = preg_replace('#\s+#', ' ', $username); 
    	// Limit username length
    	$username = substr(str_replace("\'", "'", $username), 0, 25);
    	$username = str_replace("'", "''", $username);
    
    
    REPLACE WITH

    Kod: Tümünü seç

    
    	$username = preg_replace('#\s+#', ' ', trim($username)); 
    	$username = phpbb_clean_username($username);
    	
    
  • includes/usercp_activate.php[/color][/size]
  1. FIND - Line 50

    Kod: Tümünü seç

    
    	}
    	else if ((trim($row['user_actkey']) == trim($HTTP_GET_VARS['act_key'])) && (trim($row['user_actkey']) != ''))
    	{
    
    AFTER, ADD

    Kod: Tümünü seç

    
    		if (intval($board_config['require_activation']) == USER_ACTIVATION_ADMIN && $userdata['user_level'] != ADMIN)
    		{
    			message_die(GENERAL_MESSAGE, $lang['Not_Authorised']);
    		}
    
    
  • includes/usercp_avatar.php[/color][/size]
  1. FIND - Line 89

    Kod: Tümünü seç

    
    
    function user_avatar_url($mode, &$error, &$error_msg, $avatar_filename)
    {
    
    AFTER, ADD

    Kod: Tümünü seç

    
    	global $lang;
    
    
  • includes/usercp_viewprofile.php[/color][/size]
  1. FIND - Line 168

    Kod: Tümünü seç

    
    $search_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_search'] . '" alt="' . $lang['Search_user_posts'] . '" title="' . $lang['Search_user_posts'] . '" border="0" /></a>';
    $search = '<a href="' . $temp_url . '">' . $lang['Search_user_posts'] . '</a>';
    
    REPLACE WITH

    Kod: Tümünü seç

    
    $search_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_search'] . '" alt="' . $lang['Search_user_posts'] . '" title="' . sprintf($lang['Search_user_posts'], $profiledata['username']) . '" border="0" /></a>';
    $search = '<a href="' . $temp_url . '">' . sprintf($lang['Search_user_posts'], $profiledata['username']) . '</a>';
    
  • privmsg.php[/color][/size]
  1. FIND - Line 701

    Kod: Tümünü seç

    
    		if ( $delete_all )
    		{
    			switch($folder)
    			{
    				case 'inbox':
    					$delete_type = "privmsgs_to_userid = " . $userdata['user_id'] . " AND (
    					privmsgs_type = " . PRIVMSGS_READ_MAIL . " OR privmsgs_type = " . PRIVMSGS_NEW_MAIL . " OR privmsgs_type = " . PRIVMSGS_UNREAD_MAIL . " )";
    					break;
    
    				case 'outbox':
    					$delete_type = "privmsgs_from_userid = " . $userdata['user_id'] . " AND ( privmsgs_type = " . PRIVMSGS_NEW_MAIL . " OR privmsgs_type = " . PRIVMSGS_UNREAD_MAIL . " )";
    					break;
    
    				case 'sentbox':
    					$delete_type = "privmsgs_from_userid = " . $userdata['user_id'] . " AND privmsgs_type = " . PRIVMSGS_SENT_MAIL;
    					break;
    
    				case 'savebox':
    					$delete_type = "( ( privmsgs_from_userid = " . $userdata['user_id'] . " 
    						AND privmsgs_type = " . PRIVMSGS_SAVED_OUT_MAIL . " ) 
    					OR ( privmsgs_to_userid = " . $userdata['user_id'] . " 
    						AND privmsgs_type = " . PRIVMSGS_SAVED_IN_MAIL . " ) )";
    					break;
    			}
    
    			$sql = "SELECT privmsgs_id
    				FROM " . PRIVMSGS_TABLE . "
    				WHERE $delete_type";
    			if ( !($result = $db->sql_query($sql)) )
    			{
    				message_die(GENERAL_ERROR, 'Could not obtain id list to delete all messages', '', __LINE__, __FILE__, $sql);
    			}
    
    			while ( $row = $db->sql_fetchrow($result) )
    			{
    				$mark_list[] = $row['privmsgs_id'];
    			}
    
    			unset($delete_type);
    		}
    
    
    REPLACE WITH

    Kod: Tümünü seç

    
    		$delete_sql_id = '';
    
    		if (!$delete_all)
    		{
    			for ($i = 0; $i < count($mark_list); $i++)
    			{
    				$delete_sql_id .= (($delete_sql_id != '') ? ', ' : '') . intval($mark_list[$i]);
    			}
    			$delete_sql_id = "AND privmsgs_id IN ($delete_sql_id)";
    		}
    
    		switch($folder)
    		{
    			case 'inbox':
    				$delete_type = "privmsgs_to_userid = " . $userdata['user_id'] . " AND (
    				privmsgs_type = " . PRIVMSGS_READ_MAIL . " OR privmsgs_type = " . PRIVMSGS_NEW_MAIL . " OR privmsgs_type = " . PRIVMSGS_UNREAD_MAIL . " )";
    				break;
    
    			case 'outbox':
    				$delete_type = "privmsgs_from_userid = " . $userdata['user_id'] . " AND ( privmsgs_type = " . PRIVMSGS_NEW_MAIL . " OR privmsgs_type = " . PRIVMSGS_UNREAD_MAIL . " )";
    				break;
    
    			case 'sentbox':
    				$delete_type = "privmsgs_from_userid = " . $userdata['user_id'] . " AND privmsgs_type = " . PRIVMSGS_SENT_MAIL;
    				break;
    
    			case 'savebox':
    				$delete_type = "( ( privmsgs_from_userid = " . $userdata['user_id'] . " 
    					AND privmsgs_type = " . PRIVMSGS_SAVED_OUT_MAIL . " ) 
    				OR ( privmsgs_to_userid = " . $userdata['user_id'] . " 
    					AND privmsgs_type = " . PRIVMSGS_SAVED_IN_MAIL . " ) )";
    				break;
    		}
    
    		$sql = "SELECT privmsgs_id
    			FROM " . PRIVMSGS_TABLE . "
    			WHERE $delete_type $delete_sql_id";
    
    		if ( !($result = $db->sql_query($sql)) )
    		{
    			message_die(GENERAL_ERROR, 'Could not obtain id list to delete messages', '', __LINE__, __FILE__, $sql);
    		}
    
    		$mark_list = array();
    		while ( $row = $db->sql_fetchrow($result) )
    		{
    			$mark_list[] = $row['privmsgs_id'];
    		}
    
    		unset($delete_type);
    
    
  2. FIND - Line 1507

    Kod: Tümünü seç

    
    				$mode = 'reply';
    			}
    		}
    
    AFTER, ADD

    Kod: Tümünü seç

    
    		else
    		{
    			$privmsg_subject = $privmsg_message = '';
    		}
    
  3. FIND - Line 2036

    Kod: Tümünü seç

    
    			$l_box_size_status = '';
    			break;
    	}
    }
    
    AFTER, ADD

    Kod: Tümünü seç

    
    else
    {
    	$inbox_limit_img_length = $inbox_limit_pct = $l_box_size_status = '';
    }
    
  • templates/subSilver/faq_body.tpl[/color][/size]
  1. FIND - Line 37

    Kod: Tümünü seç

    
    		<td class="{faq_block.faq_row.ROW_CLASS}" align="left" valign="top"><span class="postbody"><a name="{faq_block.faq_row.U_FAQ_ID}"></a><b>{faq_block.faq_row.FAQ_QUESTION}</b></span><br /><span class="postbody">{faq_block.faq_row.FAQ_ANSWER}<br /><a class="postlink" href="#Top">{L_BACK_TO_TOP}</a></span></td>
    
    REPLACE WITH

    Kod: Tümünü seç

    
    		<td class="{faq_block.faq_row.ROW_CLASS}" align="left" valign="top"><span class="postbody"><a name="{faq_block.faq_row.U_FAQ_ID}"></a><b>{faq_block.faq_row.FAQ_QUESTION}</b></span><br /><span class="postbody">{faq_block.faq_row.FAQ_ANSWER}<br /><a class="postlink" href="#top">{L_BACK_TO_TOP}</a></span></td>
    
  • viewtopic.php[/color][/size]
  1. FIND - Line 992

    Kod: Tümünü seç

    
    	$search_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_search'] . '" alt="' . $lang['Search_user_posts'] . '" title="' . $lang['Search_user_posts'] . '" border="0" /></a>';
    	$search = '<a href="' . $temp_url . '">' . $lang['Search_user_posts'] . '</a>';
    
    REPLACE WITH

    Kod: Tümünü seç

    
    	$search_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_search'] . '" alt="' . $lang['Search_user_posts'] . '" title="' . sprintf($lang['Search_user_posts'], $postrow[$i]['username']) . '" border="0" /></a>';
    	$search = '<a href="' . $temp_url . '">' . sprintf($lang['Search_user_posts'], $postrow[$i]['username']) . '</a>';
    
Güncelleme download linki: http://www.opentools.de/files/phpbb_2016_to_2017.zip
En son ESQARE tarafından 17.02.2006, 21:09 tarihinde düzenlendi, toplamda 1 kere düzenlendi.
sagopa
Kayıtlı Kullanıcı
Mesajlar: 4
Kayıt: 30.10.2005, 22:01

Mesaj gönderen sagopa »

bende 2.0.18 war bunu nasıl kendime uyarlıcam!!!
Kullanıcı avatarı
ESQARE
Web Sitesi Yöneticisi
Web Sitesi Yöneticisi
Mesajlar: 6971
Kayıt: 18.09.2005, 20:51
İletişim:

Mesaj gönderen ESQARE »

ozay
Kayıtlı Kullanıcı
Mesajlar: 3
Kayıt: 08.01.2006, 15:59

Mesaj gönderen ozay »

. admin/admin_ug_auth.php

4. adımda bi sorun mu var admin paneline girdiğimde üstte;

------------------------------------------
Parse error:
parse error in /data/members/free/tripod/uk/b/r/a/xxx/htdocs/phpBB2/admin/admin_ug_auth.php
on line 849
------------------------------------------


bu şekilde bi hata yazıyo 849. satırda da resimde görüldüğü gibi else var.

[ resmi görüntülemek için tıklayın ]
Kullanıcı avatarı
ESQARE
Web Sitesi Yöneticisi
Web Sitesi Yöneticisi
Mesajlar: 6971
Kayıt: 18.09.2005, 20:51
İletişim:

Mesaj gönderen ESQARE »

Hayır herhangi bir sorun yok.Fakat hata yapmışsınız satırlar bu şekilde olacak:

Kod: Tümünü seç

	$t_usergroup_list = $t_pending_list = '';
	if( count($name) )
	{
		for($i = 0; $i < count($ug_info); $i++)
		{
			$ug = ( $mode == 'user' ) ? 'group&' . POST_GROUPS_URL : 'user&' . POST_USERS_URL;

			if (!$ug_info[$i]['user_pending'])
			{
				$t_usergroup_list .= ( ( $t_usergroup_list != '' ) ? ', ' : '' ) . '<a href="' . append_sid("admin_ug_auth.$phpEx?mode=$ug=" . $id[$i]) . '">' . $name[$i] . '</a>';
			}
			else
			{
				$t_pending_list .= ( ( $t_pending_list != '' ) ? ', ' : '' ) . '<a href="' . append_sid("admin_ug_auth.$phpEx?mode=$ug=" . $id[$i]) . '">' . $name[$i] . '</a>';
			}
		}
	}
	$t_usergroup_list = ($t_usergroup_list == '') ? $lang['None'] : $t_usergroup_list;
	$t_pending_list = ($t_pending_list == '') ? $lang['None'] : $t_pending_list;
Tekrar kontrol ederseniz sorun çözülecektir.
Focus30
Kayıtlı Kullanıcı
Mesajlar: 98
Kayıt: 17.02.2006, 14:03

Mesaj gönderen Focus30 »

Arkadaşlar merhaba..

Kullandığım forum 2.0.14 ve tüm açıkları kapalı idi ama dün saldırı olduğu için yükseltmeye başladım. 2.016 ya kadar başarılı bir şekilde yükseldi ama 2.0.17 için eklediğim kodlar ile değişen bir şey olmadı. Forumda yine 2.0.16 yazıyor ve hatada vermiyor.. Ama 2.017 için gerekli olanları yaptım..

Subsilver temasını daha önce silmiştim ve 2.0.17 güncellemesi olduğu için tekrardan yükledim, onuda güncelledim..

Tek kafama takılan nokta şu oldu;

Değişmesi gereken 2.0.16 VİEWTOPİC bu;

Kod: Tümünü seç

$search_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_search'] . '" alt="' . $lang['Search_user_posts'] . '" title="' . $lang['Search_user_posts'] . '" border="0" /></a>'; 
   $search = '<a href="' . $temp_url . '">' . $lang['Search_user_posts'] . '</a>';
Bendeki 2.0.16 VİEWTOPİC te şu yazıyor;

Kod: Tümünü seç

$search_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_search'] . '" alt="' . $lang['Search_user_posts'] . '" title="' . sprintf($lang['Search_user_posts'], $postrow[$i]['username']) . '" border="0" /></a>';
	$search = '<a href="' . $temp_url . '">' . sprintf($lang['Search_user_posts'], $postrow[$i]['username']) . '</a>';
Ben yinede bunu değişmesi gereken gibi değiştirdim ama yinede 2.0.17 olmadı..

Sorun ne olabilir, cevaplarınızı bekliyorum..
Kullanıcı avatarı
ESQARE
Web Sitesi Yöneticisi
Web Sitesi Yöneticisi
Mesajlar: 6971
Kayıt: 18.09.2005, 20:51
İletişim:

Mesaj gönderen ESQARE »

http://www.opentools.de/files/phpbb_2016_to_2017.zip

Bu dosyanın içerisindeki install/ klasörünü ana dizine kopyalayın.Daha sonra explorer satırına http://www.siteadı.com/phpBB/install/up ... latest.php yazarak scriptin yüklemeyi tamamlamasını bekleyin.Ardından klasörü silin.

2.0.17 için bu dosyayı kullanmanız gerekmektedir.Veritabanı güncellenecektir.
Resim
phpBB Eklenti Kurulumu | Kurallar | phpBB3 İzinleri | Otel Rehberi

Kurallarımız gereği lütfen özel mesaj ile yardım istemeyiniz, cevap vermiyoruz.
Focus30
Kayıtlı Kullanıcı
Mesajlar: 98
Kayıt: 17.02.2006, 14:03

Mesaj gönderen Focus30 »

Teşekkürler Tango, tüm bilgiler için sağol..
Kilitli

“2.0.x Sürüm Duyuruları & Güncellemeleri” sayfasına dön

Kimler çevrimiçi

Bu forumu görüntüleyen kullanıcılar: Hiç bir kayıtlı kullanıcı yok ve 4 misafir