MyBB Resmi Türkçe Destek Sitesi

Tam Versiyon: 1.1.7 yi 1.1.8 e yükseltmek
Şu anda tam olmayan bir versiyonun içeriğine bakıyorsunuz. Tam versiyona bakınız.
orjinal sayfası
http://community.mybboard.net/showthread.php?tid=11697

ekteki dosyayı atınız yada açıklamayı tam olarak yapacağım şimdi 1 sn
son olarakta 1.1.7 den 1.1.8 e manuel olarak geçmeyi gösteriyorum
bunları yapmadan önce mutlaka yedeklerinizi alınız
tüm paylaşımlar bana aittir hiç bir yerden alıntı değildir


--------------------
1. inc/functions_upload.php
--------------------

Bul:
--
PHP Kodu:
// Check if this is a valid image or not
    
$img_dimensions = @getimagesize($mybb->settings['avataruploadpath']."/".$filename); 
--

Altına Ekle:
--
PHP Kodu:
// Check a list of known MIME types to establish what kind of avatar we're uploading
    
switch(strtolower($avatar['type']))
    {
        case 
"image/gif":
            
$img_type =  1;
            break;
        case 
"image/jpeg":
        case 
"image/x-jpeg":
        case 
"image/pjpeg":
            
$img_type 2;
            break;
        case 
"image/png":
        case 
"image/x-png":
            
$img_type 3;
            break;
        default:
            
$img_type 0;
    }
    
    
// Check if the uploaded file type matches the correct image type (returned by getimagesize)
    
if($img_dimensions[2] != $img_type || $img_type == 0)
    {
        @
unlink($mybb->settings['avataruploadpath']."/".$filename);
        
$ret['error'] = $lang->error_uploadfailed;
        return 
$ret;        
    } 
--

Bul:
--
PHP Kodu:
// Alls well that ends well? Lets generate a thumbnail (if image) and insert it all in to the database
    
if($ext == "gif" || $ext == "png" || $ext == "jpg" || $ext == "jpeg" || $ext == "jpe")
    { 
--

Altına Ekle:
--
PHP Kodu:
// Check a list of known MIME types to establish what kind of image we're uploading
        
switch(strtolower($file['type']))
        {
            case 
"image/gif":
                
$img_type =  1;
                break;
            case 
"image/jpeg":
            case 
"image/x-jpeg":
            case 
"image/pjpeg":
                
$img_type 2;
                break;
            case 
"image/png":
            case 
"image/x-png":
                
$img_type 3;
                break;
            default:
                
$img_type 0;
        }

        
// Check if the uploaded file type matches the correct image type (returned by getimagesize)
        
$img_dimensions = @getimagesize($mybb->settings['uploadspath']."/".$filename);
        if(
$img_dimensions[2] != $img_type)
        {
            @
unlink($mybb->settings['uploadspath']."/".$filename);
            
$ret['error'] = $lang->error_uploadfailed;
            return 
$ret;        
        } 
--

--------------------
2. inc/functions_post.php
--------------------

Bul:
--
PHP Kodu:
$fullurl $url;
    
// attempt to make a bit of sense out of their url if they dont type it properly
    
if(!preg_match("#[a-z0-9]+://#i"$fullurl))
    {
        
$fullurl "http://".$fullurl;
    } 
--

Değiştir:
--
PHP Kodu:
// attempt to make a bit of sense out of their url if they dont type it properly
    
if(!preg_match("#[a-z0-9]+://#i"$url))
    {
        
$url "http://".$url;
    }
    
$fullurl $url
--

--------------------
3. admin/global.php
--------------------

Bul:
--
PHP Kodu:
echo "<form action=\"$_SERVER[PHP_SELF]\" method=\"post\" name=\"loginform\">\n"
--

Değiştir:
--
PHP Kodu:
echo "<form action=\"".htmlspecialchars_uni($_SERVER['PHP_SELF'])."\" method=\"post\" name=\"loginform\">\n"
--

--------------------
4. inc/functions.php (Version number change)
--------------------

Bul:
--
PHP Kodu:
$mybboard['internalver'] = "1.1.7";
$mybboard['vercode'] = "117"
--

Değiştir:
--
PHP Kodu:
$mybboard['internalver'] = "1.1.8";
$mybboard['vercode'] = "118"
--

Hepsi bu kadar
artık 1.1.8 desiniz
Teşekkürler Ama Kim Kullanırki 1.1.x i :D
Mantıken plung-in ve diğer eklentileriniz ile ayar sayfaları hariç bulunduğunuz versiyonun tüm dosyalarını 1.2.9 dosyaları ile değiştirin sonra install/upgrade.php çalıştırın kafadan 1.2.8'e geçin gitsin :D
ya kim kullanır demişsinizde ben bunu yayınladığımda daha 1.2 yeni çıkmıştı =)
Referans URL