News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

SMF 1.1.5 ve 1.0.13 çıktı

Started by [SiNaN], April 30, 2008, 11:47:08 PM

Previous topic - Next topic

[SiNaN]

Simple Machines, SMF 1.1.5 sürümünü duyurmaktan gurur duyar.

Bu versiyonda bir takım güvenlik açıkları kapatılıp bazı hatalar giderildi.

Bütün kullanıcılarımızın sistemlerini en kısa zamanda SMF 1.1.5 sürümüne güncellemelerini öneriyoruz. Bu mesaja eklenmiş paketi admin panelinde paket yükleyicisini kullanarak ya da paketin yaptığı değişiklikleri elle uygulayarak güncelleme işlemini yapabilirsiniz.

Bunların dışında, bu versiyonda yapılan değişiklikler aşağıdadır:

  • $topic değişkeninin her zaman doğru atanması.
  • Sesli Captcha için değişkenliğin arttırılması.
  • Memcahe edilmiş versiyonun PHP içine derlenmiş olması gerekliliği.
  • PHP < 4.2.0 için rastgele sayı üretiminin geliştirilmesi – sorun Jessica Hope tarafından bildirildi.
  • Html-tag'ının kullanımıyla alakalı açığın giderilmesi – sorun Jessica Hope tarafından bildirildi.
  • 64-bit systemlerde, CRC fonksiyonunun düzgün çalışmasının sağlanması.
  • Bilgiler bölümünün açık veya kapalı olması durumunun ziyaretçiler için hatırlanmasının çözülmesi.
  • Üyelerin email adresi değişimlerinde adminlere "yeni üye kaydı" emaili gönderilmesi sorununun giderilmesi.

SMF 1.1.4 kullanıcıları: Emin olun, güncellemek daha kolay olamazdı. Hemen forumunuza giriş yapın ve admin paneline girin. Forum sürümünüzü güncellemenize gerektiğine dair bir bilgilendirme ile karşılaşacaksınız. Forumunuzu güncellemek için bu adımları takip edin. Bu paket çoğunlukla herhangi bir modifikasyon, dil paketi veya temaları etkilemez. Bunun yanında, ekteki paketi, admin panelinizdeki paket yükleyicisini kullanarak yükleme gibi bir seçeneğiniz de var.
Eğer bu paket ile güncellemeyi başaramadıysanız lütfen kurulum ve güncelleme dokümanlarını inceleyin.

SMF 1.0.12 kullanıcıları: Sizler için ayrı bir sürüm çıkarıldı: 1.0.13. 1.1.x sürümlerinde olduğu gibi, paketi indirerek admin panelinden güncelleme yapabilirsiniz.

SMF 2.0 beta 3 kullanıcıları: Aynı şey SMF 2.0 beta 3 kullanıcıları için de geçerli. Sizler de admin panelinden indirerek ya da ekteki paketi kullanarak SMF 2.0 beta 3.1 sürümüne güncelleme yapabilirsiniz.

Son olarak, lütfen bu konuyu destek almak için kullanmayın. Sorunlarınızı destek forumlarında belirterek daha hızlı ve net cevap alabilirsiniz.

Teşekkürler,

Simple Machines

Ek: http://www.simplemachines.org/community/index.php?action=dlattach;topic=236816.0;attach=54848

Orjinal konu: http://www.simplemachines.org/community/index.php?topic=236816.0

Elle (Manuel) Kurulum: http://www.simplemachines.org/community/index.php?topic=236826.msg1526380#msg1526380
Former SMF Core Developer | My Mods | SimplePortal

aLi-YK

#1
teşekkürler bilgi için sorunsuz oldu  ;)

L¤яdSèßO

çeviri için teşekkürler. hemen güncellemeleri yaptım

ferdi866

manuel kurulumu olursa sevinicem benim site paket kurulumlarında sorun cıkarıyo

NoPasaran

Hayırlı olsun :)

6-7 ayda bu sürer anlaşıldı ;D
kralkartal.net SMF 2.0.8

melike

adminden paket olarak yükledikten sonra türkçe paketinide upgrade yapmamız gereklimi?

Software

Selam

Bilgi için tşk [SiNaN] 

melike  dediği gibi admin panelden upgrade edildikten sonra dosya upload gerekecek mi ?

[SiNaN]

Dil dosyaları için:

../Themes/default/languages/index.turkish.php

Bul:

// Version: 1.1.2; index

Değiştir:

// Version: 1.1.5; index

Bul:

$forum_copyright = '<a href="http://www.simplemachines.org/" title="Simple Machines Forum" target="_blank">Powered by ' . $forum_version . '</a> |
<a href="http://www.simplemachines.org/about/copyright.php" title="Free Forum Software" target="_blank">SMF &copy; 2006, Simple Machines LLC</a>';


Değiştir:

$forum_copyright = '<a href="http://www.simplemachines.org/" title="Simple Machines Forum" target="_blank">Powered by ' . $forum_version . '</a> |
<a href="http://www.simplemachines.org/about/copyright.php" title="Free Forum Software" target="_blank">SMF &copy; 2006-2008, Simple Machines LLC</a>';


../Themes/default/languages/ModSettings.turkish.php

Bul:

// Version: 1.1; ModSettings

Değiştir:

// Version: 1.1.5; ModSettings

Bul:

$txt['detected_Zend'] = '<b style="color: green">SMF sisteminizde Zend in yüklü olduğunu tespit etti';

$txt['cache_enable'] = 'Önbellekleme Seviyesi';


Değiştir:

$txt['detected_Zend'] = '<b style="color: green">SMF sisteminizde Zend in yüklü olduğunu tespit etti';
$txt['detected_Memcached'] = '<b style="color: green">SMF has detected that your server has Memcached installed.';

$txt['cache_enable'] = 'Önbellekleme Seviyesi';


http://www.siteadresiniz.com/index.php?action=detailedversion linkiyle dosyalarınızın versiyonlarını kontrol edebilirsiniz.
Former SMF Core Developer | My Mods | SimplePortal

mnvgtrap

Bende yaptım sorunsuz kuruldu.Çok teşekkürler bilgilendirme için


GuleSevdali

upradge yapmadı ama kurdu anlamadım gitti :) neyse biz geçişi sağladık
www.muallime.net
Aramadın ki Bulasın.....

