Türkiye Forum Arşivler Ana Sayfa


Google


phpBB 2.0.14 Çıktı (2.0.13 ten 2.0.14 e değişecek dosyalar)


Orjinal başlığa gitmek için tıklayın

 
       Türkiye Forum Arşivler Ana Sayfa -> phpBB
Önceki başlık :: Sonraki başlık  
Yazar Mesaj
taNGo



Kayıt: 23 Haziran 2003
Mesajlar: 2515
Nerden: Geriden

Tarih: 16 Nisan 2005, 02:44    Mesaj konusu: phpBB 2.0.14 Çıktı (2.0.13 ten 2.0.14 e değişecek dosyalar)  


phpBB 2.0.13 to phpBB 2.0.14 Code Changes


These are the Changes from phpBB 2.0.13 to phpBB 2.0.14 summed up into a little Mod. This might be very helpful if you want to update your Board and have installed a bunch of Mods. Then it's normally easier to apply the Code Changes than to install all Mods again.

When you find a 'AFTER, ADD'-Statement, the Code have to be added after the last line quoted in the 'FIND'-Statement.
When you find a 'BEFORE, ADD'-Statement, the Code have to be added before the first line quoted in the 'FIND'-Statement.
When you find a 'REPLACE WITH'-Statement, the Code quoted in the 'FIND'-Statement have to be replaced completely with the quoted Code in the 'REPLACE WITH'-Statement.

After you have finished this tutorial, you have to upload the install/update_to_latest.php file, execute it and then delete it from your webspace.


Furthermore, please remove the file db/oracle.php from your webspace.

admin/admin_styles.php


FIND - Line 78
codeDivStart()

         include($phpbb_root_path. "templates/" . $install_to . "/theme_info.cfg");


REPLACE WITH
codeDivStart()

         include($phpbb_root_path. "templates/" . basename($install_to) . "/theme_info.cfg");



FIND - Line 742
codeDivStart()

         $fp = @fopen($phpbb_root_path . 'templates/' . $template_name . '/theme_info.cfg', 'w');


REPLACE WITH
codeDivStart()

         $fp = @fopen($phpbb_root_path . 'templates/' . basename($template_name) . '/theme_info.cfg', 'w');



admin/page_header_admin.php


FIND - Line 38
codeDivStart()

   $useragent = (isset($_SERVER["HTTP_USER_AGENT"]) ) ? $_SERVER["HTTP_USER_AGENT"] : $HTTP_USER_AGENT;


REPLACE WITH
codeDivStart()

   $useragent = (isset($HTTP_SERVER_VARS['HTTP_USER_AGENT'])) ? $HTTP_SERVER_VARS['HTTP_USER_AGENT'] : getenv('HTTP_USER_AGENT');



admin/page_footer_admin.php


FIND - Line 36
codeDivStart()

   'PHPBB_VERSION' => '2' . $board_config['version'],


REPLACE WITH
codeDivStart()

   'PHPBB_VERSION' => ($userdata['user_level'] == ADMIN && $userdata['user_id'] != ANONYMOUS) ? '2' . $board_config['version'] : '',



db/postgres7.php


FIND - Line 125
codeDivStart()

         $query = preg_replace("/LIMIT ([0-9]+),([ 0-9]+)/", "LIMIT \\2 OFFSET \\1", $query);


AFTER, ADD
codeDivStart()

         $query = preg_replace('#(.*WHERE.*)(username|user_email|ban_email) = \'(.*)\'#ise', "\"\\1LOWER(\\2) = '\" . strtolower('\\3') . \"'\"", $query);



includes/page_header.php


FIND - Line 38
codeDivStart()

   $useragent = (isset($_SERVER["HTTP_USER_AGENT"]) ) ? $_SERVER["HTTP_USER_AGENT"] : $HTTP_USER_AGENT;


REPLACE WITH
codeDivStart()

   $useragent = (isset($HTTP_SERVER_VARS['HTTP_USER_AGENT'])) ? $HTTP_SERVER_VARS['HTTP_USER_AGENT'] : getenv('HTTP_USER_AGENT');



