Assembla home | Assembla project page
 

Changeset 8

Show
Ignore:
Timestamp:
07/08/08 03:43:58 (5 months ago)
Author:
netopsiyon
Message:

Shout Box içindeki bazı hatalar düzeltildi.
Avatarlar şu anda görüntülenebiliyor.
Yönetici error.log dosyalarında USERS_TABLE bulunamadı hatası verdiren satırlar özellikle düzeltildi .
Bazı mod ve modüllerin içinde dizin adı yazılırken hata yapılmıştı bu hatalar da düzeltildi.
Hata dizin adının aşağıdaki şekilde girilmesinden kaynaklanıyordu. Aşağıdaki şekilde düzeltildi.
'/modules/i' => '/modules/'

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • mods/Arcade v3.0.2/contrib/Arcade_Games2.0RC1/html/modules/Arcade_Games/index.php

    r7 r8  
    9797} 
    9898 
    99 define('NUKE_BASE_MODULES', preg_replace('/modules/i', '', dirname(dirname(__FILE__)))); 
     99define('NUKE_BASE_MODULES', preg_replace('/modules/', '', dirname(dirname(__FILE__)))); 
    100100 
    101101require_once(NUKE_BASE_MODULES.'mainfile.php'); 
  • mods/Arcade v3.0.2/contrib/Arcade_TweaksRC2/html/modules/Arcade_Tweaks/index.php

    r7 r8  
    5858} 
    5959 
    60 define('NUKE_BASE_MODULES', preg_replace('/modules/i', '', dirname(dirname(__FILE__)))); 
     60define('NUKE_BASE_MODULES', preg_replace('/modules/', '', dirname(dirname(__FILE__)))); 
    6161 
    6262require_once(NUKE_BASE_MODULES.'mainfile.php'); 
  • mods/Arcade v3.0.2/contrib/Dynamic_page_titles/html/modules/Forums/nukebb.php

    r7 r8  
    5757global $db, $prefix, $phpbb_root_path, $nuke_root_path, $nuke_file_path, $phpbb_root_dir, $module_name, $name, $file; 
    5858 
    59 define('NUKE_BASE_MODULES', preg_replace('/modules/i', '', dirname(dirname(__FILE__)))); 
     59define('NUKE_BASE_MODULES', preg_replace('/modules/', '', dirname(dirname(__FILE__)))); 
    6060 
    6161require_once(NUKE_BASE_MODULES.'mainfile.php'); 
  • mods/ForumNews Advance v3.1/html/modules/ForumNews/print.php

    r7 r8  
    2525} 
    2626 
    27 define('NUKE_BASE_MODULES', preg_replace('/modules/i', '', dirname(dirname(__FILE__)))); 
     27define('NUKE_BASE_MODULES', preg_replace('/modules/', '', dirname(dirname(__FILE__)))); 
    2828 
    2929require_once(NUKE_BASE_MODULES.'mainfile.php'); 
  • mods/ImageShack Image Uploader/html/modules/ImageShack/index.php

    r7 r8  
    1313} 
    1414 
    15 define('NUKE_BASE_MODULES', preg_replace('/modules/i', '', dirname(dirname(__FILE__)))); 
     15define('NUKE_BASE_MODULES', preg_replace('/modules/', '', dirname(dirname(__FILE__)))); 
    1616 
    1717require_once(NUKE_BASE_MODULES.'mainfile.php'); 
  • modules/Enhanced Journal 2.0.1/html/modules/Journal/add.php

    r7 r8  
    4949} 
    5050 
    51 define('NUKE_BASE_MODULES', preg_replace('/modules/i', '', dirname(dirname(__FILE__)))); 
     51define('NUKE_BASE_MODULES', preg_replace('/modules/', '', dirname(dirname(__FILE__)))); 
    5252 
    5353    require_once(NUKE_BASE_MODULES.'mainfile.php'); 
  • modules/Shout Box Evo 8.6.5/html/modules/Shout_Box/admin/case.php

    r7 r8  
    2222 
    2323if (!defined('ADMIN_FILE')) { 
    24    die ("Illegal File Access"); 
     24   die ("Kurald�sya Eri�imi Reddedildi"); 
    2525} 
    2626 
  • modules/Shout Box Evo 8.6.5/html/modules/Shout_Box/admin/index.php

    r7 r8  
    2727 
    2828if (!defined('ADMIN_FILE')) { 
    29    die ("Illegal File Access"); 
     29   die ("Kuraldışı Dosya Erişimi Reddedildi"); 
    3030} 
    3131 
     
    3333$module_name = basename(dirname(dirname(__FILE__))); 
    3434if (!is_mod_admin($module_name)) { 
    35     die("Eriim Reddedildi"); 
     35    die("Erişim Reddedildi"); 
    3636} 
    3737 
     
    4141    include_once(NUKE_MODULES_DIR.$module_name.'/lang-admin/lang-'.$currentlang.'.php'); 
    4242} else { 
    43     include_once(NUKE_MODULES_DIR.$module_name.'/lang-admin/lang-english.php'); 
     43    include_once(NUKE_MODULES_DIR.$module_name.'/lang-admin/lang-turkish.php'); 
    4444} 
    4545 
     
    239239 
    240240        // check to see if nickname is a user in the DB 
    241         $sql = "SELECT * FROM `"._USERS_TABLE."` WHERE `username`='".$shout['name']."'"; 
     241        // $sql = "SELECT * FROM `"._USERS_TABLE."` WHERE `username`='".$shout['name']."'"; 
     242        $sql = "SELECT * FROM ".$prefix."_users WHERE `username`='".$shout['name']."'"; 
     243 
    242244        $nameresult2 = $db->sql_query($sql); 
    243245        $row = $db->sql_fetchrow($nameresult2); 
     
    816818    $filename = "modules/$module_name/index.php"; 
    817819    if (file_exists($filename) != TRUE) { $SBhealthCount = 2; } 
    818     $filename = "modules/$module_name/language/lang-english.php"; 
     820    $filename = "modules/$module_name/language/lang-turkish.php"; 
    819821    if (file_exists($filename) != TRUE) { $SBhealthCount = 2; } 
    820822    $filename = "blocks/block-$module_name.php"; 
     
    917919    $filename = "modules/$module_name/index.php"; 
    918920    if (file_exists($filename) != TRUE) { echo "<p class=\"content\"><strong>Missing critical file:</strong> $filename&nbsp;&nbsp;<strong>Recommendation:</strong> This file contains the Shout Box shout history. Without it, half of the Shout Box features are unavailable for use by the people on your website. You can obtain this file from the Shout Box installation zip file.</p>"; } 
    919     $filename = "modules/$module_name/language/lang-english.php"; 
    920     if (file_exists($filename) != TRUE) { echo "<p class=\"content\"><strong>Missing critical file:</strong> $filename&nbsp;&nbsp;<strong>Recommendation:</strong> This file contains the Shout Box shout history english language definitions. Even if you are not using them at this time, in the future, you may go multi-lingual. You can obtain this file from the Shout Box installation zip file.</p>"; } 
     921    $filename = "modules/$module_name/language/lang-turkish.php"; 
     922    if (file_exists($filename) != TRUE) { echo "<p class=\"content\"><strong>Missing critical file:</strong> $filename&nbsp;&nbsp;<strong>Recommendation:</strong> This file contains the Shout Box shout history turkish language definitions. Even if you are not using them at this time, in the future, you may go multi-lingual. You can obtain this file from the Shout Box installation zip file.</p>"; } 
    921923    $filename = "blocks/block-$module_name.php"; 
    922924    if (file_exists($filename) != TRUE) { echo "<p class=\"content\"><strong>Missing critical file:</strong> $filename&nbsp;&nbsp;<strong>Recommendation:</strong> This file is the core of the Shout Box. Without it, the users on your site will not be able to shout. You can obtain this file from the Shout Box installation zip file.</p>"; } 
     
    973975    $numrowsCheck = $db->sql_numrows($resultCheck); 
    974976    if ($numrowsCheck != 1) { 
    975         echo "<p class=\"content\"><strong>Shout Box module not added:</strong> $module_name.php&nbsp;&nbsp;<strong>Recommendation:</strong> You have not added the Shout Box module into PHP-Nuke. Upload the files into the modules directory. You can obtain the files from the Shout Box installation zip file. Once they are uploaded, Click the Modules icon in PHP-Nuke administration. In the Functions column and Shout Box row, choose 'Activate'. In the Functions column and Shout Box row, choose 'Edit'. In the following page, set 'Who can view this' as 'All Visitors', and click the 'Deklikleri Kaydet' button.</p>"; 
     977        echo "<p class=\"content\"><strong>Shout Box module not added:</strong> $module_name.php&nbsp;&nbsp;<strong>Recommendation:</strong> You have not added the Shout Box module into PHP-Nuke. Upload the files into the modules directory. You can obtain the files from the Shout Box installation zip file. Once they are uploaded, Click the Modules icon in PHP-Nuke administration. In the Functions column and Shout Box row, choose 'Activate'. In the Functions column and Shout Box row, choose 'Edit'. In the following page, set 'Who can view this' as 'All Visitors', and click the 'Değişiklikleri Kaydet' button.</p>"; 
    976978    } 
    977979    $rowCheck = $db->sql_fetchrow($resultCheck); 
     
    980982    } 
    981983    if (($rowCheck['view'] != 0) AND ($rowCheck['view'] != 1)) { 
    982         echo "<p class=\"content\"><strong>Shout Box module not publicly viewable:</strong> block-$module_name.php&nbsp;&nbsp;<strong>Recommendation:</strong> Click the Modules icon in PHP-Nuke administration. In the Functions column and Shout Box row, choose 'Edit'. In the following page, set 'Who can view this' as 'All Visitors', and click the 'Deklikleri Kaydet' button.</p>"; 
     984        echo "<p class=\"content\"><strong>Shout Box module not publicly viewable:</strong> block-$module_name.php&nbsp;&nbsp;<strong>Recommendation:</strong> Click the Modules icon in PHP-Nuke administration. In the Functions column and Shout Box row, choose 'Edit'. In the following page, set 'Who can view this' as 'All Visitors', and click the 'Değişiklikleri Kaydet' button.</p>"; 
    983985    } 
    984986 
  • modules/Shout Box Evo 8.6.5/html/modules/Shout_Box/admin/links.php

    r7 r8  
    2222 
    2323if (!defined('ADMIN_FILE')) { 
    24    die ("Illegal File Access"); 
     24   die ("Kurald�sya Eri�imi Reddedildi"); 
    2525} 
    2626 
  • modules/Shout Box Evo 8.6.5/html/modules/Shout_Box/index.php

    r7 r8  
    2828 
    2929if (!defined('MODULE_FILE')) { 
    30    die ("You can't access this file directly..."); 
     30   die ("Bu dosyaya direkt olarak erişmeniz YASAKLANMIŞTIR..."); 
    3131} 
    3232 
     
    202202            } 
    203203 
    204             $sqlN = "SELECT `user_avatar`, `username` FROM `"._USERS_TABLE."` WHERE `username`='".$row['name']."'"; 
     204            // $sqlN = "SELECT `user_avatar`, `username` FROM `"._USERS_TABLE."` WHERE `username`='".$row['name']."'"; 
     205            $sqlN = "SELECT `user_avatar`, `username` FROM ".$prefix."_users WHERE `username`='".$row['name']."'"; 
    205206            $nameresultN = $db->sql_query($sqlN); 
    206207            $rowN = $db->sql_fetchrow($nameresultN); 
     
    669670    // Find avatar path 
    670671    // modules/Forums/images/avatars/gallery 
    671     $sql = "SELECT * FROM `".CONFIG_TABLE."` WHERE `config_name`='avatar_gallery_path'"; 
     672    // $sql = "SELECT * FROM `".CONFIG_TABLE."` WHERE `config_name`='avatar_gallery_path'"; 
     673    $sql = "SELECT * FROM ".$prefix."_bbconfig WHERE `config_name`='avatar_gallery_path'"; 
    672674    $result = $db->sql_query($sql); 
    673675    $avatar_gallery_path = $db->sql_fetchrow($result); 
    674676    $db->sql_freeresult($result); 
    675677    // modules/Forums/images/avatars 
    676     $sql = "SELECT * FROM ".CONFIG_TABLE." WHERE config_name='avatar_path'"; 
     678    // $sql = "SELECT * FROM ".CONFIG_TABLE." WHERE config_name='avatar_path'"; 
     679    $sql = "SELECT * FROM ".$prefix."_bbconfig WHERE `config_name`='avatar_path'"; 
    677680    $result = $db->sql_query($sql); 
    678681    $avatar_path = $db->sql_fetchrow($result); 
     
    768771        } 
    769772 
    770         $sqlN = "SELECT `user_avatar`, `username` FROM `"._USERS_TABLE."` WHERE username='$row[name]'"; 
     773        // $sqlN = "SELECT `user_avatar`, `username` FROM `"._USERS_TABLE."` WHERE username='$row[name]'"; 
     774        $sqlN = "SELECT `user_avatar`, `username` FROM ".$prefix."_users WHERE `username`='".$row['name']."'"; 
    771775        $nameresultN = $db->sql_query($sqlN); 
    772776        $rowN = $db->sql_fetchrow($nameresultN); 
  • modules/Shout Box Evo 8.6.5/html/modules/Shout_Box/shout.php

    r7 r8  
    1616    } 
    1717 
    18     if ( empty($translate) && $board_config['default_lang'] != 'english' && is_array($lang['datetime'])) 
     18    if ( empty($translate) && $board_config['default_lang'] != 'turkish' && is_array($lang['datetime'])) 
    1919    { 
    2020        @reset($lang['datetime']); 
     
    120120        include_once(NUKE_MODULES_DIR.'Shout_Box/lang-block/lang-'.$currentlang.'.php'); 
    121121    } else { 
    122         include_once(NUKE_MODULES_DIR.'Shout_Box/lang-block/lang-english.php'); 
     122        include_once(NUKE_MODULES_DIR.'Shout_Box/lang-block/lang-turkish.php'); 
    123123    } 
    124124 
     
    380380        // check for anonymous users cloning/ghosting registered users' nicknames 
    381381        if (!is_user() && !empty($username) && $username != "Anonymous") { 
    382             $sql = "SELECT `username` FROM `"._USERS_TABLE."` WHERE `username`='$username'"; 
     382            //  $sql = "SELECT `username` FROM `"._USERS_TABLE."` WHERE `username`='$username'"; 
     383            $sql = "SELECT `username` FROM ".$prefix."_users WHERE `username`='$username'"; 
    383384            $nameresult = $db->sql_query($sql); 
    384385            if ($row = $db->sql_fetchrow($nameresult)) { 
     
    632633            else { 
    633634                // check to see if nickname is a user in the DB 
    634                 $sqlN = "SELECT * FROM `"._USERS_TABLE."` WHERE `username`='".$row['name']."'"; 
     635                // $sqlN = "SELECT * FROM `"._USERS_TABLE."` WHERE `username`='".$row['name']."'"; 
     636                $sqlN = "SELECT * FROM ".$prefix."_users WHERE `username`='".$row['name']."'"; 
    635637                $nameresultN = $db->sql_query($sqlN); 
    636638                $rowN = $db->sql_fetchrow($nameresultN);