Kaderde ne ise olur etme merak,
Nefsine Uyma ;Hakk'ın emrine bak,
Altından ağacın olsa zümrütten yaprak,
Akibet gözünü doyurur bir avuç toprak.
(Anonim)

[SiNaN]

Quote from: GuleSevdali on May 01, 2008, 06:55:04 AM
upradge yapmadı ama kurdu anlamadım gitti :) neyse biz geçişi sağladık

Nasıl bir upgrade bekliyordunuz?

Subs-Package.php hatası alanlar için Compuart paketi yeniledi. Ekteki paketi yeniden indirip kurmayı deneyebilir hata alanlar.
Former SMF Core Developer | My Mods | SimplePortal

GuleSevdali

Compuart paketi derkenSubs-package.php yenisinimi atmak gerek ?
www.muallime.net
Aramadın ki Bulasın.....

Kaderde ne ise olur etme merak,
Nefsine Uyma ;Hakk'ın emrine bak,
Altından ağacın olsa zümrütten yaprak,
Akibet gözünü doyurur bir avuç toprak.
(Anonim)

M.Uzun

#13
bazı dosyalarda hata verdiyse alt tarafı okuyun

Quote from: Hata Verdi Diyenler Okuyun...hata vermiş diyolar evet haklılar bendede verdi ama :) hata veren dosyaları indirin ve üstte versiyon yazıyo ya 3. yada 4.satırda 1.1.2 1.1.3 yada 1.1 RC3 yazıyo :) hata o yüzden diğer herşey sorunsuz da işte sadece o 1.1.2 1.1.3 yada 1.1 RC3 leri 1.1.4 yapın ve öyle tekrar kayıt edip atın ftp ye sonra tekrar kurun ;) hata vermeden kurucak :)

GuleSevdali

ha anladım tşk ettim bende bunları okumadan önce kendim yaptım şimdi upradge yapayım
www.muallime.net
Aramadın ki Bulasın.....

Kaderde ne ise olur etme merak,
Nefsine Uyma ;Hakk'ın emrine bak,
Altından ağacın olsa zümrütten yaprak,
Akibet gözünü doyurur bir avuç toprak.
(Anonim)

GuleSevdali

The upgrader found some old or outdated files.

Please make certain you uploaded the new versions of all the files included in the package.

Click here to try again.
www.muallime.net
Aramadın ki Bulasın.....

Kaderde ne ise olur etme merak,
Nefsine Uyma ;Hakk'ın emrine bak,
Altından ağacın olsa zümrütten yaprak,
Akibet gözünü doyurur bir avuç toprak.
(Anonim)

Yağız...

#16
Manuel kurulumlar:
1.1.4'ten 1.1.5'e:
$boarddir = Anadizin,
$sourcedir = ../Sources/ dizini,
$themedir = ../Themes/default/ dizini,
$languagedir = ../Themes/default/languages/ dizini.

Aranacak Dosya:
$boarddir/index.php
Code (Arayın) Select

* Software Version:           SMF 1.1.4                                           *

Code (Değiştirin) Select

* Software Version:           SMF 1.1.5                                           *

Code (Arayın) Select

$forum_version = 'SMF 1.1.4';

Code (Değiştirin) Select

$forum_version = 'SMF 1.1.5';

Code (Arayın) Select

// Load the settings...

Code (Değiştirin) Select

// Make sure some things simply do not exist.
foreach (array('db_character_set') as $variable)
   if (isset($GLOBALS[$variable]))
      unset($GLOBALS[$variable]);

// Load the settings...

Code (Arayın) Select

// Determine if this is using WAP, WAP2, or imode.  Technically, we should check that wap comes before application/xhtml or text/html, but this doesn't work in practice as much as it should.

Code (Değiştirin) Select

// Seed the random generator for PHP < 4.2.0.
if (@version_compare(PHP_VERSION, '4.2.0') == -1)
   smf_seed_generator();

// Determine if this is using WAP, WAP2, or imode.  Technically, we should check that wap comes before application/xhtml or text/html, but this doesn't work in practice as much as it should.

Aranacak Dosya:
$sourcedir/Admin.php
Code (Arayın) Select

* Software Version:           SMF 1.1                                             *

Code (Değiştirin) Select

* Software Version:           SMF 1.1.5                                           *