FIND - Line 469
codeDivStart()

if (!empty($_SERVER['SERVER_SOFTWARE']) && strstr($_SERVER['SERVER_SOFTWARE'], 'Apache/2'))


REPLACE WITH
codeDivStart()

if (!empty($HTTP_SERVER_VARS['SERVER_SOFTWARE']) && strstr($HTTP_SERVER_VARS['SERVER_SOFTWARE'], 'Apache/2'))



includes/sessions.php


FIND - Line 53
codeDivStart()

      $session_id = '';
   }



AFTER, ADD
codeDivStart()

   $page_id = (int) $page_id;




FIND - Line 92
codeDivStart()

               // No match; don't login, set as anonymous user
               $login = 0;
               $enable_autologin = 0;
               $user_id = $userdata['user_id'] = ANONYMOUS;


AFTER, ADD
codeDivStart()

            
               $sql = 'SELECT * FROM ' . USERS_TABLE . ' WHERE user_id = ' . ANONYMOUS;
               $result = $db->sql_query($sql);
               $userdata = $db->sql_fetchrow($result);
               $db->sql_freeresult($result);



FIND - Line 105
codeDivStart()

            // Autologin is not set. Don't login, set as anonymous user
            $login = 0;
            $enable_autologin = 0;
            $user_id = $userdata['user_id'] = ANONYMOUS;


AFTER, ADD
codeDivStart()


            $sql = 'SELECT * FROM ' . USERS_TABLE . ' WHERE user_id = ' . ANONYMOUS;
            $result = $db->sql_query($sql);
            $userdata = $db->sql_fetchrow($result);
            $db->sql_freeresult($result);



FIND - Line 244
codeDivStart()

   //
   // Does a session exist?
   //


BEFORE, ADD
codeDivStart()

   $thispage_id = (int) $thispage_id;




modcp.php


FIND - Line 130
codeDivStart()

      message_die(GENERAL_MESSAGE, 'Topic_post_not_exist');
   }
   $topic_row = $db->sql_fetchrow($result);



AFTER, ADD
codeDivStart()

   if (!$topic_row)
   {
      message_die(GENERAL_MESSAGE, 'Topic_post_not_exist');
   }




FIND - Line 150
codeDivStart()

      message_die(GENERAL_MESSAGE, 'Forum_not_exist');
   }
   $topic_row = $db->sql_fetchrow($result);


AFTER, ADD
codeDivStart()


   if (!$topic_row)
   {
      message_die(GENERAL_MESSAGE, 'Forum_not_exist');
   }



privmsg.php


