Полный дебрендинг VBulletin - даже посмотрев ващ исходный код не станет все понятнто

Тема в разделе "vBulletin", создана пользователем InoffLine, 14 янв 2008.

Статус темы:
Закрыта.
  1. InoffLine

    InoffLine

    Регистр.:
    18 апр 2007
    Сообщения:
    573
    Симпатии:
    155
    Нашел и перевел инструкцию по полному дебрендингу vbulletin. Изменено все:-]
    =========================================
    vBulletin 3.6.8 Дебрендинг
    =========================================
    Внизу инструкция прикреплена в отдельном файле
    ========================
    Необходимо
    ========================
    - vBulletin.v3.6.8
    - PHP редактор(notepad++)

    ========================
    Изменение в коде
    ========================


    misc.php

    Найти:
    =========
    PHP:
        $specialbbcode['quote1'] = $bbcode_parser->parse("[quote]vBulletin[/quote]"0false);
        
    $specialbbcode['quote2'] = $bbcode_parser->parse("[quote=John Percival]vBulletin[/quote]"0false);
    =========

    Заменить на:
    =========
    PHP:
        $specialbbcode['quote1'] = $bbcode_parser->parse("[quote]Example[/quote]"0false);
        
    $specialbbcode['quote2'] = $bbcode_parser->parse("[quote=John Doe]Example[/quote]"0false);
    =========


    Найти:
    =========
    PHP:
        $specialbbcode['quote3'] = $bbcode_parser->parse("[quote=John Percival;$max_post[maxpostid]]vBulletin[/quote]"0false);
    =========

    Заменить на:
    =========
    PHP:
        $specialbbcode['quote3'] = $bbcode_parser->parse("[quote=John Doe;$max_post[maxpostid]]Example[/quote]"0false);
    =========



    online.php

    Найти:
    =========
    PHP:
    if ($vbulletin->options['enablespiders'] AND $lastupdate = @filemtime(DIR '/includes/xml/spiders_vbulletin.xml') AND $lastupdate != $vbulletin->wol_spiders['lu'])
    =========

    Заменить на:
    =========
    PHP:
    if ($vbulletin->options['enablespiders'] AND $lastupdate = @filemtime(DIR '/includes/xml/spiders_forum.xml') AND $lastupdate != $vbulletin->wol_spiders['lu'])
    =========


    Найти:
    =========
    PHP:
        $xmlobj = new vB_XML_Parser(falseDIR '/includes/xml/spiders_vbulletin.xml');
    =========

    Заменить на:
    =========
    PHP:
        $xmlobj = new vB_XML_Parser(falseDIR '/includes/xml/spiders_forum.xml');
    =========



    modcp\index.php

    Найти:
    =========
    PHP:
    <td><b><?php echo $vbphrase['moderator_control_panel']; ?></b> (vBulletin <?php echo $vbulletin->versionnumber?>)</td>
    =========

    Заменить на:
    =========
    PHP:
      <td><b><?php echo $vbphrase['moderator_control_panel']; ?></b></td>
    =========


    Найти and delete:
    =========
    PHP:
    // *************************************
    // vBULLETIN CREDITS
    require_once(DIR '/includes/vbulletin_credits.php');
    =========


    Найти:
    =========
    PHP:
    <img src="../cpstyles/<?php echo $vbulletin->options['cpstylefolder']; ?>/cp_logo.gif" alt="" border="0" hspace="4" vspace="4" /><?php
    =========

    Заменить на:
    =========
    PHP:
    <?php
    =========


    Найти and delete:
    =========
    PHP:
        define('NO_CP_COPYRIGHT'true);
    =========



    install\finalupgrade.php

    Найти:
    =========
    PHP:
        if (!($xml file_read(DIR '/install/vbulletin-settings.xml')))
    =========

    Заменить на:
    =========
    PHP:
        if (!($xml file_read(DIR '/install/settings.xml')))
    =========


    Найти:
    =========
    PHP:
            echo '<p>' sprintf($vbphrase['file_not_found'], 'vbulletin-settings.xml') . '</p>';
    =========

    Заменить на:
    =========
    PHP:
           echo '<p>' sprintf($vbphrase['file_not_found'], 'settings.xml') . '</p>';
    =========


    Найти:
    =========
    PHP:
        echo '<p>' sprintf($vbphrase['importing_file'], 'vbulletin-settings.xml');
    =========

    Заменить на:
    =========
    PHP:
        echo '<p>' sprintf($vbphrase['importing_file'], 'settings.xml');
    =========


    Найти:
    =========
    PHP:
        if (!($xml file_read(DIR '/install/vbulletin-adminhelp.xml')))
    =========

    Заменить на:
    =========
    PHP:
        if (!($xml file_read(DIR '/install/adminhelp.xml')))
    =========


    Найти:
    =========
    PHP:
            echo '<p>' sprintf($vbphrase['file_not_found'], 'vbulletin-adminhelp.xml') . '</p>';
    =========

    Заменить на:
    =========
    PHP:
            echo '<p>' sprintf($vbphrase['file_not_found'], 'adminhelp.xml') . '</p>';
    =========


    Найти:
    =========
    PHP:
        echo '<p>' sprintf($vbphrase['importing_file'], 'vbulletin-adminhelp.xml');
    =========

    Заменить на:
    =========
    PHP:
       echo '<p>' sprintf($vbphrase['importing_file'], 'adminhelp.xml');
    =========


    Найти:
    =========
    PHP:
        if (!($xml file_read(DIR '/install/vbulletin-language.xml')))
    =========

    Заменить на:
    =========
    PHP:
        if (!($xml file_read(DIR '/install/language.xml')))
    =========


    Найти:
    =========
    PHP:
            echo '<p>' sprintf($vbphrase['file_not_found'], 'vbulletin-language.xml') . '</p>';
    =========

    Заменить на:
    =========
    PHP:
            echo '<p>' sprintf($vbphrase['file_not_found'], 'language.xml') . '</p>';
    =========


    Найти:
    =========
    PHP:
        echo '<p>' sprintf($vbphrase['importing_file'], 'vbulletin-language.xml');
    =========

    Заменить на:
    =========
    PHP:
        echo '<p>' sprintf($vbphrase['importing_file'], 'language.xml');
    =========


    Найти:
    =========
    PHP:
      if (!($xml file_read(DIR '/install/vbulletin-style.xml')))
    =========

    Заменить на:
    =========
    PHP:
        if (!($xml file_read(DIR '/install/style.xml')))
    =========


    Найти:
    =========
    PHP:
            echo '<p>' sprintf($vbphrase['file_not_found'], 'vbulletin-style.xml') . '</p>';
    =========

    Заменить на:
    =========
    PHP:
            echo '<p>' sprintf($vbphrase['file_not_found'], 'style.xml') . '</p>';
    =========


    Найти:
    =========
    PHP:
        echo '<p>' sprintf($vbphrase['importing_file'], 'vbulletin-style.xml');
    =========

    Заменить на:
    =========
    PHP:
        echo '<p>' sprintf($vbphrase['importing_file'], 'style.xml');
    =========



    install\init.php

    Найти:
    =========
    PHP:
    // setup an empty hook class in case we run some of the main vB code
    =========

    Заменить на:
    =========
    PHP:
    // setup an empty hook class in case we run some of the main BBCode
    =========



    install\install.php

    Найти:
    =========
    PHP:
                echo "<script type=\"text/javascript\" src=\"../clientscript/vbulletin_global.js\"></script>";
    =========

    Заменить на:
    =========
    PHP:
                echo "<script type=\"text/javascript\" src=\"../clientscript/global.js\"></script>";
    =========


    Найти:
    =========
    PHP:
        if (!($xml file_read(DIR '/install/vbulletin-language.xml')))
    =========

    Заменить на:
    =========
    PHP:
        if (!($xml file_read(DIR '/install/language.xml')))
    =========


    Найти:
    =========
    PHP:
            echo '<p>' sprintf($vbphrase['file_not_found'], 'vbulletin-language.xml') . '</p>';
    =========

    Заменить на:
    =========
    PHP:
            echo '<p>' sprintf($vbphrase['file_not_found'], 'language.xml') . '</p>';
    =========


    Найти:
    =========
    PHP:
        echo '<p>' sprintf($vbphrase['importing_file'], 'vbulletin-language.xml');
    =========

    Заменить на:
    =========
    PHP:
        echo '<p>' sprintf($vbphrase['importing_file'], 'language.xml');
    =========


    Найти:
    =========
    PHP:
        if (!($xml file_read(DIR '/install/vbulletin-style.xml')))
    =========

    Заменить на:
    =========
    PHP:
        if (!($xml file_read(DIR '/install/style.xml')))
    =========


    Найти:
    =========
    PHP:
            echo '<p>' sprintf($vbphrase['file_not_found'], 'vbulletin-style.xml') . '</p>';
    =========

    Заменить на:
    =========
    PHP:
    echo '<p>' sprintf($vbphrase['file_not_found'], 'style.xml') . '</p>';
    =========


    Найти:
    =========
    PHP:
     echo '<p>' sprintf($vbphrase['importing_file'], 'vbulletin-style.xml');
    =========

    Заменить на:
    =========
    PHP:
        echo '<p>' sprintf($vbphrase['importing_file'], 'style.xml');
    =========


    Найти:
    =========
    PHP:
        if (!($xml file_read(DIR '/install/vbulletin-adminhelp.xml')))
    =========

    Заменить на:
    =========
    PHP:
        if (!($xml file_read(DIR '/install/adminhelp.xml')))
    =========


    Найти:
    =========
    PHP:
            echo '<p>' sprintf($vbphrase['file_not_found'], 'vbulletin-adminhelp.xml') . '</p>';
    =========

    Заменить на:
    =========
    PHP:
            echo '<p>' sprintf($vbphrase['file_not_found'], 'adminhelp.xml') . '</p>';
    =========


    Найти:
    =========
    PHP:
        echo '<p>' sprintf($vbphrase['importing_file'], 'vbulletin-adminhelp.xml');
    =========

    Заменить на:
    =========
    PHP:
        echo '<p>' sprintf($vbphrase['importing_file'], 'adminhelp.xml');
    =========


    Найти:
    =========
    PHP:
        if (!($xml file_read(DIR '/install/vbulletin-settings.xml')))
    =========

    Заменить на:
    =========
    PHP:
        if (!($xml file_read(DIR '/install/settings.xml')))
    =========


    Найти:
    =========
    PHP:
            echo '<p>' sprintf($vbphrase['file_not_found'], 'vbulletin-settings.xml') . '</p>';
    =========

    Заменить на:
    =========
    PHP:
            echo '<p>' sprintf($vbphrase['file_not_found'], 'settings.xml') . '</p>';
    =========


    Найти:
    =========
    PHP:
        echo '<p>' sprintf($vbphrase['importing_file'], 'vbulletin-settings.xml');
    =========

    Заменить на:
    =========
    PHP:
        echo '<p>' sprintf($vbphrase['importing_file'], 'settings.xml');
    =========



    install\install_language_en.php

    Найти:
    =========
    PHP:
    $phrasetype['vbulletin_settings'] = 'vBulletin Settings';
    =========

    Заменить на:
    =========
    PHP:
    $phrasetype['vbulletin_settings'] = 'Settings';
    =========


    Найти:
    =========
    PHP:
    $vbphrase['vbulletin_message'] = 'vBulletin Message';
    =========

    Заменить на:
    =========
    PHP:
    $vbphrase['vbulletin_message'] = 'Board Message';
    =========


    Найти:
    =========
    PHP:
    $vbphrase['upgrade_start_message'] = "<p>This script will update your vBulletin installation to version <b>" VERSION "</b></p>\n<p>Press the 'Next Step' button to proceed.</p>";
    =========

    Заменить на:
    =========
    PHP:
    $vbphrase['upgrade_start_message'] = "<p>This script will update your board installation to version <b>" VERSION "</b></p>\n<p>Press the 'Next Step' button to proceed.</p>";
    =========


    Найти:
    =========
    PHP:
    $vbphrase['upgrade_wrong_version'] = "<p>Your vBulletin version does not appear to match with the version for which this script was created (version <b>" PREV_VERSION "</b>).</p>\n<p>Please ensure that you are attempting to run the correct script.</p>\n<p>If you are sure this is the script you would like to run, <a href=\"" THIS_SCRIPT "?step=1\">click here</a>.</p>";
    =========

    Заменить на:
    =========
    PHP:
    $vbphrase['upgrade_wrong_version'] = "<p>Your board version does not appear to match with the version for which this script was created (version <b>" PREV_VERSION "</b>).</p>\n<p>Please ensure that you are attempting to run the correct script.</p>\n<p>If you are sure this is the script you would like to run, <a href=\"" THIS_SCRIPT "?step=1\">click here</a>.</p>";
    =========


    Найти and delete:
    =========
    PHP:
    $vbphrase['vbulletin_copyright'] = 'vBulletin v' VERSION ', Copyright &copy;2000 - 2007, Jelsoft Enterprises Ltd.';
    =========


    Найти and delete:
    =========
    PHP:
    $vbphrase['vbulletin_copyright_orig'] = $vbphrase['vbulletin_copyright'];
    =========


    Найти:
    =========
    PHP:
    $installcore_phrases['php_version_too_old'] = 'vBulletin ' VERSION ' requires PHP version 4.3.3 or greater. Your PHP is version ' PHP_VERSION ', please ask your host to upgrade.';
    =========

    Заменить на:
    =========
    PHP:
    $installcore_phrases['php_version_too_old'] = 'Version ' VERSION ' requires PHP version 4.3.3 or greater. Your PHP is version ' PHP_VERSION ', please ask your host to upgrade.';
    =========


    Найти:
    =========
    PHP:
    $installcore_phrases['mysql_version_too_old'] = 'vBulletin ' VERSION ' requires MySQL version 4.0.16 or greater. Your MySQL is version %1$s, please ask your host to upgrade.';
    =========

    Заменить на:
    =========
    PHP:
    $installcore_phrases['mysql_version_too_old'] = 'Version ' VERSION ' requires MySQL version 4.0.16 or greater. Your MySQL is version %1$s, please ask your host to upgrade.';
    =========


    Найти:
    =========
    PHP:
    $installcore_phrases['need_xml'] = 'vBulletin ' VERSION ' requires that the XML functions in PHP be available. Please ask your host to enable this.';
    =========

    Заменить на:
    =========
    PHP:
    $installcore_phrases['need_xml'] = 'Version ' VERSION ' requires that the XML functions in PHP be available. Please ask your host to enable this.';
    =========


    Найти:
    =========
    PHP:
    $installcore_phrases['need_mysql'] = 'vBulletin ' VERSION ' requires that the MySQL functions in PHP be available. Please ask your host to enable this.';
    =========

    Заменить на:
    =========
    PHP:
    $installcore_phrases['need_mysql'] = 'Version ' VERSION ' requires that the MySQL functions in PHP be available. Please ask your host to enable this.';
    =========


    Найти:
    =========
    PHP:
    $installcore_phrases['vb3_install_script'] = 'vBulletin ' VERSION ' Install Script';
    =========

    Заменить на:
    =========
    PHP:
    $installcore_phrases['vb3_install_script'] = 'Version ' VERSION ' Install Script';
    =========


    Найти:
    =========
    PHP:
    $upgradecore_phrases['apc_too_old'] = 'Your server is running a version of the <a href="http://pecl.p' 'hp.net/package/APC/">Alternative PHP Cache</a> (APC) that is incompatible with vBulletin. Please upgrade APC to version 3.0.0 or newer.';
    =========

    Заменить на:
    =========
    PHP:
    $upgradecore_phrases['apc_too_old'] = 'Your server is running a version of the <a href="http://pecl.p' 'hp.net/package/APC/">Alternative PHP Cache</a> (APC) that is incompatible with the board. Please upgrade APC to version 3.0.0 or newer.';
    =========


    Найти:
    =========
    PHP:
    $installcore_phrases['mmcache_not_supported'] = 'Turck MMCache has been made obsolete by eAccelerator and does not function properly with vBulletin.';
    =========

    Заменить на:
    =========
    PHP:
    $installcore_phrases['mmcache_not_supported'] = 'Turck MMCache has been made obsolete by eAccelerator and does not function properly with the board.';
    =========


    Найти:
    =========
    $install_phrases['welcome'] = '<p style="font-size:10pt"><b>Welcome to vBulletin version 3.6</b></p>
    =========

    Заменить на:
    =========
    $install_phrases['welcome'] = '<p style="font-size:10pt"><b>Welcome to version 3.6</b></p>
    =========


    Найти:
    =========
    $install_phrases['turck'] = '<p><strong>Turck MMCache</strong> has been detected on your server. <strong>Turck MMCache</strong> is not supported in recent versions of PHP and can cause problems with vBulletin. We recommend that it be disabled.</p>';
    =========

    Заменить на:
    =========
    $install_phrases['turck'] = '<p><strong>Turck MMCache</strong> has been detected on your server. <strong>Turck MMCache</strong> is not supported in recent versions of PHP and can cause problems with the board. We recommend that it be disabled.</p>';
    =========


    Найти:
    =========
    $install_phrases['vb_installed_maybe_upgrade'] = 'You have already installed vBulletin; do you wish to <a href="upgrade.php">upgrade</a>?';
    =========

    Заменить на:
    =========
    $install_phrases['vb_installed_maybe_upgrade'] = 'You have already installed the board; do you wish to <a href="upgrade.php">upgrade</a>?';
    =========


    Найти:
    =========
    $install_phrases['delete_tables_instructions'] = '<p>The following is a list of all tables found in your database. Tables that are recognized as part of vBulletin have been selected for you. There may be other tables listed that were not recognized - these will be highlighted in the list.</p>
    =========

    Заменить на:
    =========
    $install_phrases['delete_tables_instructions'] = '<p>The following is a list of all tables found in your database. Tables that are recognized as part of the board have been selected for you. There may be other tables listed that were not recognized - these will be highlighted in the list.</p>
    =========


    Найти:
    =========
    <p><a href="install.php?step=2">Click here if you would like to return to the install process without deleting any tables.</a></p>
    <p>vBulletin and Jelsoft Enterprises Ltd. can accept no responsibility for any loss of data incurred as a result of deleting database tables.</p>';
    =========

    Заменить на:
    =========
    <p><a href="install.php?step=2">Click here if you would like to return to the install process without deleting any tables.</a></p>';
    =========


    Найти:
    =========
    $install_phrases['mysql_strict_mode'] = 'MySQL is running in strict mode. While you may proceed, some areas of vBulletin may not function properly. It is <em>strongly recommended</em> that you set <code>$config[\'Database\'][\'force_sql_mode\']</code> to <code>true</code> in your includes/config.php file!';
    =========

    Заменить на:
    =========
    $install_phrases['mysql_strict_mode'] = 'MySQL is running in strict mode. While you may proceed, some areas of the board may not function properly. It is <em>strongly recommended</em> that you set <code>$config[\'Database\'][\'force_sql_mode\']</code> to <code>true</code> in your includes/config.php file!';
    =========


    Найти:
    =========
    $install_phrases['cookiepath'] = '<b>Cookie Path</b> <dfn>The path to which the cookie is saved. If you run more than one forum on the same domain, it will be necessary to set this to the individual directories of the forums. Otherwise, just leave it as / .<br /><br />Suggested valid values for Cookie Path are available in the drop-down menu opposite. If you have a good reason to want a different setting, tick the checkbox and enter the desired value in the box provided.<br /><br />Please note that your path should <b>always</b> end in a forward-slash; for example \'/forums/\', \'/vbulletin/\' etc.<br /><br /><span class="col-c">Entering an invalid setting can leave you unable to login to your forum.</span></dfn>';
    =========

    Заменить на:
    =========
    $install_phrases['cookiepath'] = '<b>Cookie Path</b> <dfn>The path to which the cookie is saved. If you run more than one forum on the same domain, it will be necessary to set this to the individual directories of the forums. Otherwise, just leave it as / .<br /><br />Suggested valid values for Cookie Path are available in the drop-down menu opposite. If you have a good reason to want a different setting, tick the checkbox and enter the desired value in the box provided.<br /><br />Please note that your path should <b>always</b> end in a forward-slash; for example \'/forums/\', \'/board/\' etc.<br /><br /><span class="col-c">Entering an invalid setting can leave you unable to login to your forum.</span></dfn>';
    =========


    Найти:
    =========
    $install_phrases['install_complete'] = '<p>You have now successfully installed vBulletin 3.<br />
    =========

    Заменить на:
    =========
    $install_phrases['install_complete'] = '<p>You have now successfully installed version 3.<br />
    =========


    Найти:
    =========
    // should be the values that vbulletin-language.xml contains
    =========

    Заменить на:
    =========
    // should be the values that language.xml contains
    =========



    install\installcore.php

    Найти:
    =========
    <link rel="stylesheet" href="../cpstyles/vBulletin_3_Default/controlpanel.css" />
    =========

    Заменить на:
    =========
    <link rel="stylesheet" href="../cpstyles/3_Default/controlpanel.css" />
    =========


    Найти:
    =========
    <tr>
    <td width="160"><img src="../cpstyles/vBulletin_3_Default/cp_logo.gif" alt="" title="vBulletin 3 &copy;2000 - <?php echo date('Y'); ?> Jelsoft Enterprises Ltd." /></td>
    <td style="padding-left:100px">
    =========

    Заменить на:
    =========
    <tr align="center">
    <td>
    <br />
    =========


    Найти:
    =========
    <td><b><?php echo $installcore_phrases['batch_complete']; ?></b><br />vBulletin &copy;2000 - <?php echo date('Y'); ?> Jelsoft Enterprises Ltd.</td>
    =========

    Заменить на:
    =========
    <td><b><?php echo $installcore_phrases['batch_complete']; ?></b></td>
    =========


    Найти:
    =========
    <td><?php if (!defined('HIDEPROCEED')) { ?><b><?php echo $installcore_phrases['click_button_to_proceed']; ?></b><br /><?php } ?>vBulletin &copy;2000 - <?php echo date('Y'); ?> Jelsoft Enterprises Ltd.</td>
    =========

    Заменить на:
    =========
    <td><?php if (!defined('HIDEPROCEED')) { ?><b><?php echo $installcore_phrases['click_button_to_proceed']; ?></b><br /><?php } ?></td>
    =========



    install\upgrade_300b3.php

    Найти:
    =========
    'Posting Code allowances (vB code / HTML / etc)' => 'postingallow',
    =========

    Заменить на:
    =========
    'Posting Code allowances (BBCode / HTML / etc)' => 'postingallow',
    =========


    Найти:
    =========
    $xmlobj = new vB_XML_Parser(false, DIR . '/install/vbulletin-settings.xml');
    =========

    Заменить на:
    =========
    $xmlobj = new vB_XML_Parser(false, DIR . '/install/settings.xml');
    =========


    Найти:
    =========
    //$path = DIR . '/install/vbulletin-language.xml';
    =========

    Заменить на:
    =========
    //$path = DIR . '/install/language.xml';
    =========


    Найти:
    =========
    //$path = DIR . '/install/vbulletin-adminhelp.xml';
    =========

    Заменить на:
    =========
    //$path = DIR . '/install/adminhelp.xml';
    =========


    Найти:
    =========
    /*if (!($xml = file_read(DIR . '/install/vbulletin-style.xml')))
    {
    echo '<p>' . sprintf($vbphrase['file_not_found'], 'vbulletin-style.xml') . '</p>';
    print_cp_footer();
    }*/
    =========

    Заменить на:
    =========
    /*if (!($xml = file_read(DIR . '/install/style.xml')))
    {
    echo '<p>' . sprintf($vbphrase['file_not_found'], 'style.xml') . '</p>';
    print_cp_footer();
    }*/
    =========


    Найти:
    =========
    echo '<p>' . sprintf($vbphrase['importing_file'], 'vbulletin-style.xml');
    =========

    Заменить на:
    =========
    echo '<p>' . sprintf($vbphrase['importing_file'], 'style.xml');
    =========


    Найти:
    =========
    $path = DIR . '/install/vbulletin-settings.xml';
    =========

    Заменить на:
    =========
    $path = DIR . '/install/settings.xml';
    =========



    install\upgrade_300b6.php

    Найти:
    =========
    // delete the vbcode_color_options template - colors are noe defined in the clientscript/vbulletin_editor.js file
    =========

    Заменить на:
    =========
    // delete the vbcode_color_options template - colors are noe defined in the clientscript/editor.js file
    =========



    install\upgrade_360b1.php

    Найти:
    =========
    // this has been removed from vbulletin-settings.xml so may possibly be missing if they used the new xml file before the upgrade
    =========

    Заменить на:
    =========
    // this has been removed from settings.xml so may possibly be missing if they used the new xml file before the upgrade
    =========





    install\upgrade_language_en.php

    Найти:
    =========
    $upgradecore_phrases['vb3_upgrade_system'] = 'vBulletin 3.6 Upgrade System';
    =========

    Заменить на:
    =========
    $upgradecore_phrases['vb3_upgrade_system'] = 'Version 3.6 Upgrade System';
    =========


    Найти:
    =========
    $upgradecore_phrases['php_version_too_old'] = 'vBulletin 3.6 requires PHP version 4.3.3 or greater. Your PHP is version ' . PHP_VERSION . ', please ask your host to upgrade.';
    =========

    Заменить на:
    =========
    $upgradecore_phrases['php_version_too_old'] = 'Version 3.6 requires PHP version 4.3.3 or greater. Your PHP is version ' . PHP_VERSION . ', please ask your host to upgrade.';
    =========


    Найти:
    =========
    $upgradecore_phrases['mysql_version_too_old'] = 'vBulletin 3.6 requires MySQL version 4.0.16 or greater. Your MySQL is version %1$s, please ask your host to upgrade.';
    =========

    Заменить на:
    =========
    $upgradecore_phrases['mysql_version_too_old'] = 'Version 3.6 requires MySQL version 4.0.16 or greater. Your MySQL is version %1$s, please ask your host to upgrade.';
    =========


    Найти:
    =========
    $upgradecore_phrases['ensure_config_exists'] = 'Please make sure you have created the new directory structure required by vBulletin 3';
    =========

    Заменить на:
    =========
    $upgradecore_phrases['ensure_config_exists'] = 'Please make sure you have created the new directory structure required by version 3';
    =========


    Найти:
    =========
    $upgradecore_phrases['mysql_strict_mode'] = 'MySQL is running in strict mode. While you may proceed, some areas of vBulletin may not function properly. It is <em>strongly recommended</em> that you set <code>$config[\'Database\'][\'force_sql_mode\']</code> to <code>true</code> in your includes/config.php file!';
    =========

    Заменить на:
    =========
    $upgradecore_phrases['mysql_strict_mode'] = 'MySQL is running in strict mode. While you may proceed, some areas of the board may not function properly. It is <em>strongly recommended</em> that you set <code>$config[\'Database\'][\'force_sql_mode\']</code> to <code>true</code> in your includes/config.php file!';
    =========


    Найти:
    =========
    $upgradecore_phrases['vb_db_dump_completed'] = 'VBULLETIN DATABASE DUMP COMPLETED';
    =========

    Заменить на:
    =========
    $upgradecore_phrases['vb_db_dump_completed'] = 'BOARD DATABASE DUMP COMPLETED';
    =========


    Найти:
    =========
    $upgradecore_phrases['dump_database_desc'] = '<p class="smallfont">From here, you can back up your vBulletin database.</p>
    =========

    Заменить на:
    =========
    $upgradecore_phrases['dump_database_desc'] = '<p class="smallfont">From here, you can back up your board database.</p>
    =========


    Найти:
    =========
    $upgradecode_phrases['vb_database_backup_system'] = 'vBulletin Database Backup System';
    =========

    Заменить на:
    =========
    $upgradecode_phrases['vb_database_backup_system'] = 'Board Database Backup System';
    =========


    Найти:
    =========
    $upgradecore_phrases['apc_too_old'] = 'Your server is running a version of the <a href="http://pecl.p' . 'hp.net/package/APC/">Alternative PHP Cache</a> (APC) that is incompatible with vBulletin. Please upgrade APC to version 3.0.0 or newer.';
    =========

    Заменить на:
    =========
    $upgradecore_phrases['apc_too_old'] = 'Your server is running a version of the <a href="http://pecl.p' . 'hp.net/package/APC/">Alternative PHP Cache</a> (APC) that is incompatible with the board. Please upgrade APC to version 3.0.0 or newer.';
    =========


    Найти:
    =========
    $upgradecore_phrases['mmcache_not_supported'] = 'Turck MMCache has been made obsolete by eAccelerator and does not function properly with vBulletin.';
    =========

    Заменить на:
    =========
    $upgradecore_phrases['mmcache_not_supported'] = 'Turck MMCache has been made obsolete by eAccelerator and does not function properly with the board.';
    =========


    Найти:
    =========
    $phrasetype['vbulletin_settings'] = 'vBulletin Settings';
    =========

    Заменить на:
    =========
    $phrasetype['vbulletin_settings'] = 'Settings';
    =========


    Найти:
    =========
    $vbphrase['vbulletin_message'] = 'vBulletin Message';
    =========

    Заменить на:
    =========
    $vbphrase['vbulletin_message'] = 'Board Message';
    =========


    Найти:
    =========
    $vbphrase['upgrade_start_message'] = "<p>This script will update your vBulletin installation to version <b>" . VERSION . "</b></p>\n<p>Press the 'Next Step' button to proceed.</p>";
    =========

    Заменить на:
    =========
    $vbphrase['upgrade_start_message'] = "<p>This script will update your board installation to version <b>" . VERSION . "</b></p>\n<p>Press the 'Next Step' button to proceed.</p>";
    =========


    Найти:
    =========
    $vbphrase['upgrade_wrong_version'] = "<p>Your vBulletin version does not appear to match with the version for which this script was created (version <b>" . PREV_VERSION . "</b>).</p>\n<p>Please ensure that you are attempting to run the correct script.</p>\n<p>If you are sure this is the script you would like to run, <a href=\"" . THIS_SCRIPT . "?step=1\">click here</a>.</p>";
    =========

    Заменить на:
    =========
    $vbphrase['upgrade_wrong_version'] = "<p>Your board version does not appear to match with the version for which this script was created (version <b>" . PREV_VERSION . "</b>).</p>\n<p>Please ensure that you are attempting to run the correct script.</p>\n<p>If you are sure this is the script you would like to run, <a href=\"" . THIS_SCRIPT . "?step=1\">click here</a>.</p>";
    =========


    Найти and delete:
    =========
    $vbphrase['vbulletin_copyright'] = 'vBulletin v' . VERSION . ', Copyright &copy;2000 - ' . date('Y') . ', Jelsoft Enterprises Ltd.';
    $vbphrase['vbulletin_copyright_orig'] = $vbphrase['vbulletin_copyright'];
    =========


    Найти:
    =========
    1 => 'Create New vBulletin 3 Tables',
    =========

    Заменить на:
    =========
    1 => 'Create New version 3 Tables',
    =========


    Найти:
    =========
    28 => 'Import vbulletin-language.xml',
    =========

    Заменить на:
    =========
    28 => 'Import language.xml',
    =========


    Найти:
    =========
    29 => 'Import vbulletin-adminhelp.xml',
    =========

    Заменить на:
    =========
    29 => 'Import adminhelp.xml',
    =========


    Найти:
    =========
    37 => 'Import vbulletin-style.xml',
    =========

    Заменить на:
    =========
    37 => 'Import style.xml',
    =========


    Найти:
    =========
    42 => 'Upgrade to vBulletin ' . VERSION . ' Complete!'
    =========

    Заменить на:
    =========
    42 => 'Upgrade to version ' . VERSION . ' Complete!'
    =========


    Найти:
    =========
    $upgrade_phrases['upgrade_300b3.php']['welcome'] = '<p style="font-size:10pt"><b>Welcome to vBulletin version 3.6</b></p>
    =========

    Заменить на:
    =========
    $upgrade_phrases['upgrade_300b3.php']['welcome'] = '<p style="font-size:10pt"><b>Welcome to version 3.6</b></p>
    =========


    Найти:
    =========
    $upgrade_phrases['upgrade_300b3.php']['dropping_vb2_pm_table'] = 'Dropping vBulletin 2 Private Message Table';
    =========

    Заменить на:
    =========
    $upgrade_phrases['upgrade_300b3.php']['dropping_vb2_pm_table'] = 'Dropping version 2 Private Message Table';
    =========


    Найти:
    =========
    $upgrade_phrases['upgrade_300b3.php']['explain_banned_groups'] = "In vBulletin 3, 'banned' usergroups need to be explicitly specified.<br /><br />\nIf you have any 'banned' usergroups, please tick those groups here.";
    =========

    Заменить на:
    =========
    $upgrade_phrases['upgrade_300b3.php']['explain_banned_groups'] = "In version 3, 'banned' usergroups need to be explicitly specified.<br /><br />\nIf you have any 'banned' usergroups, please tick those groups here.";
    =========


    Найти:
    =========
    $upgrade_phrases['upgrade_300b3.php']['bbtitle_vb3_style'] = '%1$s vBulletin 3 Style';
    =========

    Заменить на:
    =========
    $upgrade_phrases['upgrade_300b3.php']['bbtitle_vb3_style'] = '%1$s version 3 Style';
    =========


    Найти:
    =========
    $upgrade_phrases['upgrade_300b3.php']['Заменить наment_upgrade_desc'] = '<p><b>NOTE:</b></p>
    <p>The system will attempt to translate your vBulletin2 Заменить наment variables such as <b>{firstaltcolor}</b>
    into settings that will work with vBulletin 3. This will cause your default Заменить наment variables to be
    translated in to vBulletin 3 StyleVars and CSS settings.</p>
    <p>The script will now run through each of your vBulletin 2 styles and create a corresponding new vBulletin 3 style.</p>
    <p>The styles listed below will contain translated versions of your vBulletin 2 style settings, and should be usable straight away
    as vBulletin 3 styles.</p>';
    =========

    Заменить на:
    =========
    $upgrade_phrases['upgrade_300b3.php']['Заменить наment_upgrade_desc'] = '<p><b>NOTE:</b></p>
    <p>The system will attempt to translate your version 2 Заменить наment variables such as <b>{firstaltcolor}</b>
    into settings that will work with version 3. This will cause your default Заменить наment variables to be
    translated in to version 3 StyleVars and CSS settings.</p>
    <p>The script will now run through each of your version 2 styles and create a corresponding new version 3 style.</p>
    <p>The styles listed below will contain translated versions of your version 2 style settings, and should be usable straight away
    as version 3 styles.</p>';
    =========


    Найти:
    =========
    $upgrade_phrases['upgrade_300b3.php']['create_vb3_style_x'] = "Creating vBulletin 3 style: <b>'%1\$s'</b>";
    =========

    Заменить на:
    =========
    $upgrade_phrases['upgrade_300b3.php']['create_vb3_style_x'] = "Creating version 3 style: <b>'%1\$s'</b>";
    =========


    Найти:
    =========
    $upgrade_phrases['upgrade_300b3.php']['template_upgrade_desc'] = '<p><b>NOTE:</b></p>
    <p>vBulletin 3 templates are markedly different from those used in vBulletin 2. For this reason, any custom templates
    you may have created will be essentially useless in the vBulletin 3 system.</p>
    <p>However, when customizing your templates for vBulletin 3, you may wish to refer back to your vBulletin 2 templates.
    For this reason, the system will now create separate styles containing your customized vBulletin 2 templates.</p>
    <p>These styles will <i>not</i> be usable as styles for vBulletin 3, but are created simply for your convenience.</p>';
    =========

    Заменить на:
    =========
    $upgrade_phrases['upgrade_300b3.php']['template_upgrade_desc'] = '<p><b>NOTE:</b></p>
    <p>Version 3 templates are markedly different from those used in version 2. For this reason, any custom templates
    you may have created will be essentially useless in the version 3 system.</p>
    <p>However, when customizing your templates for version 3, you may wish to refer back to your version 2 templates.
    For this reason, the system will now create separate styles containing your customized version 2 templates.</p>
    <p>These styles will <i>not</i> be usable as styles for version 3, but are created simply for your convenience.</p>';
    =========


    Найти:
    =========
    $upgrade_phrases['upgrade_300b3.php']['upgrade_complete'] = "You have now successfully upgraded to vBulletin 3.<br />
    =========

    Заменить на:
    =========
    $upgrade_phrases['upgrade_300b3.php']['upgrade_complete'] = "You have now successfully upgraded to version 3.<br />
    =========


    Найти:
    =========
    // should be the values that vbulletin-language.xml contains
    =========

    Заменить на:
    =========
    // should be the values that language.xml contains
    =========


    Найти:
    =========
    'Turn Your vBulletin on and off' => 'onoff',
    =========

    Заменить на:
    =========
    'Turn Your Board on and off' => 'onoff',
    =========


    Найти:
    =========
    'Posting Code allowances (vB code / HTML / etc)' => 'postingallow',
    =========

    Заменить на:
    =========
    'Posting Code allowances (BBCode / HTML / etc)' => 'postingallow',
    =========


    Найти:
    =========
    $upgrade_phrases['upgrade_300b3.php']['new_vb2_default_style_title'] = 'vBulletin 2 Default';
    =========

    Заменить на:
    =========
    $upgrade_phrases['upgrade_300b3.php']['new_vb2_default_style_title'] = 'Version 2 Default';
    =========


    Найти:
    =========
    4 => 'Upgrade to vBulletin ' . VERSION . ' Complete!'
    =========

    Заменить на:
    =========
    4 => 'Upgrade to version ' . VERSION . ' Complete!'
    =========


    Найти:
    =========
    4 => 'Upgrade to vBulletin ' . VERSION . ' Complete!'
    =========

    Заменить на:
    =========
    4 => 'Upgrade to version ' . VERSION . ' Complete!'
    =========


    Найти:
    =========
    5 => 'Upgrade to vBulletin ' . VERSION . ' Complete!'
    =========

    Заменить на:
    =========
    5 => 'Upgrade to version ' . VERSION . ' Complete!'
    =========


    Найти:
    =========
    $upgrade_phrases['upgrade_300b6.php']['delete_vbcode_color'] = 'Deleting <i>vbcode_color_options</i> template (colors are now defined in the clientscript/vbulletin_editor.js file)';
    =========

    Заменить на:
    =========
    $upgrade_phrases['upgrade_300b6.php']['delete_vbcode_color'] = 'Deleting <i>vbcode_color_options</i> template (colors are now defined in the clientscript/editor.js file)';
    =========


    Найти:
    =========
    5 => 'Upgrade to vBulletin ' . VERSION . ' Complete!'
    =========

    Заменить на:
    =========
    5 => 'Upgrade to version ' . VERSION . ' Complete!'
    =========


    Найти:
    =========
    4 => 'Upgrade to vBulletin ' . VERSION . ' Complete!'
    =========

    Заменить на:
    =========
    4 => 'Upgrade to version ' . VERSION . ' Complete!'
    =========


    Найти:
    =========
    2 => 'Upgrade to vBulletin ' . VERSION . ' Complete!'
    =========

    Заменить на:
    =========
    2 => 'Upgrade to version ' . VERSION . ' Complete!'
    =========


    Найти:
    =========
    1 => 'Upgrade to vBulletin ' . VERSION . ' Complete!'
    =========

    Заменить на:
    =========
    1 => 'Upgrade to version ' . VERSION . ' Complete!'
    =========


    Найти:
    =========
    2 => 'Upgrade to vBulletin ' . VERSION . ' Complete!'
    =========

    Заменить на:
    =========
    2 => 'Upgrade to version ' . VERSION . ' Complete!'
    =========


    Найти:
    =========
    2 => 'Upgrade to vBulletin ' . VERSION . ' Complete!'
    =========

    Заменить на:
    =========
    2 => 'Upgrade to version ' . VERSION . ' Complete!'
    =========


    Найти:
    =========
    2 => 'Upgrade to vBulletin ' . VERSION . ' Complete!'
    =========

    Заменить на:
    =========
    2 => 'Upgrade to version ' . VERSION . ' Complete!'
    =========


    Найти:
    =========
    1 => 'Upgrade to vBulletin ' . VERSION . ' Complete!'
    =========

    Заменить на:
    =========
    1 => 'Upgrade to version ' . VERSION . ' Complete!'
    =========


    Найти:
    =========
    5 => 'Upgrade to vBulletin ' . VERSION . ' Complete!'
    =========

    Заменить на:
    =========
    5 => 'Upgrade to version ' . VERSION . ' Complete!'
    =========


    Найти:
    =========
    2 => 'Upgrade to vBulletin ' . VERSION . ' Complete!'
    =========

    Заменить на:
    =========
    2 => 'Upgrade to version ' . VERSION . ' Complete!'
    =========


    Найти:
    =========
    7 => 'Upgrade to vBulletin ' . VERSION . ' Complete!'
    =========

    Заменить на:
    =========
    7 => 'Upgrade to version ' . VERSION . ' Complete!'
    =========


    Найти:
    =========
    2 => 'Upgrade to vBulletin ' . VERSION . ' Complete!'
    =========

    Заменить на:
    =========
    2 => 'Upgrade to version ' . VERSION . ' Complete!'
    =========


    Найти:
    =========
    3 => 'Upgrade to vBulletin ' . VERSION . ' Complete!'
    =========

    Заменить на:
    =========
    3 => 'Upgrade to version ' . VERSION . ' Complete!'
    =========


    Найти:
    =========
    3 => 'Upgrade to vBulletin ' . VERSION . ' Complete!'
    =========

    Заменить на:
    =========
    3 => 'Upgrade to version ' . VERSION . ' Complete!'
    =========


    Найти:
    =========
    2 => 'Upgrade to vBulletin ' . VERSION . ' Complete!'
    =========

    Заменить на:
    =========
    2 => 'Upgrade to version ' . VERSION . ' Complete!'
    =========


    Найти:
    =========
    2 => 'Upgrade to vBulletin ' . VERSION . ' Complete!'
    =========

    Заменить на:
    =========
    2 => 'Upgrade to version ' . VERSION . ' Complete!'
    =========


    Найти:
    =========
    4 => 'Upgrade to vBulletin ' . VERSION . ' Complete!'
    =========

    Заменить на:
    =========
    4 => 'Upgrade to version ' . VERSION . ' Complete!'
    =========


    Найти:
    =========
    3 => 'Upgrade to vBulletin ' . VERSION . ' Complete!'
    =========


    Заменить на:
    =========
    3 => 'Upgrade to version ' . VERSION . ' Complete!'
    =========


    Найти:
    =========
    2 => 'Upgrade to vBulletin ' . VERSION . ' Complete!'
    =========

    Заменить на:
    =========
    2 => 'Upgrade to version ' . VERSION . ' Complete!'
    =========


    Найти:
    =========
    $upgrade_phrases['upgrade_351.php']['delete_vb_product'] = 'Delete vBulletin from product table.';
    =========

    Заменить на:
    =========
    $upgrade_phrases['upgrade_351.php']['delete_vb_product'] = 'Delete the board from product table.';
    =========


    Найти:
    =========
    11 => 'Upgrade to vBulletin ' . VERSION . ' Complete!'
    =========

    Заменить на:
    =========
    11 => 'Upgrade to version ' . VERSION . ' Complete!'
    =========


    Найти:
    =========
    2 => 'Upgrade to vBulletin ' . VERSION . ' Complete!'
    =========

    Заменить на:
    =========
    2 => 'Upgrade to version ' . VERSION . ' Complete!'
    =========


    Найти:
    =========
    1 => 'Upgrade to vBulletin ' . VERSION . ' Complete!'
    =========

    Заменить на:
    =========
    1 => 'Upgrade to version ' . VERSION . ' Complete!'
    =========


    Найти:
    =========
    $upgrade_phrases['finalupgrade.php']['upgrade_version_mismatch'] = '<p>Your vBulletin (%1$s) does not appear to be running the version that was downloaded (%2$s).</p>
    =========

    Заменить на:
    =========
    $upgrade_phrases['finalupgrade.php']['upgrade_version_mismatch'] = '<p>Your board version (%1$s) does not appear to be running the version that was downloaded (%2$s).</p>
    =========



    install\upgradecore.php

    Найти:
    =========
    header("Content-disposition: attachment; filename=\"vbulletin.sql\"");
    =========

    Заменить на:
    =========
    header("Content-disposition: attachment; filename=\"board.sql\"");
    =========


    Найти:
    =========
    if ($fp = @fopen(DIR . '/install/vbulletin-style.xml', 'rb'))
    =========

    Заменить на:
    =========
    if ($fp = @fopen(DIR . '/install/style.xml', 'rb'))
    =========


    Найти:
    =========
    if ($fp = @fopen(DIR . '/install/vbulletin-language.xml', 'rb'))
    =========


    Заменить на:
    =========
    if ($fp = @fopen(DIR . '/install/language.xml', 'rb'))
    =========


    Найти:
    =========
    if ($fp = @fopen(DIR . '/install/vbulletin-settings.xml', 'rb'))
    =========

    Заменить на:
    =========
    if ($fp = @fopen(DIR . '/install/settings.xml', 'rb'))
    =========


    Найти:
    =========
    if ($fp = @fopen(DIR . '/install/vbulletin-adminhelp.xml', 'rb'))
    =========

    Заменить на:
    =========
    if ($fp = @fopen(DIR . '/install/adminhelp.xml', 'rb'))
    =========


    Найти:
    =========
    <link rel="stylesheet" href="<?php echo THIS_SCRIPT == 'upgrade_300b3.php' ? '../cpstyles/vBulletin_3_Default/controlpanel.css' : "../cpstyles/{$vbulletin->options['cpstylefolder']}/controlpanel.css"; ?>" />
    =========

    Заменить на:
    =========
    <link rel="stylesheet" href="<?php echo THIS_SCRIPT == 'upgrade_300b3.php' ? '../cpstyles/3_Default/controlpanel.css' : "../cpstyles/{$vbulletin->options['cpstylefolder']}/controlpanel.css"; ?>" />
    =========


    Найти:
    =========
    <tr>
    <td width="160"><img src="../cpstyles/<?php echo THIS_SCRIPT == 'upgrade_300b3.php' ? 'vBulletin_3_Default' : $vbulletin->options['cpstylefolder']; ?>/cp_logo.gif" alt="" title="vBulletin 3 &copy;2000 - <?php echo date('Y'); ?>, Jelsoft Enterprises Ltd." /></td>
    =========

    Заменить на:
    =========
    <tr align="center">
    =========


    Найти:
    =========
    vbulletin-style.xml<br />
    vbulletin-settings.xml<br />
    vbulletin-language.xml<br />
    vbulletin-adminhelp.xml
    =========

    Заменить на:
    =========
    style.xml<br />
    settings.xml<br />
    language.xml<br />
    adminhelp.xml
    =========


    Найти:
    =========
    <td><b><?php echo $upgradecore_phrases['batch_complete']; ?></b><br />vBulletin &copy;2000 - <?php echo date('Y'); ?>, Jelsoft Enterprises Ltd.</td>
    =========

    Заменить на:
    =========
    <td><b><?php echo $upgradecore_phrases['batch_complete']; ?></b></td>
    =========


    Найти:
    =========
    <td><b><?php echo $upgradecore_phrases['click_button_to_proceed']; ?></b><br />vBulletin &copy;2000 - <?php echo date('Y'); ?>, Jelsoft Enterprises Ltd.</td>
    =========

    Заменить на:
    =========
    <td><b><?php echo $upgradecore_phrases['click_button_to_proceed']; ?></b></td>
    =========


    includes\adminfunctions.php

    Найти:
    =========
    <script type="text/javascript" src="../clientscript/vbulletin_md5.js"></script>
    =========

    Заменить на:
    =========
    <script type="text/javascript" src="../clientscript/md5.js"></script>
    =========


    Найти:
    =========
    <!-- logo and version -->
    <table cellpadding="4" cellspacing="0" border="0" width="100%" class="navbody">
    <tr valign="bottom">
    <td><img src="../cpstyles/<?php echo $vbulletin->options['cpstylefolder']; ?>/cp_logo.gif" alt="" title="<?php echo $vbphrase['vbulletin_copyright']; ?>" border="0" /></td>
    <td>
    <b><a href="../<?php echo $vbulletin->options['forumhome']; ?>.php"><?php echo $vbulletin->options['bbtitle']; ?></a></b><br />
    <?php echo "vBulletin " . $vbulletin->options['templateversion'] . " $pagetitle"; ?><br />
    &nbsp;
    </td>
    </tr>
    <?php

    if ($mismatch)
    {
    ?>
    <tr>
    <td colspan="2" class="navbody"><b><?php echo $vbphrase['to_continue_this_action']; ?></b></td>
    </tr>
    <?php
    }

    ?>
    </table>
    <!-- /logo and version -->
    =========

    Заменить на:
    =========
    <table cellpadding="4" cellspacing="0" border="0" width="100%" class="navbody">
    <tr valign="bottom" align="center">
    <td>
    <b><a href="../<?php echo $vbulletin->options['forumhome']; ?>.php"><?php echo $vbulletin->options['bbtitle']; ?></a></b><br />
    <?php echo $pagetitle; ?><br />
    &nbsp;
    </td>
    </tr>
    <?php

    if ($mismatch)
    {
    ?>
    <tr>
    <td colspan="2" class="navbody"><b><?php echo $vbphrase['to_continue_this_action']; ?></b></td>
    </tr>
    <?php
    }

    ?>
    </table>
    =========


    Найти and delete:
    =========
    define('NO_CP_COPYRIGHT', true);
    =========


    Найти:
    =========
    case 'AdminCP': $titlestring = iif($title, "$title - ") . $vbulletin->options['bbtitle'] . " - vBulletin $vbphrase[admin_control_panel]"; break;
    case 'ModCP': $titlestring = iif($title, "$title - ") . $vbulletin->options['bbtitle'] . " - vBulletin $vbphrase[moderator_control_panel]"; break;
    case 'Upgrade': $titlestring = iif($title, "vBulletin $title - ") . $vbulletin->options['bbtitle']; break;
    case 'Install': $titlestring = iif($title, "vBulletin $title - ") . $vbulletin->options['bbtitle']; break;
    =========

    Заменить на:
    =========
    case 'AdminCP': $titlestring = iif($title, "$title - ") . $vbulletin->options['bbtitle'] . " - $vbphrase[admin_control_panel]"; break;
    case 'ModCP': $titlestring = iif($title, "$title - ") . $vbulletin->options['bbtitle'] . " - $vbphrase[moderator_control_panel]"; break;
    case 'Upgrade': $titlestring = iif($title, "$title - ") . $vbulletin->options['bbtitle']; break;
    case 'Install': $titlestring = iif($title, "$title - ") . $vbulletin->options['bbtitle']; break;
    =========


    Найти:
    =========
    <script type=\"text/javascript\" src=\"../clientscript/vbulletin_global.js\"></script>\n\r";
    =========

    Заменить на:
    =========
    <script type=\"text/javascript\" src=\"../clientscript/global.js\"></script>\n\r";
    =========


    Найти and delete:
    =========
    if (!defined('NO_CP_COPYRIGHT'))
    {
    $output_version = defined('FILE_VERSION_VBULLETIN') ? FILE_VERSION_VBULLETIN : $vbulletin->options['templateversion'];
    echo '<p align="center">' .
    construct_phrase($vbphrase['vbulletin_copyright_orig'], $output_version, date('Y')) .
    '</p>';
    }
    =========


    Найти:
    =========
    <script type="text/javascript" src="../clientscript/vbulletin_date_picker.js"></script>
    =========

    Заменить на:
    =========
    <script type="text/javascript" src="../clientscript/date_picker.js"></script>
    =========



    includes\adminfunctions_help.php

    Найти:
    =========
    // $path = './path/to/install/vbulletin-adminhelp.xml';
    =========

    Заменить на:
    =========
    // $path = './path/to/install/adminhelp.xml';
    =========


    Найти:
    =========
    print_stop_message('please_ensure_x_file_is_located_at_y', 'vbulletin-adminhelp.xml', $GLOBALS['path']);
    =========

    Заменить на:
    =========
    print_stop_message('please_ensure_x_file_is_located_at_y', 'adminhelp.xml', $GLOBALS['path']);
    =========



    includes\adminfunctions_language.php

    Найти:
    =========
    print_stop_message('please_ensure_x_file_is_located_at_y', 'vbulletin-language.xml', $GLOBALS['path']);
    =========

    Заменить на:
    =========
    print_stop_message('please_ensure_x_file_is_located_at_y', 'language.xml', $GLOBALS['path']);
    =========



    includes\adminfunctions_misc.php

    Найти:
    =========
    $xmlobj = new vB_XML_Parser(false, DIR . '/includes/xml/podcast_vbulletin.xml');
    =========

    Заменить на:
    =========
    $xmlobj = new vB_XML_Parser(false, DIR . '/includes/xml/podcast_forum.xml');
    =========


    Найти:
    =========
    $xmlobj = new vB_XML_Parser(false, DIR . '/includes/xml/podcast_vbulletin.xml');
    =========

    Заменить на:
    =========
    $xmlobj = new vB_XML_Parser(false, DIR . '/includes/xml/podcast_forum.xml');
    =========



    includes\adminfunctions_options.php

    Найти:
    =========
    * $path = './path/to/install/vbulletin-settings.xml';
    =========

    Заменить на:
    =========
    * $path = './path/to/install/settings.xml';
    =========


    Найти:
    =========
    print_stop_message('please_ensure_x_file_is_located_at_y', 'vbulletin-settings.xml', $GLOBALS['path']);
    =========

    Заменить на:
    =========
    print_stop_message('please_ensure_x_file_is_located_at_y', 'settings.xml', $GLOBALS['path']);
    =========


    Найти:
    =========
    * $path = './path/to/install/vbulletin-settings.xml';
    =========

    Заменить на:
    =========
    * $path = './path/to/install/settings.xml';
    =========


    Найти:
    =========
    print_stop_message('please_ensure_x_file_is_located_at_y', 'vbulletin-settings.xml', $GLOBALS['path']);
    =========

    Заменить на:
    =========
    print_stop_message('please_ensure_x_file_is_located_at_y', 'settings.xml', $GLOBALS['path']);
    =========



    includes\adminfunctions_template.php

    Найти:
    =========
    if (preg_match('#^<link rel="stylesheet" type="text/css" href="(clientscript/vbulletin_css/style-\w{8}-0*' . $styleid . '\.css)"( id="vbulletin_css")? />$#', $csscontents, $match))
    =========

    Заменить на:
    =========
    if (preg_match('#^<link rel="stylesheet" type="text/css" href="(clientscript/css/style-\w{8}-0*' . $styleid . '\.css)"( id="css")? />$#', $csscontents, $match))
    =========


    Найти:
    =========
    $cssfilename = 'clientscript/vbulletin_css/style-' . $adblock_is_evil . '-' . str_pad($styleid, 5, '0', STR_PAD_LEFT) . '.css';
    =========

    Заменить на:
    =========
    $cssfilename = 'clientscript/css/style-' . $adblock_is_evil . '-' . str_pad($styleid, 5, '0', STR_PAD_LEFT) . '.css';
    =========


    Найти:
    =========
    $QUERY[] = "css = '" . $vbulletin->db->escape_string("<link rel=\"stylesheet\" type=\"text/css\" href=\"$cssfilename\" id=\"vbulletin_css\" />") . "'";
    =========

    Заменить на:
    =========
    $QUERY[] = "css = '" . $vbulletin->db->escape_string("<link rel=\"stylesheet\" type=\"text/css\" href=\"$cssfilename\" id=\"css\" />") . "'";
    =========


    Найти:
    =========
    $QUERY[] = "css = '" . $vbulletin->db->escape_string("<style type=\"text/css\" id=\"vbulletin_css\">\r\n<!--\r\n$css\r\n-->\r\n</style>") . "'";
    =========

    Заменить на:
    =========
    $QUERY[] = "css = '" . $vbulletin->db->escape_string("<style type=\"text/css\" id=\"css\">\r\n<!--\r\n$css\r\n-->\r\n</style>") . "'";
    =========


    Найти:
    =========
    return trim("/* vBulletin 3 CSS For Style '$styletitle' (styleid: $styleid) */\r\n" . implode('', $cssarray) . $extra . "\r\n" . $extra2);
    =========

    Заменить на:
    =========
    return implode('', $cssarray) . $extra . "\r\n" . $extra2;
    =========


    Найти:
    =========
    $iswritable = is_writable(DIR . '/clientscript/vbulletin_css/');
    =========

    Заменить на:
    =========
    $iswritable = is_writable(DIR . '/clientscript/css/');
    =========


    Найти:
    =========
    echo '<script type="text/javascript" src="../clientscript/vbulletin_templatemgr.js"></script>';
    =========

    Заменить на:
    =========
    echo '<script type="text/javascript" src="../clientscript/templatemgr.js"></script>';
    =========


    Найти:
    =========
    print_stop_message('please_ensure_x_file_is_located_at_y', 'vbulletin-style.xml', $vbulletin->GPC['path']);
    =========

    Заменить на:
    =========
    print_stop_message('please_ensure_x_file_is_located_at_y', 'style.xml', $vbulletin->GPC['path']);
    =========



    includes\class_bitfield_builder.php

    Найти:
    =========
    // opendir failed or bitfield_vbulletin.xml is missing or it has a parse error
    if (empty($temp['vbulletin']))
    {
    if (is_readable(DIR . '/includes/xml/bitfield_vbulletin.xml'))
    {
    if ($data = $obj->fetch(DIR . '/includes/xml/bitfield_vbulletin.xml', $layout, $include_disabled))
    {
    $temp['vbulletin'] = $data;
    }
    else
    {
    trigger_error('Could not parse ' . DIR . '/includes/xml/bitfield_vbulletin.xml', E_USER_ERROR);
    }
    }
    else
    {
    trigger_error('Could not open ' . DIR . '/includes/xml/bitfield_vbulletin.xml', E_USER_ERROR);
    }
    }
    =========


    Заменить на:
    =========
    // opendir failed or bitfield_forum.xml is missing or it has a parse error
    if (empty($temp['vbulletin']))
    {
    if (is_readable(DIR . '/includes/xml/bitfield_forum.xml'))
    {
    if ($data = $obj->fetch(DIR . '/includes/xml/bitfield_forum.xml', $layout, $include_disabled))
    {
    $temp['vbulletin'] = $data;
    }
    else
    {
    trigger_error('Could not parse ' . DIR . '/includes/xml/bitfield_forum.xml', E_USER_ERROR);
    }
    }
    else
    {
    trigger_error('Could not open ' . DIR . '/includes/xml/bitfield_forum.xml', E_USER_ERROR);
    }
    }
    =========



    includes\class_dbalter.php

    Найти and delete:
    =========
    * @copyright http://www.vbulletin.com/license.html
    =========




    includes\class_encryption.php

    Найти and delete:
    =========
    * @copyright http://www.vbulletin.com/license.html
    =========


    Найти and delete:
    =========
    * @copyright http://www.vbulletin.com/license.html
    =========



    includes\class_hook.php

    Найти and delete:
    =========
    * @copyright http://www.vbulletin.com/license.html
    =========



    includes\class_mail.php

    Найти and delete:
    =========
    * @copyright http://www.vbulletin.com/license.html
    =========


    Найти and delete:
    =========
    * @copyright http://www.vbulletin.com/license.html
    =========


    Найти and delete:
    =========
    * @copyright http://www.vbulletin.com/license.html
    =========



    includes\class_xml.php

    Найти and delete:
    =========
    * @copyright http://www.vbulletin.com/license.html
    =========



    includes\config.php.new

    Найти:
    =========
    // This is the type of the database server on which your vBulletin database will be located.
    =========

    Заменить на:
    =========
    // This is the type of the database server on which your board database will be located.
    =========


    Найти:
    =========
    // This is the name of the database where your vBulletin will be located.
    =========

    Заменить на:
    =========
    // This is the name of the database where your board will be located.
    =========


    Найти:
    =========
    // Prefix that your vBulletin tables have in the database.
    =========

    Заменить на:
    =========
    // Prefix that your board tables have in the database.
    =========


    Найти:
    =========
    // incompatible with vBulletin. Setting this value to "true" disables those
    // behaviors. You only need to modify this value if vBulletin recommends it.
    =========

    Заменить на:
    =========
    // incompatible with the board. Setting this value to "true" disables those
    // behaviors. You only need to modify this value if the board recommends it.
    =========


    Найти:
    =========
    // Prefix that all vBulletin cookies will have
    =========


    Заменить на:
    =========
    // Prefix that all board cookies will have
    =========


    Найти:
    =========
    // for vBulletin to function normally. You can ignore this setting unless vBulletin
    =========

    Заменить на:
    =========
    // for the board to function normally. You can ignore this setting unless the board
    =========


    Найти:
    =========
    // Images that exceed either dimension below will not be resized by vBulletin. If you need to resize larger images, alter these settings.
    =========

    Заменить на:
    =========
    // Images that exceed either dimension below will not be resized by the board. If you need to resize larger images, alter these settings.
    =========



    includes\database_error_message.html

    Найти:
    =========
    Database error in $this->appname $vboptions[templateversion]:
    =========

    Заменить на:
    =========
    Database error:
    =========



    includes\functions.php

    Найти:
    =========
    * Sets $timediff, $datenow, $timenow, $copyrightyear
    =========

    Заменить на:
    =========
    * Sets $timediff, $datenow, $timenow
    =========


    Найти:
    =========
    global $vbulletin, $timediff, $datenow, $timenow, $copyrightyear;
    =========

    Заменить на:
    =========
    global $vbulletin, $timediff, $datenow, $timenow;
    =========


    Найти and delete:
    =========
    $copyrightyear = vbdate('Y', TIMENOW, false, false);
    =========


    Найти:
    =========
    global $copyrightyear, $timediff, $timenow, $datenow;
    =========

    Заменить на:
    =========
    global $timediff, $timenow, $datenow;
    =========


    Найти and delete:
    =========
    $vbphrase['vbulletin_copyright_orig'] = $vbphrase['vbulletin_copyright'];
    $vbphrase['vbulletin_copyright'] = construct_phrase($vbphrase['vbulletin_copyright'], $vbulletin->options['templateversion'], $copyrightyear);
    $vbphrase['powered_by_vbulletin'] = construct_phrase($vbphrase['powered_by_vbulletin'], $vbulletin->options['templateversion'], $copyrightyear);
    =========


    Найти:
    =========
    vBulletin {$vbulletin->options[templateversion]} Debug Information
    =========


    Заменить на:
    =========
    Debug Information
    =========



    cpstyles\2_Default\controlpanel.css

    Найти:
    =========
    /* ############################################################################# */
    /* vBulletin 2 Default Control Panel CSS */
    /* ############################################################################# */

    /* ############################################################################# */
    =========

    Заменить на:
    =========
    /* ############################################################################# */
    =========


    Найти:
    =========
    .smallfont, dfn, fieldset, fieldset td, .copyright
    =========

    Заменить на:
    =========
    .smallfont, dfn, fieldset, fieldset td
    =========


    Найти and delete:
    =========
    /* vBulletin copyright text shown at the bottom of most control panel pages */
    a.copyright:link, a.copyright:visited, a.copyright:active
    {
    text-decoration: none;
    color: #777777;
    border-top: dashed 1px #777777;
    padding: 1px;
    }

    =========



    cpstyles\3_Default\controlpanel.css

    Найти:
    =========
    /* ############################################################################# */
    /* vBulletin 3 Default Control Panel CSS */
    /* ############################################################################# */

    /* ############################################################################# */
    =========

    Заменить на:
    =========
    /* ############################################################################# */
    =========


    Найти:
    =========
    .smallfont, dfn, fieldset, fieldset td, .copyright
    =========

    Заменить на:
    =========
    .smallfont, dfn, fieldset, fieldset td
    =========


    Найти:
    =========
    background: #EEF0F2 url("../../cpstyles/vBulletin_3_Default/cp_tblhead_bg.gif");
    =========

    Заменить на:
    =========
    background: #EEF0F2 url("../../cpstyles/3_Default/cp_tblhead_bg.gif");
    =========


    Найти:
    =========
    background: #DEE0E2 url("../../cpstyles/vBulletin_3_Default/cp_colheader_bg.gif");
    =========

    Заменить на:
    =========
    background: #DEE0E2 url("../../cpstyles/3_Default/cp_colheader_bg.gif");
    =========


    Найти:
    =========
    background: #EEF0F2 url("../../cpstyles/vBulletin_3_Default/cp_tblhead_bg.gif") repeat-x top;
    =========

    Заменить на:
    =========
    background: #EEF0F2 url("../../cpstyles/3_Default/cp_tblhead_bg.gif") repeat-x top;
    =========


    Найти:
    =========
    background: #00A6DA url("../../cpstyles/vBulletin_3_Default/option_name_bg.gif") no-repeat;
    =========

    Заменить на:
    =========
    background: #00A6DA url("../../cpstyles/3_Default/option_name_bg.gif") no-repeat;
    =========


    Найти:
    =========
    background: #00A6DA url("../../cpstyles/vBulletin_3_Default/option_name_bg.gif") no-repeat;
    =========

    Заменить на:
    =========
    background: #00A6DA url("../../cpstyles/3_Default/option_name_bg.gif") no-repeat;
    =========


    Найти and delete:
    =========
    /* vBulletin copyright text shown at the bottom of most control panel pages */
    a.copyright:link, a.copyright:visited, a.copyright:active
    {
    text-decoration: none;
    color: #5087AD;
    border-top: dashed 1px #5087AD;
    padding: 1px;
    }

    =========


    Найти:
    =========
    background: #086693 url("../../cpstyles/vBulletin_3_Default/cp_navbody_bg.gif");
    =========

    Заменить на:
    =========
    background: #086693 url("../../cpstyles/3_Default/cp_navbody_bg.gif");
    =========



    cpstyles\3_Frontend\controlpanel.css

    Найти:
    =========
    /* ############################################################################# */
    /* vBulletin 3 Front-End Control Panel CSS */
    /* ############################################################################# */

    /* ############################################################################# */
    =========

    Заменить на:
    =========
    /* ############################################################################# */
    =========


    Найти:
    =========
    .smallfont, dfn, fieldset, fieldset td, .copyright
    =========

    Заменить на:
    =========
    .smallfont, dfn, fieldset, fieldset td
    =========


    Найти:
    =========
    background: #EEF0F2 url("../../cpstyles/vBulletin_3_Frontend/cp_button_bg.gif");
    =========

    Заменить на:
    =========
    background: #EEF0F2 url("../../cpstyles/3_Frontend/cp_button_bg.gif");
    =========


    Найти:
    =========
    background: #869BBF url("../../cpstyles/vBulletin_3_Frontend/cp_tblhead_bg.gif") repeat-x top left;
    =========

    Заменить на:
    =========
    background: #869BBF url("../../cpstyles/3_Frontend/cp_tblhead_bg.gif") repeat-x top left;
    =========


    Найти:
    =========
    background: #5C7099 url("../../cpstyles/vBulletin_3_Frontend/cp_colheader_bg.gif") repeat-x top left;
    =========

    Заменить на:
    =========
    background: #5C7099 url("../../cpstyles/3_Frontend/cp_colheader_bg.gif") repeat-x top left;
    =========


    Найти:
    =========
    background: #869BBF url("../../cpstyles/vBulletin_3_Frontend/cp_tblhead_bg.gif") repeat-x top left;
    =========

    Заменить на:
    =========
    background: #869BBF url("../../cpstyles/3_Frontend/cp_tblhead_bg.gif") repeat-x top left;
    =========


    Найти:
    =========
    background: #5C7099 url("../../cpstyles/vBulletin_3_Frontend/cp_colheader_bg.gif") repeat-x top left;
    =========

    Заменить на:
    =========
    background: #5C7099 url("../../cpstyles/3_Frontend/cp_colheader_bg.gif") repeat-x top left;
    =========


    Найти:
    =========
    background: #5C7099 url("../../cpstyles/vBulletin_3_Frontend/cp_colheader_bg.gif") repeat-x top left;
    =========

    Заменить на:
    =========
    background: #5C7099 url("../../cpstyles/3_Frontend/cp_colheader_bg.gif") repeat-x top left;
    =========


    Найти and delete:
    =========
    /* vBulletin copyright text shown at the bottom of most control panel pages */
    a.copyright:link, a.copyright:visited, a.copyright:active
    {
    text-decoration: none;
    color: #888888;
    border-top: dashed 1px #888888;
    padding: 1px;
    }

    =========


    Найти:
    =========
    background: #5C7099 url("../../cpstyles/vBulletin_3_Frontend/cp_colheader_bg.gif") repeat-x top left;
    =========

    Заменить на:
    =========
    background: #5C7099 url("../../cpstyles/3_Frontend/cp_colheader_bg.gif") repeat-x top left;
    =========



    cpstyles\3_Manual\controlpanel.css

    Найти:
    =========
    /* ############################################################################# */
    /* vBulletin 3 Manual Control Panel CSS */
    /* Original design by Kier Darby - see http://www.vBulletin.com/docs/html */
    /* This ACP Style is made by Floris - http://www.vBulletin.nl/ */
    /* ############################################################################# */

    /* ############################################################################# */
    =========

    Заменить на:
    =========
    /* ############################################################################# */
    =========


    Найти:
    =========
    .smallfont, dfn, fieldset, fieldset td, .copyright
    =========

    Заменить на:
    =========
    .smallfont, dfn, fieldset, fieldset td
    =========


    Найти:
    =========
    background: #FFFFFF url("../../cpstyles/vBulletin_3_Manual/vb_logo_small.gif") no-repeat center right;
    =========

    Заменить на:
    =========
    background: #FFFFFF url("../../cpstyles/3_Manual/vb_logo_small.gif") no-repeat center right;
    =========


    Найти and delete:
    =========
    /* vBulletin copyright text shown at the bottom of most control panel pages */
    a.copyright:link, a.copyright:visited, a.copyright:active
    {
    text-decoration: none;
    color: #869BBF;
    border-top: dashed 1px #869BBF;
    padding: 1px;
    }

    =========



    clientscript\yui\connection.js

    Найти and delete:
    =========
    /*
    Copyright (c) 2007, Yahoo! Inc. All rights reserved.
    Code licensed under the BSD License:
    http://developer.yahoo.net/yui/license.txt
    version: 2.2.2
    */

    =========



    clientscript\yui\yahoo-dom-event.js

    Найти and delete:
    =========
    /*
    Copyright (c) 2007, Yahoo! Inc. All rights reserved.
    Code licensed under the BSD License:
    http://developer.yahoo.net/yui/license.txt
    version: 2.2.2
    */

    =========


    clientscript\editor.css

    Найти:
    =========
    .vBulletin_editor
    =========

    Заменить на:
    =========
    .editor
    =========



    clientscript\global.js

    Найти:
    =========
    // DHTML Popup Menu Handling (complements vbulletin_menu.js)
    =========

    Заменить на:
    =========
    // DHTML Popup Menu Handling (complements menu.js)
    =========


    Найти:
    =========
    function vBulletin_init()
    =========

    Заменить на:
    =========
    function init()
    =========



    clientscript\md5.js

    Найти and delete:
    =========
    * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
    * Digest Algorithm, as defined in RFC 1321.
    * Version 2.1 Copyright (C) Paul Johnston 1999 - 2002.
    * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
    * Distributed under the BSD License
    * See http://pajhome.org.uk/crypt/md5 for more info.
    =========



    clientscript\textedit.js

    Найти:
    =========
    if (document.styleSheets['vbulletin_css'])
    {
    this.editdoc.createStyleSheet().cssText = document.styleSheets['vbulletin_css'].cssText + ' p { margin: 0px; }';
    this.editdoc.body.className = 'wysiwyg';
    }
    =========

    Заменить на:
    =========
    if (document.styleSheets['css'])
    {
    this.editdoc.createStyleSheet().cssText = document.styleSheets['css'].cssText + ' p { margin: 0px; }';
    this.editdoc.body.className = 'wysiwyg';
    }
    =========



    archive\archive.css

    Найти and delete:
    =========
    #copyright {
    text-align: center;
    }
    =========



    archive\index.php

    Найти and delete:
    =========
    <div id=\"copyright\">$vbphrase[vbulletin_copyright]</div>
    =========



    admincp\backup.php

    Найти:
    =========
    header('Content-disposition: attachment; filename=vbulletin.sql');
    =========

    Заменить на:
    =========
    header('Content-disposition: attachment; filename=board.sql');
    =========



    admincp\css.php

    Найти:
    =========
    <script type="text/javascript" src="../clientscript/vbulletin_cpcolorpicker.js"></script>
    =========

    Заменить на:
    =========
    <script type="text/javascript" src="../clientscript/cpcolorpicker.js"></script>
    =========


    admincp\diagnostic.php

    Найти and delete:
    =========
    if ($_POST['do'] == 'doversion')
    {
    $extensions = array('.php', '.xml', '.js', '.htc', '.css', '.new', '.style', '.sh', '.htm', '.html', '.txt');

    $handle = @opendir(DIR . '/includes');
    if ($handle)
    {
    $md5_sums_array = array();
    $md5_sum_versions = array('vbulletin' => '3.6.8 Patch Level 2');
    $file_software_assoc = array();
    $scanned_md5_files = array();
    $ignored_files = array('/includes/config.php', '/includes/config.php.new', '/install/install.php', '/includes/version_vbulletin.php');
    $ignored_dirs = array('/cpstyles/', '/includes/datastore');

    while ($file = readdir($handle))
    {
    if (preg_match('#^md5_sums_.+$#siU', $file, $match))
    {
    unset($md5_sum_softwareid);
    include(DIR . "/includes/$match[0]");
    $relative_md5_sums = array();

    if (empty($md5_sum_softwareid))
    {
    $md5_sum_softwareid = 'vbulletin';
    }

    if ($vbulletin->options['forumhome'] != 'index' AND !empty($md5_sums['/']['index.php']))
    {
    $md5_sums['/']["{$vbulletin->options['forumhome']}.php"] = $md5_sums['/']['index.php'];
    unset($md5_sums['/']['index.php']);
    }

    // need to fix up directories which are configurable
    foreach ($md5_sums AS $key => $val)
    {
    $admin_dir = strpos($key, '/admincp');
    $mod_dir = strpos($key, '/modcp');

    // not using str_Заменить на since it could be greedy and Заменить на all values of admincp / modcp
    if ($vbulletin->config['Misc']['admincpdir'] !== 'admincp' AND $admin_dir === 0)
    {
    $key = substr_Заменить на($key, $vbulletin->config['Misc']['admincpdir'], 1, strlen('admincp'));
    }
    else if ($vbulletin->config['Misc']['modcpdir'] !== 'modcp' AND $mod_dir === 0)
    {
    $key = substr_Заменить на($key, $vbulletin->config['Misc']['modcpdir'], 1, strlen('modcp'));
    }

    $relative_md5_sums["$key"] = $val;

    foreach (array_keys($val) AS $file)
    {
    $file_software_assoc["$key/$file"] = $md5_sum_softwareid;
    }
    }

    $scanned_md5_files[] = $match[0];
    $ignored_files[] = "/includes/$match[0]";
    $md5_sums_array = array_merge_recursive($relative_md5_sums, $md5_sums_array);
    }
    }
    closedir($handle);

    if (empty($md5_sums_array) OR !in_array('md5_sums_vbulletin.php', $scanned_md5_files))
    {
    print_stop_message('unable_to_read_md5_sums');
    }

    $errors = array();
    $file_count = array();

    foreach ($md5_sums_array AS $directory => $md5_sums)
    {
    foreach ($ignored_dirs AS $ignored_dir)
    {
    if (substr($directory, 0, strlen($ignored_dir)) == $ignored_dir)
    {
    // directory is an ignored directory, skip the contents
    continue 2;
    }
    }

    $handle = @opendir(DIR . $directory);
    if ($handle)
    {
    $file_count["$directory"] = 0;

    while ($file = readdir($handle))
    {
    if ($file == '.' OR $file == '..')
    {
    continue;
    }

    if (is_file(DIR . "$directory/$file") AND !in_array("$directory/$file", $ignored_files) AND substr($file, 0, 1) != '.' AND in_array($ext = '.' . file_extension($file), $extensions))
    {
    $file_count["$directory"]++;

    if ($file == 'index.html' AND trim(file_get_contents(DIR . $directory . '/' . $file)) == '')
    {
    continue;
    }

    // check if file has a record in the MD5 sums array
    if ($md5_sums["$file"])
    {
    $check_md5 = true;

    if (is_readable(DIR . $directory . '/' . $file))
    {
    // valid, readable file -- try to match the contents and version
    if (in_array($ext, array('.php', '.js')) AND $fp = @fopen(DIR . $directory . '/' . $file, 'rb'))
    {
    $linenumber = 0;
    $finished = false;
    $matches = array();

    while ($line = fgets($fp, 4096) AND $linenumber <= 10)
    {
    if ($ext == '.php' AND preg_match('#\|\| \# vBulletin[^0-9]* (\d.*?) -#si', $line, $matches))
    {
    $finished = true;
    }
    else if (preg_match('#^\|\| \# vBulletin[^0-9]* (\d.*)$#si', $line, $matches))
    {
    $finished = true;
    }

    $linenumber++;

    if ($finished)
    {
    if (!empty($file_software_assoc["$directory/$file"]))
    {
    $version_check = $md5_sum_versions[$file_software_assoc["$directory/$file"]];
    }
    else
    {
    $version_check = $md5_sum_versions['vbulletin'];
    }

    if (strtolower(trim($matches[1])) != strtolower($version_check))
    {
    $check_md5 = false;
    $errors["$directory"]["$file"][] = construct_phrase($vbphrase['file_version_mismatch_x_expected_y'], htmlspecialchars_uni($matches[1]), htmlspecialchars_uni($version_check));
    }
    break;
    }
    }
    fclose($fp);
    }

    if ($check_md5 AND md5(str_Заменить на("\r\n", "\n", file_get_contents(DIR . $directory . '/' . $file))) != $md5_sums["$file"])
    {
    $errors["$directory"]["$file"][] = $vbphrase['file_contents_mismatch'];
    }
    }
    else
    {
    // file exists, but we can't read it
    $errors["$directory"]["$file"][] = $vbphrase['file_not_readable'];
    }
    }
    else
    {
    // file is not listed in the md5_sums files
    $errors["$directory"]["$file"][] = $vbphrase['file_not_recognized'];
    }

    $md5_sums["$file"] = true;
    }
    }

    // now check for any files listed in the md5 sum files that we have not found
    foreach ($md5_sums AS $file => $value)
    {
    if ($value !== true AND !in_array("$directory/$file", $ignored_files))
    {
    $errors["$directory"]["$file"][] = $vbphrase['file_not_found'];
    }
    }

    closedir($handle);
    }
    }

    print_form_header('diagnostic', 'doversion');
    print_table_header($vbphrase['suspect_file_versions']);

    ksort($file_count);

    foreach ($file_count AS $directory => $file_count)
    {
    print_description_row("<div style=\"float:$stylevar
    \">" . construct_phrase($vbphrase['scanned_x_files'], $file_count) . "</div>.$directory", 0, 2, 'thead');

    if (is_array($errors["$directory"]))
    {
    ksort($errors["$directory"]);

    foreach ($errors["$directory"] AS $file => $error)
    {
    print_label_row("<strong>$file</strong>", implode('<br />', $error));
    }
    }
    }

    print_submit_row($vbphrase['repeat_process'], false);
    }
    else
    {
    trigger_error(construct_phrase($vbphrase['unable_to_open_x'], 'includes/*'), E_USER_ERROR);
    }
    }

    =========

    Найти and delete:
    =========
    print_form_header('diagnostic', 'doversion');
    print_table_header($vbphrase['suspect_file_versions']);
    print_description_row(construct_phrase($vbphrase['file_versions_explained'], $vbulletin->options['templateversion']));
    print_submit_row($vbphrase['submit'], 0);

    =========



    admincp\global.php

    Найти:
    =========
    if (file_exists(DIR . '/includes/version_vbulletin.php'))
    {
    include_once(DIR . '/includes/version_vbulletin.php');
    }
    =========

    Заменить на:
    =========
    if (file_exists(DIR . '/includes/version.php'))
    {
    include_once(DIR . '/includes/version.php');
    }
    =========



    admincp\help.php

    Найти:
    =========
    file_download($doc, 'vbulletin-adminhelp.xml', 'text/xml');
    =========

    Заменить на:
    =========
    file_download($doc, 'adminhelp.xml', 'text/xml');
    =========


    Найти:
    =========
    print_input_row($vbphrase['import_xml_file'], 'serverfile', './install/vbulletin-adminhelp.xml');
    =========

    Заменить на:
    =========
    print_input_row($vbphrase['import_xml_file'], 'serverfile', './install/adminhelp.xml');
    =========



    admincp\index.php

    Найти:
    =========
    <td style="text-align:<?php echo $stylevar['left']; ?>"><b><?php echo $vbphrase['admin_control_panel']; ?></b> (vBulletin <?php echo FILE_VERSION_VBULLETIN; ?>)<?php echo iif(is_demo_mode(), ' <b>DEMO MODE</b>'); ?></td>
    <td><div id="head_version_link" target="_blank">&nbsp;</div></td>
    =========

    Заменить на:
    =========
    <td style="text-align:<?php echo $stylevar['left']; ?>"><b><?php echo $vbphrase['admin_control_panel']; ?></b><?php echo iif(is_demo_mode(), ' <b>DEMO MODE</b>'); ?></td>
    =========


    Найти and delete:
    =========
    <script type="text/javascript">
    <!--
    var vb_version = '<?php echo FILE_VERSION_VBULLETIN; ?>';
    fetch_object('head_version_link').innerHTML = construct_phrase('<?php echo $vbphrase['latest_version_available_x']; ?>', ((typeof(vb_version) == 'undefined' || vb_version == '') ? '<?php echo $vbphrase['n_a']; ?>' : vb_version));
    //-->
    </script>
    =========


    Найти and delete:
    =========
    define('NO_CP_COPYRIGHT', true);
    =========


    Найти and delete:
    =========
    ?><img src="../cpstyles/<?php echo $vbulletin->options['cpstylefolder']; ?>/cp_logo.gif" title="<?php echo $vbphrase['admin_control_panel']; ?>" alt="" border="0" hspace="4" vspace="4" /><?php
    =========


    Найти:
    =========
    if (empty($navfiles['vbulletin'])) // opendir failed or cpnav_vbulletin.xml is missing
    {
    if (is_readable(DIR . '/includes/xml/cpnav_vbulletin.xml'))
    {
    $navfiles['vbulletin'] = 'cpnav_vbulletin.xml';
    }
    else
    {
    echo construct_phrase($vbphrase['could_not_open_x'], DIR . '/includes/xml/cpnav_vbulletin.xml');
    exit;
    }
    }
    =========

    Заменить на:
    =========
    if (empty($navfiles['vbulletin'])) // opendir failed or cpnav_forum.xml is missing
    {
    if (is_readable(DIR . '/includes/xml/cpnav_forum.xml'))
    {
    $navfiles['vbulletin'] = 'cpnav_forum.xml';
    }
    else
    {
    echo construct_phrase($vbphrase['could_not_open_x'], DIR . '/includes/xml/cpnav_forum.xml');
    exit;
    }
    }
    =========


    Найти and delete:
    =========
    define('NO_CP_COPYRIGHT', true);
    =========


    Найти:
    =========
    // *************************************
    // vBULLETIN CREDITS
    require_once(DIR . '/includes/vbulletin_credits.php');

    ?>

    <p class="smallfont" align="center">
    <!--<?php echo construct_phrase($vbphrase['vbulletin_copyright'], $vbulletin->options['templateversion'], date('Y')); ?><br />-->
    <script type="text/javascript">
    <!--
    var this_vb_version = "<?php echo FILE_VERSION_VBULLETIN; ?>";
    document.write(construct_phrase('<?php echo $vbphrase['your_version_of_vbulletin_is_up_to_date']; ?>', this_vb_version));
    // -->
    </script>
    </p>

    <?php

    unset($DEVDEBUG);

    ?>
    <?php
    =========

    Заменить на:
    =========
    unset($DEVDEBUG);
    =========



    admincp\language.php

    Найти:
    =========
    define('DEFAULT_FILENAME', 'vbulletin-language.xml');
    =========

    Заменить на:
    =========
    define('DEFAULT_FILENAME', 'language.xml');
    =========


    Найти:
    =========
    print_input_row($vbphrase['import_xml_file'], 'serverfile', './install/vbulletin-language.xml');
    =========

    Заменить на:
    =========
    print_input_row($vbphrase['import_xml_file'], 'serverfile', './install/language.xml');
    =========



    admincp\options.php

    Найти:
    =========
    file_download($doc, 'vbulletin-settings.xml', 'text/xml');
    =========

    Заменить на:
    =========
    file_download($doc, 'settings.xml', 'text/xml');
    =========


    Найти:
    =========
    file_download($doc, 'vbulletin-settings.xml', 'text/xml');
    =========

    Заменить на:
    =========
    file_download($doc, 'settings.xml', 'text/xml');
    =========


    Найти:
    =========
    print_input_row($vbphrase['import_xml_file'], 'serverfile', './install/vbulletin-settings.xml');
    =========

    Заменить на:
    =========
    print_input_row($vbphrase['import_xml_file'], 'serverfile', './install/settings.xml');
    =========


    Найти:
    =========
    echo '<script type="text/javascript" src="../clientscript/vbulletin_cpoptions_scripts.js"></script>';
    =========

    Заменить на:
    =========
    echo '<script type="text/javascript" src="../clientscript/cpoptions_scripts.js"></script>';
    =========


    Найти:
    =========
    <script type="text/javascript" src="../clientscript/vbulletin_settings_validate.js"></script>
    =========


    Заменить на:
    =========
    <script type="text/javascript" src="../clientscript/settings_validate.js"></script>
    =========


    Найти:
    =========
    print_input_row($vbphrase['restore_xml_file'], 'serverfile', './install/vbulletin-settings.xml');
    =========

    Заменить на:
    =========
    print_input_row($vbphrase['restore_xml_file'], 'serverfile', './install/settings.xml');
    =========



    admincp\template.php

    Найти:
    =========
    ?><script type="text/javascript" src="../clientscript/vbulletin_templatemgr.js"></script><?php
    =========

    Заменить на:
    =========
    ?><script type="text/javascript" src="../clientscript/templatemgr.js"></script><?php
    =========


    Найти:
    =========
    $vbulletin->GPC['filename'] = 'vbulletin-style.xml';
    =========

    Заменить на:
    =========
    $vbulletin->GPC['filename'] = 'style.xml';
    =========


    Найти:
    =========
    print_input_row($vbphrase['filename'], 'filename', 'vbulletin-style.xml');
    =========

    Заменить на:
    =========
    print_input_row($vbphrase['filename'], 'filename', 'style.xml');
    =========


    Найти:
    =========
    print_input_row($vbphrase['import_xml_file'], 'serverfile', './install/vbulletin-style.xml');
    =========

    Заменить на:
    =========
    print_input_row($vbphrase['import_xml_file'], 'serverfile', './install/style.xml');
    =========


    Найти and delete:
    =========
    'confirmremoval' => TYPE_BOOL,
    =========


    Найти and delete:
    =========

    if ($vbulletin->GPC['title'] == 'footer' AND !$vbulletin->GPC['confirmremoval'])
    {
    if (strpos($vbulletin->GPC['template'], '$vbphrase[powered_by_vbulletin]') === false)
    {
    print_form_header('template', 'inserttemplate', 0, 1, '', '75%');
    construct_hidden_code('confirmremoval', 1);
    construct_hidden_code('title', $vbulletin->GPC['title']);
    construct_hidden_code('template', $vbulletin->GPC['template']);
    construct_hidden_code('group', $vbulletin->GPC['group']);
    construct_hidden_code('Найтиstring', $vbulletin->GPC['Найтиstring']);
    construct_hidden_code('dostyleid', $vbulletin->GPC['dostyleid']);
    construct_hidden_code('savehistory', intval($vbulletin->GPC['savehistory']));
    construct_hidden_code('histcomment', $vbulletin->GPC['histcomment']);
    construct_hidden_code('product', $vbulletin->GPC['product']);
    print_table_header($vbphrase['confirm_removal_of_copyright_notice']);
    print_description_row($vbphrase['it_appears_you_are_removing_vbulletin_copyright']);
    print_submit_row($vbphrase['yes'], 0, 2, $vbphrase['no']);
    print_cp_footer();
    exit;
    }
    =========



    admincp\textarea.php

    Найти:
    =========
    <script type="text/javascript" src="../clientscript/vbulletin_global.js"></script>
    =========

    Заменить на:
    =========
    <script type="text/javascript" src="../clientscript/global.js"></script>
    =========​
     

    Вложения:

    • VBunbrand.txt
      Размер файла:
      79,9 КБ
      Просмотров:
      17
    antiadmin, raptor и Noikudo нравится это.
  2. Noikudo

    Noikudo Постоялец

    Регистр.:
    22 июн 2007
    Сообщения:
    112
    Симпатии:
    16
    Спасибо конечно но, имхо, маскировать воблу под ПыХыПыБыБы или еще какой-то двиг незачем... Да и сомневаюсь я что этот впособ все абсолютно скроет, ведь что б исчезли все признаки воблы немного переписать движок не достаточно, тут надо писать свой на основе воблы, а это не так легко.
     
  3. g0rn

    g0rn Постоялец

    Регистр.:
    3 июн 2007
    Сообщения:
    137
    Симпатии:
    63
    dima441 нравится это.
Статус темы:
Закрыта.