Code (Arayın) Select

      if (empty($_SESSION['copy_expire']))
      {
         list ($key, $expires) = explode(',', $modSettings['copy_settings']);
         // Get the expired date.
         $fp = @fsockopen("www.simplemachines.org", 80, $errno, $errstr, 1);
         if ($fp)
         {
            $out = "GET /smf/copyright/check_copyright.php?site=" . base64_encode($boardurl) . "&key=" . $key . "&version=" . base64_encode($forum_version) . " HTTP/1.1 ";
            $out .= "Host: www.simplemachines.orgr ";
            $out .= "Connection: Close ";
            fwrite($fp, $out);

            $return_data = '';
            while (!feof($fp))
               $return_data .= fgets($fp, 128);
            fclose($fp);

            // Get the expire date.
            $return_data = substr($return_data, strpos($return_data, 'STARTCOPY') + 9);
            $return_data = trim(substr($return_data, 0, strpos($return_data, 'ENDCOPY')));

            if ($return_data != 'void')
            {
               list ($_SESSION['copy_expire'], $modSettings['copyright_key']) = explode('|', $return_data);
               $_SESSION['copy_key'] = $key;
               $modSettings['copy_settings'] = $key . ',' . (int) $return_data;
               updateSettings(array('copy_settings' => $modSettings['copy_settings'], 'copyright_key' => $modSettings['copyright_key']));
            }
            else
            {
               $_SESSION['copy_expire'] = '';
               db_query("
                  DELETE FROM {$db_prefix}settings
                  WHERE variable = 'copy_settings'
                     OR variable = 'copyright_key'", __FILE__, __LINE__);
            }
         }
      }

      if ($_SESSION['copy_expire'] && $_SESSION['copy_expire'] > time())
      {
         $context['copyright_expires'] = (int) (($_SESSION['copy_expire'] - time()) / 3600 / 24);
         $context['copyright_key'] = $_SESSION['copy_key'];
      }

Code (Değiştirin) Select

      if (empty($_SESSION['copy_expire']))
      {
         list ($key, $expires) = explode(',', $modSettings['copy_settings']);
         // Get the expired date.
         require_once($sourcedir . '/Subs-Package.php');
         $return_data = fetch_web_data($url = 'http://www.simplemachines.org/smf/copyright/check_copyright.php?site=' . base64_encode($boardurl) . '&key=' . $key . '&version=' . base64_encode($forum_version));

         // Get the expire date.
         $return_data = substr($return_data, strpos($return_data, 'STARTCOPY') + 9);
         $return_data = trim(substr($return_data, 0, strpos($return_data, 'ENDCOPY')));

         if ($return_data != 'void')
         {
            list ($_SESSION['copy_expire'], $copyright_key) = explode('|', $return_data);
            $_SESSION['copy_key'] = $key;
            $copy_settings = $key . ',' . (int) $_SESSION['copy_expire'];
            updateSettings(array('copy_settings' => $copy_settings, 'copyright_key' => $copyright_key));
         }
         else
         {
            $_SESSION['copy_expire'] = '';
            db_query("
               DELETE FROM {$db_prefix}settings
               WHERE variable = 'copy_settings'
                  OR variable = 'copyright_key'", __FILE__, __LINE__);
         }
      }

      if (isset($_SESSION['copy_expire']) && $_SESSION['copy_expire'] > time())
      {
         $context['copyright_expires'] = (int) (($_SESSION['copy_expire'] - time()) / 3600 / 24);
         $context['copyright_key'] = $_SESSION['copy_key'];
      }

Code (Arayın) Select

   if (extension_loaded('apc'))
      $context['current_versions']['apc'] = array('title' => 'Alternative PHP Cache', 'version' => phpversion('apc'));

Code (Değiştirin) Select

   if (extension_loaded('apc'))
      $context['current_versions']['apc'] = array('title' => 'Alternative PHP Cache', 'version' => phpversion('apc'));
   if (function_exists('memcache_set'))
      $context['current_versions']['memcache'] = array('title' => 'Memcached', 'version' => memcache_get_version());

Code (Arayın) Select

      $fp = @fsockopen("www.simplemachines.org", 80, $errno, $errstr);
      if ($fp)
      {
         $out = "GET /smf/copyright/check_copyright.php?site=" . base64_encode($boardurl) . "&key=" . $_POST['copy_code'] . "&version=" . base64_encode($forum_version) . " HTTP/1.1 ";
         $out .= "Host: www.simplemachines.orgr ";
         $out .= "Connection: Close ";
         fwrite($fp, $out);

         $return_data = '';
         while (!feof($fp))
            $return_data .= fgets($fp, 128);
         fclose($fp);

         // Get the data back
         $return_data = substr($return_data, strpos($return_data, 'STARTCOPY') + 9);
         $return_data = trim(substr($return_data, 0, strpos($return_data, 'ENDCOPY')));

         if ($return_data != 'void')
         {
            echo $return_data;
            list ($_SESSION['copy_expire'], $modSettings['copyright_key']) = explode('|', $return_data);
            $_SESSION['copy_key'] = $key;
            $modSettings['copy_settings'] = $key . ',' . (int) $return_data;
            updateSettings(array('copy_settings' => $modSettings['copy_settings'], 'copyright_key' => $modSettings['copyright_key']));
            redirectexit('action=admin');
         }
         else
         {
            fatal_lang_error('copyright_failed');
         }
      }

Code (Değiştirin) Select

      require_once($sourcedir . '/Subs-Package.php');
      $return_data = fetch_web_data('http://www.simplemachines.org/smf/copyright/check_copyright.php?site=' . base64_encode($boardurl) . '&key=' . $_POST['copy_code'] . '&version=' . base64_encode($forum_version));

      // Get the data back
      $return_data = substr($return_data, strpos($return_data, 'STARTCOPY') + 9);
      $return_data = trim(substr($return_data, 0, strpos($return_data, 'ENDCOPY')));

      if ($return_data != 'void')
      {
         list ($_SESSION['copy_expire'], $copyright_key) = explode('|', $return_data);
         $_SESSION['copy_key'] = $_POST['copy_code'];
         $copy_settings = $_POST['copy_code'] . ',' . (int) $_SESSION['copy_expire'];
         updateSettings(array('copy_settings' => $copy_settings, 'copyright_key' => $copyright_key));
         redirectexit('action=admin');
      }
      else
      {
         fatal_lang_error('copyright_failed');
      }

Aranacak Dosya:
$sourcedir/Calendar.php
Code (Arayın) Select

* Software Version:           SMF 1.1                                             *

Code (Değiştirin) Select

* Software Version:           SMF 1.1.5                                           *

Code (Arayın) Select

   // No board?  No topic?!?
   if (!isset($board))
      fatal_lang_error('calendar38', false);
   if (!isset($topic))
      fatal_lang_error('calendar39', false);

Code (Değiştirin) Select

   // No board?  No topic?!?
   if (empty($board))
      fatal_lang_error('calendar38', false);
   if (empty($topic))
      fatal_lang_error('calendar39', false);

Aranacak Dosya:
$sourcedir/Karma.php
Code (Arayın) Select

* Software Version:           SMF 1.1                                             *

Code (Değiştirin) Select

* Software Version:           SMF 1.1.5                                           *

Code (Arayın) Select

   if (isset($topic))

Code (Değiştirin) Select

   if (!empty($topic))

Aranacak Dosya:
$sourcedir/Load.php
Code (Arayın) Select

* Software Version:           SMF 1.1.2                                           *

Code (Değiştirin) Select

* Software Version:           SMF 1.1.5                                           *

Code (Arayın) Select

         session_set_save_handler('sessionOpen', 'sessionClose', 'sessionRead', 'sessionWrite', 'sessionDestroy', 'sessionGC');

Code (Değiştirin) Select

      {
         session_set_save_handler('sessionOpen', 'sessionClose', 'sessionRead', 'sessionWrite', 'sessionDestroy', 'sessionGC');
         @ini_set('session.gc_probability', '1');
      }

Code (Arayın) Select

   if (isset($modSettings['cache_memcached']) && trim($modSettings['cache_memcached']) != '')
   {
      // Grab the memcached server.
      if (!is_resource($memcached))
         get_memcached_server();
      if (!$memcached)
         return;

      // !!! It almost might be best to write null to as many as possible....
      if (!fwrite($memcached, 'set ' . $key . ' 0 ' . $ttl . ' ' . strlen($value) . " " . $value . " "))
      {
         $memcached = fclose($memcached);
         return;
      }

      fread($memcached, 128);
   }

Code (Değiştirin) Select

   if (function_exists('memcache_set') && isset($modSettings['cache_memcached']) && trim($modSettings['cache_memcached']) != '')
   {
      // Not connected yet?
      if (empty($memcached))
         get_memcached_server();
      if (!$memcached)
         return;

      memcache_set($memcached, $key, $value, 0, $ttl);
   }

Code (Arayın) Select

   if (isset($modSettings['cache_memcached']) && trim($modSettings['cache_memcached']) != '')
   {
      // Grab the memcached server.
      if (!is_resource($memcached) && $memcached !== '0')
         get_memcached_server();
      if (!$memcached)
      {
         // '0' means ignore me for the rest of this page view.
         $memcached = '0';
         return null;
      }

      if (!fwrite($memcached, 'get ' . $key . " "))
      {
         $memcached = fclose($memcached);
         return null;
      }

      $response = fgets($memcached);
      if (substr($response, 0, 3) != 'END' && substr($response, 0, 5) != 'VALUE')
      {
         // Bad response, junk time.
         $memcached = fclose($memcached);
         return null;
      }

      if (substr($response, 0, 5) == 'VALUE' && preg_match('~(d+)$~', trim($response), $match) != 0)
         $value = substr(fread($memcached, $match[1] + 2), 0, -2);

      fread($memcached, 5);
   }

Code (Değiştirin) Select

   if (function_exists('memcache_get') && isset($modSettings['cache_memcached']) && trim($modSettings['cache_memcached']) != '')
   {
      // Not connected yet?
      if (empty($memcached))
         get_memcached_server();
      if (!$memcached)
         return;

      $value = memcache_get($memcached, $key);
   }

Code (Arayın) Select

   if (empty($db_persist))
      $memcached = @fsockopen($server[0], empty($server[1]) ? 11211 : $server[1], $err, $err, 0.15);
   else
      $memcached = @pfsockopen($server[0], empty($server[1]) ? 11211 : $server[1], $err, $err, 0.15);

   if (!$memcached && $level > 0)
      get_memcached_server($level - 1);
   elseif ($memcached)
   {
      @socket_set_timeout($memcached, 1);
      @set_file_buffer($memcached, 0);
   }

Code (Değiştirin) Select

   if (empty($db_persist))
      $memcached = memcache_connect($server[0], empty($server[1]) ? 11211 : $server[1]);
   else
      $memcached = memcache_pconnect($server[0], empty($server[1]) ? 11211 : $server[1]);

   if (!$memcached && $level > 0)
      get_memcached_server($level - 1);

Aranacak Dosya:
$sourcedir/ManageNews.php
Code (Arayın) Select

* Software Version:           SMF 1.1.4                                           *

Code (Değiştirin) Select

* Software Version:           SMF 1.1.5                                           *

Code (Arayın) Select

      WHERE emailAddress IN ('" . implode("', '", addslashes__recursive($send_list)) . "')", __FILE__, __LINE__);

Code (Değiştirin) Select

      WHERE emailAddress IN ('" . implode("', '", addslashes__recursive($send_list)) . "')
         AND is_activated = 1", __FILE__, __LINE__);

Aranacak Dosya:
$sourcedir/ManagePermissions.php
Code (Arayın) Select

* Software Version:           SMF 1.1.2                                           *

Code (Değiştirin) Select

* Software Version:           SMF 1.1.5                                           *

Code (Arayın) Select

            WHERE ID_GROUP IN (" . implode(', ', $_POST['group']) . ")
               " . (empty($context['illegal_permissions']) ? '' : ' AND permission NOT IN (' . implode(', ', $context['illegal_permissions']) . ')'), __FILE__, __LINE__);

Code (Değiştirin) Select

            WHERE ID_GROUP IN (" . implode(', ', $_POST['group']) . ")" . (empty($context['illegal_permissions']) ? '' : "
               AND permission NOT IN ('" . implode("', '", $context['illegal_permissions']) . "')"), __FILE__, __LINE__);

Code (Arayın) Select

                  AND permission = '$permission'
                  " . (empty($context['illegal_permissions']) ? '' : ' AND permission NOT IN (' . implode(', ', $context['illegal_permissions']) . ')'), __FILE__, __LINE__);


Code (Değiştirin) Select

                  AND permission = '$permission'" . (empty($context['illegal_permissions']) ? '' : "
                  AND permission NOT IN ('" . implode("', '", $context['illegal_permissions']) . "')"), __FILE__, __LINE__);

Code (Arayın) Select

         WHERE ID_GROUP = $_GET[group]
         " . (empty($context['illegal_permissions']) ? '' : ' AND permission NOT IN (' . implode(', ', $context['illegal_permissions']) . ')'), __FILE__, __LINE__);

Code (Değiştirin) Select

         WHERE ID_GROUP = $_GET[group]" . (empty($context['illegal_permissions']) ? '' : "
            AND permission NOT IN ('" . implode("', '", $context['illegal_permissions']) . "')"), __FILE__, __LINE__);

Code (Arayın) Select

         WHERE ID_GROUP = $group
         " . (empty($context['illegal_permissions']) ? '' : ' AND permission NOT IN (' . implode(', ', $context['illegal_permissions']) . ')'), __FILE__, __LINE__);

Code (Değiştirin) Select

         WHERE ID_GROUP = $group" . (empty($context['illegal_permissions']) ? '' : "
            AND permission NOT IN ('" . implode("', '", $context['illegal_permissions']) . "')"), __FILE__, __LINE__);

Code (Arayın) Select

      WHERE permission IN ('" . implode("', '", $permissions) . "')
      " . (empty($context['illegal_permissions']) ? '' : ' AND permission NOT IN (' . implode(', ', $context['illegal_permissions']) . ')'), __FILE__, __LINE__);

Code (Değiştirin) Select

      WHERE permission IN ('" . implode("', '", $permissions) . "')" . (empty($context['illegal_permissions']) ? '' : "
         AND permission NOT IN ('" . implode("', '", $context['illegal_permissions']) . "')"), __FILE__, __LINE__);

Aranacak Dosya:
$sourcedir/ManageServer.php
Code (Arayın) Select

* Software Version:           SMF 1.1                                             *

Code (Değiştirin) Select

* Software Version:           SMF 1.1.5                                           *

Code (Arayın) Select

   elseif (function_exists('output_cache_put'))
      $detected = 'Zend';
   else
      $detected = 'no_caching';

Code (Değiştirin) Select

   elseif (function_exists('output_cache_put'))
      $detected = 'Zend';
   elseif (function_exists('memcache_set'))
      $detected = 'Memcached';
   else
      $detected = 'no_caching';

Aranacak Dosya:
$sourcedir/PersonalMessage.php
Code (Arayın) Select

* Software Version:           SMF 1.1.4                                           *

Code (Değiştirin) Select

* Software Version:           SMF 1.1.5                                           *

Code (Arayın) Select

   $context['can_send_pm'] = allowedTo('send_pm');

Code (Değiştirin) Select

   $context['can_send_pm'] = allowedTo('pm_send');

Aranacak Dosya:
$sourcedir/Post.php
Code (Arayın) Select

* Software Version:           SMF 1.1.4                                           *

Code (Değiştirin) Select

* Software Version:           SMF 1.1.5                                           *

Code (Arayın) Select

   if (isset($topic))
      getTopic();

Code (Değiştirin) Select

   if (!empty($topic))
      getTopic();

Code (Arayın) Select

      if (isset($topic) && !isset($_REQUEST['msg']))
         fatal_lang_error(1, false);

Code (Değiştirin) Select

      if (!empty($topic) && !isset($_REQUEST['msg']))
         fatal_lang_error(1, false);

Aranacak Dosya:
$sourcedir/Profile.php
Code (Arayın) Select

* Software Version:           SMF 1.1.4                                           *

Code (Değiştirin) Select

* Software Version:           SMF 1.1.5                                           *

Code (Arayın) Select

      if (!empty($_POST['dateRegistered']) && allowedTo('moderate_forum'))

Code (Değiştirin) Select

      if (!empty($_POST['dateRegistered']) && allowedTo('admin_forum'))

Code (Arayın) Select

            'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['display_name'] . '</a>'

Code (Değiştirin) Select

            'link' => empty($row['ID_MEMBER']) ? $row['display_name'] : '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['display_name'] . '</a>'

Aranacak Dosya:
$sourcedir/QueryString.php
Code (Arayın) Select

* Software Version:           SMF 1.1.4                                           *

Code (Değiştirin) Select

* Software Version:           SMF 1.1.5                                           *

Code (Arayın) Select

      if (get_magic_quotes_gpc() != 0 && empty($modSettings['integrate_magic_quotes']))
         $_GET = stripslashes__recursive($_GET);

Code (Değiştirin) Select

      if (@get_magic_quotes_gpc() != 0 && empty($modSettings['integrate_magic_quotes']))
         $_GET = stripslashes__recursive($_GET);

Code (Arayın) Select

   // Clean up after annoying ini settings.  (magic_quotes_gpc might be off...)
   if (get_magic_quotes_gpc() == 0 && empty($modSettings['integrate_magic_quotes']))

Code (Değiştirin) Select

   // Clean up after annoying ini settings.  (magic_quotes_gpc might be off...)
   if (@get_magic_quotes_gpc() == 0 && empty($modSettings['integrate_magic_quotes']))

Code (Arayın) Select

      // Now make sure the online log gets the right number.
      $_GET['topic'] = $topic;
   }

Code (Değiştirin) Select

      // Now make sure the online log gets the right number.
      $_GET['topic'] = $topic;
   }
   else
      $topic = 0;