FIND - Line 566
codeDivStart()

   if ( !$board_config['allow_html'] )
    {
      if ( $user_sig != '' && $privmsg['privmsgs_enable_sig'] && $userdata['user_allowhtml'] )


REPLACE WITH
codeDivStart()

   if ( !$board_config['allow_html'] || !$userdata['user_allowhtml'])
   {
      if ( $user_sig != '')



FIND - Line 1531
codeDivStart()

      if ( !$html_on )
      {
         if ( $user_sig != '' || !$userdata['user_allowhtml'] )


REPLACE WITH
codeDivStart()

      if ( !$html_on || !$board_config['allow_html'] || !$userdata['user_allowhtml'] )
      {
         if ( $user_sig != '' )



search.php


FIND - Line 200
codeDivStart()

            $search_author = str_replace('*', '%', trim($search_author));


BEFORE, ADD
codeDivStart()

            if (preg_match('#^[\*%]+$#', trim($search_author)) || preg_match('#^[^\*]{1,2}$#', str_replace(array('*', '%'), '', trim($search_author))))
            {
               $search_author = '';
            }




FIND - Line 269
codeDivStart()


         for($i = 0; $i < count($split_search); $i++)
         {


AFTER, ADD
codeDivStart()

            if (preg_match('#^[\*%]+$#', trim($split_search[$i])) || preg_match('#^[^\*]{1,2}$#', str_replace(array('*', '%'), '', trim($split_search[$i]))))
            {
               $split_search[$i] = '';
               continue;
            }




FIND - Line 416
codeDivStart()

      // Author name search
      //
      if ( $search_author != '' )
      {


AFTER, ADD
codeDivStart()

          if (preg_match('#^[\*%]+$#', trim($search_author)) || preg_match('#^[^\*]{1,2}$#', str_replace(array('*', '%'), '', trim($search_author))))
         {
            $search_author = '';
         }




viewtopic.php


FIND - Line 1052
codeDivStart()

   if ( !$board_config['allow_html'] )
   {
      if ( $user_sig != '' && $userdata['user_allowhtml'] )


REPLACE WITH
codeDivStart()

   if ( !$board_config['allow_html'] || !$userdata['user_allowhtml'])
   {
      if ( $user_sig != '' )



FIND - Line 1122
codeDivStart()

         $user_sig = str_replace('\"', '"', substr(preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "preg_replace(\$orig_word, \$replacement_word, '\\0')", '>' . $user_sig . '<'), 1, -1));
      }

      $message = str_replace('\"', '"', substr(preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "preg_replace(\$orig_word, \$replacement_word, '\\0')", '>' . $message . '<'), 1, -1));


REPLACE WITH
codeDivStart()

         $user_sig = str_replace('\"', '"', substr(@preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "@preg_replace(\$orig_word, \$replacement_word, '\\0')", '>' . $user_sig . '<'), 1, -1));
      }

      $message = str_replace('\"', '"', substr(@preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "@preg_replace(\$orig_word, \$replacement_word, '\\0')", '>' . $message . '<'), 1, -1));



Başa dön  
BLacK



Kayıt: 12 Mart 2005
Mesajlar: 71
Nerden: orion takım yıldızı 17. bölge ana holografik üst , titan

Tarih: 16 Nisan 2005, 12:54    Mesaj konusu:  

En son sürüm en güvenilir ve en iyisidir diye bir felsefe var.
Olympus'a giderken hala devam ediyorlar yeni sürümleri cıkarmaya
bu mesajı görünce şaşırıp kaldım, araştırmaya fırsatım olmadı yaptıgım eklentilerle bir problem oluşturacakmı bir bakayım.@taNGo çok hızlı ilerliyor phpBB hızına yetişemicez mi üstad :)
Başa dön  
taNGo



Kayıt: 23 Haziran 2003
Mesajlar: 2515
Nerden: Geriden

Tarih: 16 Nisan 2005, 15:19    Mesaj konusu:  

eh sanırım bir yerde birleşecek tüm sürümler bende pek anlayamadım o çıkacak bu update olacak felan :)
Başa dön  
BLacK



Kayıt: 12 Mart 2005
Mesajlar: 71
Nerden: orion takım yıldızı 17. bölge ana holografik üst , titan

Tarih: 16 Nisan 2005, 15:36    Mesaj konusu:  

eheh :)
Bu ara ben değiştirdim sürümü
Forum eklediğiniz modlardan sürüm değişikliğinde oluşabilecek bir hata gözükMüyor.
Bence en çok problem yaratabilecek olan Categories hierarchie Mod ve File Attachment Mod vardı . update_to_latest.php'ye baktım da birkaç drop table vardı ama zararı olmadı :)
Çekinenler olur diye böyle söyleyelim istedim sonuçta bir drop table'la neler olabilir :)

phpbbstyles.com da CyberAlien açıklamış daha doğrusu birisi sormuş admin_styles.php değiştiriyoruz bir zararı varmıdır eXtreme Style için diye. yok demiş oda :)



pardon eksik yazmışım
Başa dön  
Google
 
       Türkiye Forum Arşivler Ana Sayfa -> phpBB
1. sayfa (Toplam 1 sayfa)



Powered by phpBB Search Engine Indexer
Powered by phpBB © 2001, 2005 phpBB Group :: FI Theme
:: Tüm saatler GMT +2 Saat

  
eXTReMe Tracker