Tarih: 2007-01-09, 18:23:35 Mesaj konusu: PHPBB Yeni Versiyon
Merhaba Arkadaşlar;
PHPbb Forum Versiyon yükseltme de başarılı olamadım bir kaç MOD kurdum onda da başarılı olamadım...
Örnek:
Kod:
#-----[ AÇ ]---------------------------------------------
#
admin/admin_board.php
#
#-----[ BUL ]---------------------------------------------
# 55. Satır
// Attempt to prevent a common mistake with this value,
// http:// is the protocol and not part of the server name
if ($config_name == 'server_name')
{
$new['server_name'] = str_replace('http://', '', $new['server_name']);
}
#
#-----[ SONRASINA, EKLE ]---------------------------------------------
#
// Attempt to prevent a mistake with this value.
if ($config_name == 'avatar_path')
{
$new['avatar_path'] = trim($new['avatar_path']);
if (strstr($new['avatar_path'], "\0") || !is_dir($phpbb_root_path . $new['avatar_path']) || !is_writable($phpbb_root_path . $new['avatar_path']))
{
$new['avatar_path'] = $default_config['avatar_path'];
}
}
#
Bende şu şekilde yaptım...
Kod:
// Attempt to prevent a common mistake with this value,
// http:// is the protocol and not part of the server name
if ($config_name == 'server_name')
{
$new['server_name'] = str_replace('http://', '', $new['server_name']);
}
// Attempt to prevent a mistake with this value.
if ($config_name == 'avatar_path')
{
$new['avatar_path'] = trim($new['avatar_path']);
if (strstr($new['avatar_path'], "\0") || !is_dir($phpbb_root_path . $new['avatar_path']) || !is_writable($phpbb_root_path . $new['avatar_path']))
{
$new['avatar_path'] = $default_config['avatar_path'];
}
}
Şimdi siteye Avatar Upload edilemiyor fakat dışarıdan link verilebiliyor elbette halen forum 2.0.21 2.0.22 yükseldi şeklinde yazı aktif olmadı..
#
// Attempt to prevent a mistake with this value.
if ($config_name == 'avatar_path')
{
$new['avatar_path'] = trim($new['avatar_path']);
if (strstr($new['avatar_path'], "\0") || !is_dir($phpbb_root_path . $new['avatar_path']) || !is_writable($phpbb_root_path . $new['avatar_path']))
{
$new['avatar_path'] = $default_config['avatar_path'];
}
}
#
işte bu sonrasına ekle dediğinde biz tam olarak ne yapıcaz
Kod:
// Attempt to prevent a common mistake with this value,
// http:// is the protocol and not part of the server name
if ($config_name == 'server_name')
{
$new['server_name'] = str_replace('http://', '', $new['server_name']);
} // Attempt to prevent a mistake with this value.
if ($config_name == 'avatar_path')
{
$new['avatar_path'] = trim($new['avatar_path']);
if (strstr($new['avatar_path'], "\0") || !is_dir($phpbb_root_path . $new['avatar_path']) || !is_writable($phpbb_root_path . $new['avatar_path']))
{
$new['avatar_path'] = $default_config['avatar_path'];
}
}
Sayın moderatorlerim belki biraz uğraş gerektiricek ama şu özellikle üstünden çok zaman geçmiş cevapsız başlıkları silelim bence
neyse ben buna cvp yazim bare :))
arkadaşım bul;
Kod:
$zenon=insrt into bbforumlari valuue('','','emre','data2');
if (maysqul_kuery($zenon)){echo "maysqul başarıyla işlendi";}
sonrasına ekle;
echo "iide bu kodu ne yapmaya çalıştırdın sen şimdi :D";
diyosa sonrasına eklicen. yani;
$zenon=insrt into bbforumlari valuue('','','emre','data2');
if (maysqul_kuery($zenon)){echo "maysqul başarıyla işlendi";}
echo "iide bu kodu ne yapmaya çalıştırdın sen şimdi :D";
he bi de versiyonu db sorgusunu çalıştırdıktan sonra ekliyo benm bildiğim kadarıyla. çünkü geçen eski dosyaları atmama rağmen versiyonum yeni kaldı
Bu forumda yeni başlıklar açamazsınız Bu forumdaki başlıklara cevap veremezsiniz Bu forumdaki mesajlarınızı değiştiremezsiniz Bu forumdaki mesajlarınızı silemezsiniz Bu forumdaki anketlerde oy kullanamazsınız