Aranacak Dosya:
$sourcedir/Recent.php
Code (Arayın) Select

* Software Version:           SMF 1.1                                             *

Code (Değiştirin) Select

* Software Version:           SMF 1.1.5                                           *

Code (Arayın) Select

   // They're deleting something... just skip back to it.
   if (isset($_GET['delete']))
   {
      checkSession('get');

      // Luckily, removeMessage() checks permissions for us.
      require_once($sourcedir . '/RemoveTopic.php');
      removeMessage((int) $_GET['delete']);

      redirectexit('action=recent');
   }

   loadTemplate('Recent');
   $context['page_title'] = $txt[214];

Code (Değiştirin) Select

   loadTemplate('Recent');
   $context['page_title'] = $txt[214];

Aranacak Dosya:
$sourcedir/Register.php
Code (Arayın) Select

* Software Version:           SMF 1.1.2                                           *

Code (Değiştirin) Select

* Software Version:           SMF 1.1.5                                           *

Code (Arayın) Select

   if (!isset($_POST['new_email']))

Code (Değiştirin) Select

   if (!isset($_POST['new_email']) && $row['is_activated'] != 2)

Aranacak Dosya:
$sourcedir/RemoveTopic.php
Code (Arayın) Select

* Software Version:           SMF 1.1                                             *

Code (Değiştirin) Select

* Software Version:           SMF 1.1.5                                           *

Code (Arayın) Select

   $request = db_query("
      SELECT t.ID_MEMBER_STARTED, m.ID_MEMBER, m.subject, m.posterTime

Code (Değiştirin) Select

   // Is $topic set?
   if (empty($topic) && isset($_REQUEST['topic']))
      $topic = (int) $_REQUEST['topic'];

   $request = db_query("
      SELECT t.ID_MEMBER_STARTED, m.ID_MEMBER, m.subject, m.posterTime

Code (Arayın) Select

   if ($full_topic)

Code (Değiştirin) Select

   // We want to redirect back to recent action.
   if (isset($_REQUEST['recent']))
      redirectexit('action=recent');
   elseif ($full_topic)

Aranacak Dosya:
$sourcedir/Search.php
Code (Arayın) Select

* Software Version:           SMF 1.1.4                                           *

Code (Değiştirin) Select

* Software Version:           SMF 1.1.5                                           *

Aranacak Dosya:
$sourcedir/Security.php
Code (Arayın) Select

* Software Version:           SMF 1.1                                             *

Code (Değiştirin) Select

* Software Version:           SMF 1.1.5                                           *

Code (Arayın) Select

   // Load the Login template and language file.
   loadLanguage('Login');
   loadTemplate('Login');

Code (Değiştirin) Select

   // Load the Login template and language file.
   loadLanguage('Login');

   // Are we in wireless mode?
   if (WIRELESS)
      $context['sub_template'] = WIRELESS_PROTOCOL . '_login';
   else
   {
      loadTemplate('Login');
      $context['sub_template'] = 'kick_guest';
   }

Aranacak Dosya:
$sourcedir/Subs-Boards.php
Code (Arayın) Select

* Software Version:           SMF 1.1.4                                           *

Code (Değiştirin) Select

* Software Version:           SMF 1.1.5                                           *

Code (Arayın) Select

         // Do the insert!
         db_query("
            INSERT IGNORE INTO {$db_prefix}board_permissions
               (ID_BOARD, ID_GROUP, permission, addDeny)
            VALUES
               (" . implode('), (', $boardPerms) . ")", __FILE__, __LINE__);

Code (Değiştirin) Select

         if (!empty($boardPerms))
            // Do the insert!
            db_query("
               INSERT IGNORE INTO {$db_prefix}board_permissions
                  (ID_BOARD, ID_GROUP, permission, addDeny)
               VALUES
                  (" . implode('), (', $boardPerms) . ")", __FILE__, __LINE__);

Aranacak Dosya:
$sourcedir/Subs-Compat.php
Code (Arayın) Select

* Software Version:           SMF 1.1.2                                           *

Code (Değiştirin) Select

* Software Version:           SMF 1.1.5                                           *

Code (Arayın) Select

if (@version_compare(PHP_VERSION, '4.2.0') == -1)
   srand(time());

if (!function_exists('md5_file'))

Code (Değiştirin) Select

if (!function_exists('md5_file'))

Code (Arayın) Select

   if (!function_exists('sha1'))
   {
      function sha1($str)
      {
         return sha1_smf($str);
      }
   }
}

Code (Değiştirin) Select

   if (!function_exists('sha1'))
   {
      function sha1($str)
      {
         return sha1_smf($str);
      }
   }
}

// Make sure random means random.
if (@version_compare(PHP_VERSION, '4.2.0') == -1)
{
   function smf_seed_generator()
   {
      global $modSettings;

      if (empty($modSettings['rand_seed']))
      {
         $modSettings['rand_seed'] = microtime() * 1000000;
         updateSettings(array('rand_seed' => $modSettings['rand_seed']));
      }
      $seed = ($modSettings['rand_seed'] + ((double) microtime() * 1000003)) & 0x7fffffff;
      srand($seed);
      // Change the seed?
      if (rand(1, 250) == 69)
         updateSettings(array('rand_seed' => rand()));
   }
}

Aranacak Dosya:
$sourcedir/Subs-Graphics.php
Code (Arayın) Select

* Software Version:           SMF 1.1.2                                           *

Code (Değiştirin) Select

* Software Version:           SMF 1.1.5                                           *

Code (Arayın) Select

      $tmp = 'IHDR' . pack('N', (int) $this->header->m_nWidth) . pack('N', (int) $this->header->m_nHeight) . "���";
      $out .= $tmp . pack('N', crc32($tmp));

Code (Değiştirin) Select

      $tmp = 'IHDR' . pack('N', (int) $this->header->m_nWidth) . pack('N', (int) $this->header->m_nHeight) . "���";
      $out .= $tmp . pack('N', smf_crc32($tmp));

Code (Arayın) Select

         $tmp = 'PLTE' . $pal;
         $out .= $tmp . pack('N', crc32($tmp));

Code (Değiştirin) Select

         $tmp = 'PLTE' . $pal;
         $out .= $tmp . pack('N', smf_crc32($tmp));

Code (Arayın) Select

         $out .= $tmp . pack('N', crc32($tmp));
      }

      // Here's the data itself!
      $out .= pack('N', strlen($bmp));
      $tmp = 'IDAT' . $bmp;
      $out .= $tmp . pack('N', crc32($tmp));

Code (Değiştirin) Select

         $out .= $tmp . pack('N', smf_crc32($tmp));
      }

      // Here's the data itself!
      $out .= pack('N', strlen($bmp));
      $tmp = 'IDAT' . $bmp;
      $out .= $tmp . pack('N', smf_crc32($tmp));

Code (Arayın) Select

   // Nothing more to come.
   die();
}

Code (Değiştirin) Select

   // Nothing more to come.
   die();
}

// crc32 doesn't work as expected on 64-bit functions - make our own.
// PHP: crc32 - Manual
if (!function_exists('smf_crc32'))
{
   function smf_crc32($number)
   {
      $crc = crc32($number);
   
      if($crc & 0x80000000){
         $crc ^= 0xffffffff;
         $crc += 1;
         $crc = -$crc;
      }
   
      return $crc;
   }
}

Aranacak Dosya:
$sourcedir/Subs-Members.php
Code (Arayın) Select

* Software Version:           SMF 1.1.2                                           *

Code (Değiştirin) Select

* Software Version:           SMF 1.1.5                                           *

Code (Arayın) Select

         SET additionalGroups = IF(additionalGroups = '', '$group', CONCAT(additionalGroups, ',$group')))


Code (Değiştirin) Select

         SET additionalGroups = IF(additionalGroups = '', '$group', CONCAT(additionalGroups, ',$group'))

Aranacak Dosya:
$sourcedir/Subs-Package.php
Code (Arayın) Select

* Software Version:           SMF 1.1.2                                           *

Code (Değiştirin) Select

* Software Version:           SMF 1.1.5                                           *

Code (Arayın) Select

   if ($crc['crc32'] != crc32($data))

Code (Değiştirin) Select

   if ($crc['crc32'] != smf_crc32($data))

Code (Arayın) Select

      fclose($this->connection);

      return true;
   }
}

Code (Değiştirin) Select

      fclose($this->connection);

      return true;
   }
}

// crc32 doesn't work as expected on 64-bit functions - make our own.
// PHP: crc32 - Manual
if (!function_exists('smf_crc32'))
{
   function smf_crc32($number)
   {
      $crc = crc32($number);
   
      if($crc & 0x80000000){
         $crc ^= 0xffffffff;
         $crc += 1;
         $crc = -$crc;
      }
   
      return $crc;
   }
}

Code (Arayın) Select

   function _to_cdata($data)
   {
      // Match all of the CDATA tags.
      preg_match_all('/<![CDATA[(.*?)]]>/s', $data, $match, PREG_SET_ORDER);

      // Replace them with htmlentities'd versions.
      foreach ($match as $m)
         $data = str_replace($m[0], htmlentities($m[1], ENT_QUOTES), $data);

      return $data;
   }

Code (Değiştirin) Select

   function _to_cdata($data)
   {
      $inCdata = $inComment = false;
      $output = '';

      $parts = preg_split('~(<![CDATA[|]]>|<!--|-->)~', $data, -1, PREG_SPLIT_DELIM_CAPTURE);
      foreach ($parts as $part)
      {
         // Handle XML comments.
         if (!$inCdata && $part === '<!--')
            $inComment = true;
         if ($inComment && $part === '-->')
            $inComment = false;
         elseif ($inComment)
            continue;

         // Handle Cdata blocks.
         elseif (!$inComment && $part === '<![CDATA[')
            $inCdata = true;
         elseif ($inCdata && $part === ']]>')
            $inCdata = false;
         elseif ($inCdata)
            $output .= htmlentities($part, ENT_QUOTES);

         // Everything else is kept as is.
         else
            $output .= $part;
      }

      return $output;
   }

Aranacak Dosya:
$sourcedir/Subs-Post.php
Code (Arayın) Select

* Software Version:           SMF 1.1.4                                           *

Code (Değiştirin) Select

* Software Version:           SMF 1.1.5                                           *

Code (Arayın) Select

         if (!$previewing)
         {
            if (allowedTo('admin_forum'))
               $parts[$i] = preg_replace('~[html](.+?)[/html]~ise', ''[html]' . strtr(un_htmlspecialchars('$1'), array(" " => '', '  ' => '  ')) . '[/html]'', $parts[$i]);
            // We should edit them out, or else if an admin edits the message they will get shown...
            else
               $parts[$i] = preg_replace('~[[/]?html]~i', '', $parts[$i]);

Code (Değiştirin) Select

         if (!$previewing && strpos($parts[$i], '[html]') !== false)
         {
            if (allowedTo('admin_forum'))
               $parts[$i] = preg_replace('~[html](.+?)[/html]~ise', ''[html]' . strtr(un_htmlspecialchars('$1'), array(" " => '', '  ' => '  ')) . '[/html]'', $parts[$i]);
            // We should edit them out, or else if an admin edits the message they will get shown...
            else
            {
               while (strpos($parts[$i], '[html]') !== false)
                  $parts[$i] = preg_replace('~[[/]?html]~i', '', $parts[$i]);
            }

Aranacak Dosya:
$sourcedir/Subs-Sound.php
Code (Arayın) Select

* Software Version:           SMF 1.1                                             *

Code (Değiştirin) Select

* Software Version:           SMF 1.1.5                                           *

Code (Arayın) Select

   global $settings, $user_info;

Code (Değiştirin) Select

   global $settings, $user_info, $context;

   // Allow max 2 requests per 20 seconds.
   if (($ip = cache_get_data('wave_file/' . $user_info['ip'], 20)) > 2 || ($ip2 = cache_get_data('wave_file/' . $user_info['ip2'], 20)) > 2)
      die(header('HTTP/1.1 400 Bad Request'));
   cache_put_data('wave_file/' . $user_info['ip'], $ip ? $ip + 1 : 1, 20);
   if (!empty($user_info['ip2']) && $user_info['ip2'] != $user_info['ip'])
      cache_put_data('wave_file/' . $user_info['ip2'], $ip2 ? $ip2 + 1 : 1, 20);

   // Fixate randomization for this word.
   srand(end(unpack('n', md5($word . session_id()))));

Code (Arayın) Select

      $sound_word .= substr($sound_letter, strpos($sound_letter, 'data') + . str_repeat(chr(0x80), rand(700, 710) *;
   }

   // The .wav header.
   $sound_header = array(
      0x10,   0x00, 0x00,   0x00,   0x01,   0x00,   0x01,   0x00,
      0x40,   0x1F,   0x00,   0x00,   0x40,   0x1F,   0x00,   0x00,
      0x01, 0x00, 0x08, 0x00, 0x64, 0x61, 0x74, 0x61,
   );


   $data_size = strlen($sound_word);
   $file_size = $data_size + 0x24;

   // Add a little randomness.
   for ($i = 0; $i < $data_size; $i += rand(1, 10))
      $sound_word{$i} = chr(ord($sound_word{$i}) + rand(-1, 1));

   // Output the wav.
   header('Content-type: audio/x-wav');
   header('Content-Length: ' . $file_size);
   echo 'RIFF', chr($file_size & 0xFF), chr(($file_size & 0xFF00) >>, chr(($file_size & 0xFF0000) >> 16), chr(($file_size & 0xFF000000) >> 24), 'WAVEfmt ';
   foreach ($sound_header as $char)
      echo chr($char);
   echo chr($data_size & 0xFF), chr(($data_size & 0xFF00) >>, chr(($data_size & 0xFF0000) >> 16), chr(($data_size & 0xFF000000) >> 24), $sound_word;

Code (Değiştirin) Select


      $sound_letter = substr($sound_letter, strpos($sound_letter, 'data') +;
      switch ($word{$i} === 's' ? 0 : rand(0, 2))
      {
         case 0:
            for ($j = 0, $n = strlen($sound_letter); $j < $n; $j++)
               for ($k = 0, $m = round(rand(15, 25) / 10); $k < $m; $k++)
                  $sound_word .= $word{$i} === 's' ? $sound_letter{$j} : chr(rand(max(ord($sound_letter{$j}) - 1, 0x00), min(ord($sound_letter{$j}) + 1, 0xFF)));
         break;

         case 1:
            for ($j = 0, $n = strlen($sound_letter) - 1; $j < $n; $j += 2)
               $sound_word .= (rand(0, 3) == 0 ? '' : $sound_letter{$j}) . (rand(0, 3) === 0 ? $sound_letter{$j + 1} : $sound_letter{$j}) . (rand(0, 3) === 0 ? $sound_letter{$j} : $sound_letter{$j + 1})  . $sound_letter{$j + 1} . (rand(0, 3) == 0 ? $sound_letter{$j + 1} : '');
            $sound_word .= str_repeat($sound_letter{$n}, 2);
         break;

         case 2:
            $shift = 0;
            for ($j = 0, $n = strlen($sound_letter); $j < $n; $j++)
            {
               if (rand(0, 10) === 0)
                  $shift += rand(-3, 3);
               for ($k = 0, $m = round(rand(15, 25) / 10); $k < $m; $k++)
                  $sound_word .= chr(min(max(ord($sound_letter{$j}) + $shift, 0x00), 0xFF));
            }
         break;

      }

      $sound_word .= str_repeat(chr(0x80), rand(10000, 10500));
   }

   $data_size = strlen($sound_word);
   $file_size = $data_size + 0x24;
   $sample_rate = 16000;

   // Disable compression.
   ob_end_clean();
   header('Content-Encoding: none');

   // Output the wav.
   header('Content-type: audio/x-wav');
   header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 525600 * 60) . ' GMT');
   header('Content-Length: ' . ($file_size + 0x08));

   echo pack('nnVnnnnnnnnVVnnnnV', 0x5249, 0x4646, $file_size, 0x5741, 0x5645, 0x666D, 0x7420, 0x1000, 0x0000, 0x0100, 0x0100, $sample_rate, $sample_rate, 0x0100, 0x0800, 0x6461, 0x7461, $data_size), $sound_word;

Aranacak Dosya:
$sourcedir/Subs.php
Code (Arayın) Select

* Software Version:           SMF 1.1.4                                           *

Code (Değiştirin) Select

* Software Version:           SMF 1.1.5                                           *

Code (Arayın) Select

   if (isset($data['posts']))
      $data['posts'] = 'IF(' . $data['posts'] . ' < 0, 0, ' . $data['posts'] . ')';
   if (isset($data['instantMessages']))
      $data['instantMessages'] = 'IF(' . $data['instantMessages'] . ' < 0, 0, ' . $data['instantMessages'] . ')';
   if (isset($data['unreadMessages']))
      $data['unreadMessages'] = 'IF(' . $data['unreadMessages'] . ' < 0, 0, ' . $data['unreadMessages'] . ')';

Code (Değiştirin) Select

   foreach(array('posts', 'instantMessages', 'unreadMessages') as $type)
      if (isset($data[$type]) && preg_match('~^' . $type . ' - ([d]+)~', $data[$type], $match) === 1)
         $data[$type] = 'CASE WHEN ' . $type . ' <= ' . $match[1] . ' THEN 0 ELSE ' . $data[$type] . ' END';

Aranacak Dosya:
$themedir/index.template.php
Code (Arayın) Select

// Version: 1.1; index

Code (Değiştirin) Select

// Version: 1.1.5; index

Code (Arayın) Select

   if ($context['user']['is_guest'])
      $options['collapse_header'] = !empty($_COOKIE['upshrink']);

Code (Değiştirin) Select

   if ($context['user']['is_guest'])
   {
      $options['collapse_header'] = !empty($_COOKIE['upshrink']);
      $options['collapse_header_ic'] = !empty($_COOKIE['upshrinkIC']);
   }

Aranacak Dosya:
$themedir/Post.template.php
Code (Arayın) Select

// Version: 1.1; Post

Code (Değiştirin) Select

// Version: 1.1.5; Post

Code (Arayın) Select

               <td class="windowbg" width="100%">
                  <div id="preview_body" class="post">', empty($context['preview_message']) ? '' : $context['preview_message'], '</div>

Code (Değiştirin) Select

               <td class="post" width="100%" id="preview_body">
                  ', empty($context['preview_message']) ? str_repeat('<br />', 5) : $context['preview_message'], '

Devamı aşağıda.

Yağız...

#17
Devamı burada:
Aranacak Dosya:
$themedir/Recent.template.php
Code (Arayın) Select

// Version: 1.1; Recent

Code (Değiştirin) Select

// Version: 1.1.5; Recent

Code (Arayın) Select

            $button_set['delete'] = array('text' => 31, 'image' => 'delete.gif', 'lang' => true, 'custom' => 'onclick="return confirm('' . $txt[154] . '?');"', 'url' => $scripturl . '?action=recent;delete=' . $post['id'] . ';sesc=' . $context['session_id']);

Code (Değiştirin) Select

            $button_set['delete'] = array('text' => 31, 'image' => 'delete.gif', 'lang' => true, 'custom' => 'onclick="return confirm('' . $txt[154] . '?');"', 'url' => $scripturl . '?action=deletemsg2;msg=' . $post['id'] . ';topic=' . $post['topic'] . ';recent;sesc=' . $context['session_id']);

Aranacak Dosya:
$themedir/Register.template.php
Code (Arayın) Select

// Version: 1.1.2; Register

Code (Değiştirin) Select

// Version: 1.1.5; Register

Code (Arayın) Select

                        <td width="40%" align="top">

Code (Değiştirin) Select

                        <td width="40%" valign="top">

Aranacak Dosya:
$themedir/style.css
Code (Arayın) Select

.windowbg
{

Code (Değiştirin) Select

.windowbg, #preview_body
{

[SiNaN]

Quote from: M.Uzun on May 01, 2008, 07:01:38 AM
bazı dosyalarda hata verdiyse alt tarafı okuyun

Quote from: Hata Verdi Diyenler Okuyun...hata vermiş diyolar evet haklılar bendede verdi ama :) hata veren dosyaları indirin ve üstte versiyon yazıyo ya 3. yada 4.satırda 1.1.2 1.1.3 yada 1.1 RC3 yazıyo :) hata o yüzden diğer herşey sorunsuz da işte sadece o 1.1.2 1.1.3 yada 1.1 RC3 leri 1.1.4 yapın ve öyle tekrar kayıt edip atın ftp ye sonra tekrar kurun ;) hata vermeden kurucak :)

Değişiklikler sadece onlar değil. Başka değişiklikler de var.

Hatasız kuranların tekrar birşey yapmasına gerek yok.

Yağız, teşekkürler ama en sonda ufak bir hata var.

//Edit: Düzeltmişsin.
Former SMF Core Developer | My Mods | SimplePortal

Fabulox

2.0 Beta 3 Puplic Kararlı sürümünü beklerken 1.1.5 i çıkardılar.1.1.5 i Çıkaracaktın madem 2.0 i nie çıkardın be kardeşim.. Dimi Ama ;)

Advertisement: