форум vBSupport.ru > vBulletin > vBulletin 3.8.x > Вопросы по vBulletin 3.8
Register Меню vBsupport Изображения Files Manager О рекламе Today's Posts Search
  • Родная гавань
  • Блок РКН снят
  • Premoderation
  • For English speaking users
  • Каталог Фрилансеров
  • If you want to buy some product or script
  • Администраторам
VBsupport перешел с домена .ORG на родной .RU Ура! Пожалуйста, обновите свои закладки - VBsupport.ru
Блок РКН снят, форум доступен на всей территории России, включая новые терртории, без VPN
На форуме введена премодерация ВСЕХ новых пользователей

Почта с временных сервисов, типа mailinator.com, gawab.com и/или прочих, которые предоставляют временный почтовый ящик без регистрации и/или почтовый ящик для рассылки спама, отслеживается и блокируется, а так же заносится в спам-блок форума, аккаунты удаляются
for English speaking users:
You may be surprised with restriction of access to the attachments of the forum. The reason is the recent change in vbsupport.org strategy:

- users with reputation < 10 belong to "simple_users" users' group
- if your reputation > 10 then administrator (kerk, Luvilla) can decide to move you into an "improved" group, but only manually

Main idea is to increase motivation of community members to share their ideas and willingness to support to each other. You may write an article for the subject where you are good enough, you may answer questions, you may share vbulletin.com/org content with vbsupport.org users, receiving "thanks" equal your reputation points. We should not only consume, we should produce something.

- you may:
* increase your reputation (doing something useful for another members of community) and being improved
* purchase temporary access to the improved category:
10 $ for 3 months. - this group can download attachments, reputation/posts do not matter.
20 $ for 3 months. - this group can download attachments, reputation/posts do not matter + adds eliminated + Inbox capacity increased + files manager increased permissions.

Please contact kerk or Luvilla regarding payments.

Important!:
- if your reputation will become less then 0, you will be moved into "simple_users" users' group automatically.*
*for temporary groups (pre-paid for 3 months) reputation/posts do not matter.
Уважаемые пользователи!

На форуме открыт новый раздел "Каталог фрилансеров"

и отдельный раздел для платных заказов "Куплю/Закажу"

Если вы хотите приобрести какой то скрипт/продукт/хак из каталогов перечисленных ниже:
Каталог модулей/хаков
Ещё раз обращаем Ваше внимание: всё, что Вы скачиваете и устанавливаете на свой форум, Вы устанавливаете исключительно на свой страх и риск.
Сообщество vBSupport'а физически не в состоянии проверять все стили, хаки и нули, выкладываемые пользователями.
Помните: безопасность Вашего проекта - Ваша забота.
Убедительная просьба: при обнаружении уязвимостей или сомнительных кодов обязательно отписывайтесь в теме хака/стиля
Спасибо за понимание
 
 
 
 
Badagoni
Продвинутый
 
Badagoni's Avatar
Default Проблемы с установкой
0

Всем привет, ребят давно не пользовался воблой решил установить форум и столкнулся с такой проблемой, на странице установки мне выпадает такое сообщение.
Могли бы вы вкратце сказать что это такое и с чем я столкнулся?
Версия воблы 3,8,9

PHP Code:
<?php
/*======================================================================*\
|| #################################################################### ||
|| # vBulletin 3.8.9
|| # ---------------------------------------------------------------- # ||
|| # Copyright ©2000-2015 vBulletin Solutions, Inc. All Rights Reserved. ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| #################################################################### ||
\*======================================================================*/

// ######################## SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// ##################### DEFINE IMPORTANT CONSTANTS #######################
define('THIS_SCRIPT''install.php');
define('VERSION''3.8.9'); // change this in class_core as well!

define('TIMENOW'time());

// ########################## REQUIRE BACK-END ############################

if ($_GET['step'] > OR $_POST['step'] > 2)
{
    require_once(
'./installcore.php');
    
// connected to the database now lets load schema
    
require_once(DIR '/install/mysql-schema.php');
}
else
{
    if (
$_ENV['REQUEST_URI'] OR $_SERVER['REQUEST_URI'])
    {
        
$scriptpath $_SERVER['REQUEST_URI'] ? $_SERVER['REQUEST_URI'] : $_ENV['REQUEST_URI'];
    }
    else
    {
        if (
$_ENV['PATH_INFO'] OR $_SERVER['PATH_INFO'])
        {
            
$scriptpath $_SERVER['PATH_INFO'] ? $_SERVER['PATH_INFO']: $_ENV['PATH_INFO'];
        }
        else if (
$_ENV['REDIRECT_URL'] OR $_SERVER['REDIRECT_URL'])
        {
            
$scriptpath $_SERVER['REDIRECT_URL'] ? $_SERVER['REDIRECT_URL']: $_ENV['REDIRECT_URL'];
        }
        else
        {
            
$scriptpath $_SERVER['PHP_SELF'] ? $_SERVER['PHP_SELF'] : $_ENV['PHP_SELF'];
        }

        if (
$_ENV['QUERY_STRING'] OR $_SERVER['QUERY_STRING'])
        {
            
$scriptpath .= '?' . ($_SERVER['QUERY_STRING'] ? $_SERVER['QUERY_STRING'] : $_ENV['QUERY_STRING']);
        }
    }
    
define('SCRIPTPATH'$scriptpath);
    
define('SKIPDB'true);

    require_once(
'./installcore.php');
}

// ########################################################################
// ######################### START MAIN SCRIPT ############################
// ########################################################################

if ($vbulletin->GPC['step'] == 'welcome')
{
    echo 
"<blockquote>\n";
    echo 
$install_phrases['welcome'];
    if (
function_exists('mmcache_get'))
    {
        echo 
$install_phrases['turck'];
    }
    echo 
"</blockquote>\n";
}

if (
$vbulletin->GPC['step'] == 1)
{
    if (!
file_exists(DIR '/includes/config.php'))
    {
        
$vbulletin->GPC['step']--;
        echo 
"<p>{$install_phrases['cant_find_config']}</p>";
    }
    else if (!
is_readable(DIR '/includes/config.php'))
    {
        
$vbulletin->GPC['step']--;
        echo 
"<p>{$install_phrases['cant_read_config']}</p>";
    }
    else
    {
        echo 
"<p>{$install_phrases['config_exists']}</p>";
    }
}

if (
$vbulletin->GPC['step'] == 2)
{
    
// turn off errors
    
$db->hide_errors();

    if (!
function_exists($db->functions['connect']))
    {
        echo 
"<p>" sprintf($install_phrases['database_functions_not_detected'], 'MySQL/MySQLi') . "</p>";
        
define('HIDEPROCEED'true);
    }
    else
    {
        
// make database connection
        
$db->connect(
            
$vbulletin->config['Database']['dbname'],
            
$vbulletin->config['MasterServer']['servername'],
            
$vbulletin->config['MasterServer']['port'],
            
$vbulletin->config['MasterServer']['username'],
            
$vbulletin->config['MasterServer']['password'],
            
$vbulletin->config['MasterServer']['usepconnect'],
            
$vbulletin->config['SlaveServer']['servername'],
            
$vbulletin->config['SlaveServer']['port'],
            
$vbulletin->config['SlaveServer']['username'],
            
$vbulletin->config['SlaveServer']['password'],
            
$vbulletin->config['SlaveServer']['usepconnect']
        );

        
$connect_errno $db->errno();
        
$connect_error = ($db->error $db->error $db->error());

        if (!empty(
$vbulletin->config['Database']['force_sql_mode']) AND $db->connection_master)
        {
            
$db->force_sql_mode('');
            
// small hack to prevent the above query from generating an error below
            
$db->query_read('SELECT 1 + 1');
        }

        echo 
"<p>{$install_phrases['attach_to_db']}</p>";

        if (
$db->connection_master)
        {
            if (
$connect_errno)
            { 
// error found
                
if ($connect_errno == 1049)
                {
                    echo 
"<p>{$install_phrases['no_db_found_will_create']}</p>";
                    
$db->query_write("CREATE DATABASE " $vbulletin->config['Database']['dbname']);
                    echo 
"<p>{$install_phrases['attempt_to_connect_again']}</p>";
                    
$db->select_db($vbulletin->config['Database']['dbname']);
                    if (
$db->errno() == 1049)
                    { 
// unable to create database
                        
echo "<p>{$install_phrases['unable_to_create_db']}</p>";
                        
define('HIDEPROCEED'true);
                    }
                    else
                    {
                        echo 
"<p>{$install_phrases['database_creation_successful']}</p>";
                    }
                }
                else
                { 
// Unknown Error
                    
echo "<p>{$install_phrases['connect_failed']}</p>";
                    echo 
"<p>" sprintf($install_phrases['db_error_num'], $connect_errno) . "</p>";
                    echo 
"<p>" sprintf($install_phrases['db_error_desc'], $connect_error) . "</p>";
                    echo 
"<p>{$install_phrases['check_dbserver']}</p>";
                    
define('HIDEPROCEED'true);
                }
            }
            else
            { 
// connection suceeded and database already exists
                
echo "<p>{$install_phrases['connection_succeeded']}</p>";

                if (empty(
$vbulletin->config['Database']['force_sql_mode']))
                {
                    
// check to see if MySQL is running strict mode and recommend disabling it
                    
$strict_mode_check $db->query_first("SHOW VARIABLES LIKE 'sql\\_mode'");
                    if (
strpos(strtolower($strict_mode_check['Value']), 'strict_') !== false)
                    {
                        echo 
"<p><strong>{$install_phrases['mysql_strict_mode']}</strong></p>";
                    }
                }

                
// see if there's a user table already
                
$db->query_write("SHOW FIELDS FROM " trim($vbulletin->config['Database']['tableprefix']) . "user");
                if (
$db->errno() == 0)
                { 
// echo vB already exists message
                    
define('HIDEPROCEED'true);
                    echo 
"<p><font size=\"+1\"><b>{$install_phrases['vb_installed_maybe_upgrade']}</b></font></p>";
                }

                echo 
"<p><a href=\"install.php?step=3&emptydb=true\">{$install_phrases['wish_to_empty_db']}</a></p>";
            }
        }
        else
        { 
// Unable to connect to database
            
echo "<p>" sprintf($install_phrases['db_error_desc'], $db->error) . "</p>";
            echo 
"<p><font size=\"+1\" color=\"red\"><b>{$install_phrases['no_connect_permission']}</b></font></p>";
            
define('HIDEPROCEED'true);
        }
    }
    
// end init db
}

if (
$vbulletin->GPC['step'] == 3)
{
    
$vbulletin->input->clean_array_gpc('r', array(
        
'emptydb' => TYPE_BOOL,
        
'confirm' => TYPE_BOOL,
    ));

    if (
$vbulletin->GPC['emptydb'])
    {
        if (!
$vbulletin->GPC['confirm'])
        {
            
$skipstep true;
            
define('HIDEPROCEED'true);

            
$tables = array();
            
$tables_result $db->query_read("SHOW TABLES");
            while (
$table $db->fetch_array($tables_resultDBARRAY_NUM))
            {
                
$tables["$table[0]"] = $table[0];
            }

            
$default_tables array_keys($schema['CREATE']['query']);

            echo 
"<script type=\"text/javascript\" src=\"../clientscript/yui/yahoo-dom-event/yahoo-dom-event.js\"></script>";
            echo 
"<script type=\"text/javascript\" src=\"../clientscript/vbulletin_global.js\"></script>";
            
print_form_header('install''');
            
construct_hidden_code('step'3);
            
construct_hidden_code('emptydb''true');
            
construct_hidden_code('confirm''true');
            
print_table_header($install_phrases['reset_database']);
            
print_description_row($install_phrases['delete_tables_instructions']);
            
print_description_row("<label><input type=\"checkbox\" id=\"allbox\" onclick=\"js_check_all(this.form)\" />$install_phrases[select_deselect_all_tables]</label>"false2"thead");

            
$options '';
            foreach (
$tables AS $table)
            {
                if (
substr($table0strlen(TABLE_PREFIX)) == TABLE_PREFIX)
                {
                    
$table_basename substr($tablestrlen(TABLE_PREFIX));

                    if (
in_array($table_basename$default_tables))
                    {
                        
$checked ' checked="checked"';
                        
$class 'alt2';
                    }
                    else
                    {
                        
$checked '';
                        
$class 'alt1';
                    }

                    
$options .= "<label class=\"$class\" style=\"float:$stylevar[left]; display:block; width:250px; margin:0px 6px 6px 0px\"><input type=\"checkbox\" name=\"drop[]\" value=\"$table\"$checked />" TABLE_PREFIX "<strong>$table_basename</strong></label>\n";
                }
                else
                {
                    
$options .= "<label class=\"alt1\" style=\"float:$stylevar[left]; display:block; width:250px; margin:0px 6px 6px 0px\"><input type=\"checkbox\" name=\"drop[]\" value=\"$table\" /><strong>$table</strong></label>\n";
                }
            }

            
print_description_row($options);
            
print_submit_row($install_phrases['delete_selected_tables']);

        }
        else
        {
            
$vbulletin->input->clean_gpc('p''drop'TYPE_ARRAY_NOHTML);

            echo 
"<div><strong>{$install_phrases['resetting_db']}</strong></div><ul>";
            
$result $db->query_write("SHOW tables");
            while (
$currow $db->fetch_array($resultDBARRAY_NUM))
            {
                if (
in_array($currow[0], $vbulletin->GPC['drop']))
                {
                    
$db->query_write("DROP TABLE IF EXISTS $currow[0]");
                    echo 
"<li>" sprintf($vbphrase['remove_table'], $currow[0]) . "</li>\n";
                }
            }
            echo 
'</ul><hr />';
        }
    }
    if (!
$skipstep)
    {
        
$query =& $schema['CREATE']['query'];
        
$explain =& $schema['CREATE']['explain'];
        
exec_queries();
        if (
$db->errno())
        {
            echo 
"<p>{$install_phrases['script_reported_errors']}</p>";
            echo 
"<p>{$install_phrases['errors_were']}</p>";
            echo 
"<p>" sprintf($install_phrases['db_error_num'], $db->errno()) . "</p>";
            echo 
"<p>" sprintf($install_phrases['db_error_desc'], $db->error()) . "</p>";
        }
        else
        {
            echo 
"<p>{$install_phrases['tables_setup']}</p>";
        }
    }
}

if (
$vbulletin->GPC['step'] == 4)
{
    
$query =& $schema['ALTER']['query'];
    
$explain =& $schema['ALTER']['explain'];
    
exec_queries();
}

if (
$vbulletin->GPC['step'] == 5)
{
    
$query =& $schema['INSERT']['query'];
    
$explain =& $schema['INSERT']['explain'];
    
exec_queries();
}

if (
$vbulletin->GPC['step'] == 6)
{
    require_once(
DIR '/includes/adminfunctions_language.php');

    if (!(
$xml file_read(DIR '/install/vbulletin-language.xml')))
    {
        echo 
'<p>' sprintf($vbphrase['file_not_found'], 'vbulletin-language.xml') . '</p>';
        
print_cp_footer();
    }

    echo 
'<p>' sprintf($vbphrase['importing_file'], 'vbulletin-language.xml');

    
xml_import_language($xml);
    
build_language();
    
build_language_datastore();
    echo 
"<br /><span class=\"smallfont\"><b>$vbphrase[ok]</b></span></p>";
}

if (
$vbulletin->GPC['step'] == 7)
{
    require_once(
DIR '/includes/adminfunctions_template.php');

    if (!(
$xml file_read(DIR '/install/vbulletin-style.xml')))
    {
        echo 
'<p>' sprintf($vbphrase['file_not_found'], 'vbulletin-style.xml') . '</p>';
        
print_cp_footer();
    }

    echo 
'<p>' sprintf($vbphrase['importing_file'], 'vbulletin-style.xml');

    
xml_import_style($xml);
    
build_all_styles(01);
    echo 
"<br /><span class=\"smallfont\"><b>$vbphrase[ok]</b></span></p>";
}

if (
$vbulletin->GPC['step'] == 8)
{
    require_once(
DIR '/includes/adminfunctions_help.php');

    if (!(
$xml file_read(DIR '/install/vbulletin-adminhelp.xml')))
    {
        echo 
'<p>' sprintf($vbphrase['file_not_found'], 'vbulletin-adminhelp.xml') . '</p>';
        
print_cp_footer();
    }

    echo 
'<p>' sprintf($vbphrase['importing_file'], 'vbulletin-adminhelp.xml');

    
xml_import_help_topics($xml);
    echo 
"<br /><span class=\"smallfont\"><b>$vbphrase[ok]</b></span></p>";
}

if (
$vbulletin->GPC['step'] == 9)
{
    require_once(
DIR '/includes/adminfunctions_options.php');

    
define('HIDEPROCEED'true);
    
$port = ((!empty($_SERVER['SERVER_PORT']) AND $_SERVER['SERVER_PORT'] != 80) ? ':' intval($_SERVER['SERVER_PORT']) : '');
    
$vboptions['bburl'] = 'http://' $_SERVER['SERVER_NAME'] . $port substr(SCRIPTPATH,0strpos(SCRIPTPATH'/install/'));
    
$vboptions['homeurl'] = 'http://' $_SERVER['SERVER_NAME'] . $port;
    
$webmaster 'webmaster@' preg_replace('#^www\.#'''$_SERVER['SERVER_NAME']);

    
print_form_header(substr(THIS_SCRIPT0, -strlen('.php')), '');
    
construct_hidden_code('step', ($vbulletin->GPC['step'] + 1));
    
print_table_header($install_phrases['general_settings']);
    
print_input_row($install_phrases['bbtitle'], 'vboptions[bbtitle]''Forums'040);
    
print_input_row($install_phrases['hometitle'], 'vboptions[hometitle]'''040);
    
print_input_row($install_phrases['bburl'], 'vboptions[bburl]'$vboptions['bburl'], 040);
    
print_input_row($install_phrases['homeurl'], 'vboptions[homeurl]'$vboptions['homeurl'], 040);
    
print_input_row($install_phrases['webmasteremail'], 'vboptions[webmasteremail]'$webmaster040);
    
print_label_row($install_phrases['cookiepath'], '
        <fieldset>
            <legend>' 
$install_phrases['suggested_settings'] . '</legend>
            <div style="padding:4px">
                <select name="vboptions[cookiepath]" tabindex="1" class="bginput">' 
.
                    
construct_select_options(fetch_valid_cookiepaths($vbulletin->script), '/') . '
                </select>
            </div>
        </fieldset>
        <br />
        <fieldset>
            <legend>' 
$install_phrases['custom_setting'] . '</legend>
            <div style="padding:4px">
                <label for="cookiepatho"><input type="checkbox" id="cookiepatho" name="cookiepath_other" tabindex="1" value="1" />' 
$install_phrases['use_custom_setting'] . '
                </label><br />
                <input type="text" class="bginput" size="25" name="cookiepath_value" value="" />
            </div>
        </fieldset>
    '
);
    
print_label_row($install_phrases['cookiedomain'], '
        <fieldset>
            <legend>' 
$install_phrases['suggested_settings'] . '</legend>
            <div style="padding:4px">
                <select name="vboptions[cookiedomain]" tabindex="1" class="bginput">' 
.
                    
construct_select_options(fetch_valid_cookiedomains($_SERVER['HTTP_HOST'], $install_phrases['blank']), '') . '
                </select>
            </div>
        </fieldset>
        <br />
        <fieldset>
            <legend>' 
$install_phrases['custom_setting'] . '</legend>
            <div style="padding:4px">
                <label for="cookiedomaino"><input type="checkbox" id="cookiedomaino" name="cookiedomain_other" tabindex="1" value="1" />' 
$install_phrases['use_custom_setting'] . '
                </label><br />
                <input type="text" class="bginput" size="25" name="cookiedomain_value" value="" />
            </div>
        </fieldset>
    '
);
    
print_submit_row($vbphrase['proceed'], $vbphrase['reset']);

}

if (
$vbulletin->GPC['step'] == 10)
{
    require_once(
DIR '/includes/adminfunctions_options.php');

    
$vbulletin->input->clean_array_gpc('p', array(
        
'vboptions'          => TYPE_ARRAY_NOHTML,
        
'cookiepath_other'   => TYPE_BOOL,
        
'cookiepath_value'   => TYPE_NOHTML,
        
'cookiedomain_other' => TYPE_BOOL,
        
'cookiedomain_value' => TYPE_NOHTML
    
));

    
$vbulletin->options =& $vbulletin->GPC['vboptions'];

    if (!(
$xml file_read(DIR '/install/vbulletin-settings.xml')))
    {
        echo 
'<p>' sprintf($vbphrase['file_not_found'], 'vbulletin-settings.xml') . '</p>';
        
print_cp_footer();
    }

    
// Enable fulltext search for new installs
    
$vbulletin->options['fulltextsearch'] = 1;

    if (
$vbulletin->GPC['cookiepath_other'] AND $vbulletin->GPC['cookiepath_value'])
    {
        
$vbulletin->options['cookiepath'] = $vbulletin->GPC['cookiepath_value'];
    }
    if (
$vbulletin->GPC['cookiedomain_other'] AND $vbulletin->GPC['cookiedomain_value'])
    {
        
$vbulletin->options['cookiedomain'] = $vbulletin->GPC['cookiedomain_value'];
    }

    
$gdinfo fetch_gdinfo();
    if (
$gdinfo['version'] >= 2)
    {
        if (
$gdinfo['freetype'] == 'freetype')
        {
            
$vbulletin->options['regimagetype'] = 'GDttf';
        }
    }
    else
    {
        
$vbulletin->options['hv_type'] = '0';
        
$vbulletin->options['regimagetype'] = '';
    }

    
$languageinfo $db->query_first("
        SELECT languageid
        FROM " 
TABLE_PREFIX "language
    "
);
    
$vbulletin->options['languageid'] = $languageinfo['languageid'];

    echo 
'<p>' sprintf($vbphrase['importing_file'], 'vbulletin-settings.xml');

    
xml_import_settings($xml);
    echo 
"<br /><span class=\"smallfont\"><b>$vbphrase[ok]</b></span></p>";
}

if (
$vbulletin->GPC['step'] == 11)
{
    
$vbulletin->input->clean_array_gpc('r', array(
        
'username'        => TYPE_STR,
        
'password'        => TYPE_STR,
        
'confirmpassword' => TYPE_STR,
        
'email'           => TYPE_STR,
    ));
    
define('HIDEPROCEED'true);

    
print_form_header(substr(THIS_SCRIPT0, -strlen('.php')), '');
    
construct_hidden_code('step', ($vbulletin->GPC['step'] + 1));
    
print_table_header("{$install_phrases['fill_in_for_admin_account']}");
    
print_input_row("<b>{$install_phrases['username']}</b>"'username'$vbulletin->GPC['username']);
    
print_password_row("<b>{$install_phrases['password']}</b>"'password'$vbulletin->GPC['password']);
    
print_password_row("<b>{$install_phrases['confirm_password']}</b>"'confirmpassword'$vbulletin->GPC['confirmpassword']);
    
print_input_row("<b>{$install_phrases['email_address']}</b>"'email'$vbulletin->GPC['email']);
    
print_submit_row($vbphrase['proceed'], $vbphrase['reset']);
}

if (
$vbulletin->GPC['step'] == 12)
{
    
$vbulletin->input->clean_array_gpc('p', array(
        
'username'        => TYPE_STR,
        
'password'        => TYPE_STR,
        
'confirmpassword' => TYPE_STR,
        
'email'           => TYPE_STR,
    ));

    if (empty(
$vbulletin->GPC['username']) OR empty($vbulletin->GPC['password']) OR empty($vbulletin->GPC['confirmpassword']) OR empty($vbulletin->GPC['email']))
    {
        
$vbulletin->GPC['step'] = $vbulletin->GPC['step'] - 2;
        echo 
"<p>{$install_phrases['complete_all_data']}</p>";

        
$hiddenfields['username'] = $vbulletin->GPC['username'];
        
$hiddenfields['password'] = $vbulletin->GPC['password'];
        
$hiddenfields['confirmpassword'] = $vbulletin->GPC['confirmpassword'];
        
$hiddenfields['email'] = $vbulletin->GPC['email'];
    }
    else if (
$vbulletin->GPC['password'] != $vbulletin->GPC['confirmpassword'])
    {
        
$vbulletin->GPC['step'] = $vbulletin->GPC['step'] - 2;
        echo 
"<p>{$install_phrases['password_not_match']}</p>";

        
$hiddenfields['username'] = $vbulletin->GPC['username'];
        
$hiddenfields['password'] = $vbulletin->GPC['password'];
        
$hiddenfields['confirmpassword'] = $vbulletin->GPC['confirmpassword'];
        
$hiddenfields['email'] = $vbulletin->GPC['email'];
    }
    else
    {
        
$admin_defaults = array('showsignatures''showavatars''showimages''adminemail''dstauto' 'receivepm''showusercss''receivefriendemailrequest''vm_enable');
        
$admin_useroption 0;
        foreach (
$admin_defaults AS $bitfield)
        {
            
$admin_useroption |= $vbulletin->bf_misc_useroptions["$bitfield"];
        }

        require_once(
DIR '/includes/functions_user.php');
        
//for now we'll just include these to get the define for the salt length.  Should investigate
        //using the DM to add the initial admin user, but there may be issues with doing that without
        //a proper user session (which we can't have until we require the user.
        
require_once(DIR '/includes/class_dm.php');
        require_once(
DIR '/includes/class_dm_user.php');

        
$salt fetch_user_salt(SALT_LENGTH);

        
/*insert query*/
        
$db->query_write("
            INSERT INTO " 
TABLE_PREFIX "user
                (username, salt, password, email, usertitle, joindate, lastvisit, lastactivity, usergroupid, passworddate, options, showvbcode)
            VALUES (
                '" 
$db->escape_string(htmlspecialchars_uni($vbulletin->GPC['username'])) . "',
                '" 
$db->escape_string($salt) . "',
                '" 
$db->escape_string(md5(md5($vbulletin->GPC['password']) . $salt)) . "',
                '" 
$db->escape_string($vbulletin->GPC['email']) . "',
                '" 
$db->escape_string($install_phrases['usergroup_admin_usertitle']) . "',
                " 
TIMENOW ",
                " 
TIMENOW ",
                " 
TIMENOW ",
                6,
                FROM_UNIXTIME(" 
TIMENOW "),
                
$admin_useroption,
                2
            )
        "
);
        
$userid $db->insert_id();
        
/*insert query*/
        
$db->query_write("
            INSERT INTO " 
TABLE_PREFIX "usertextfield
                (userid)
            VALUES
                (
$userid)
        "
);
        
/*insert query*/
        
$db->query_write("
            INSERT INTO " 
TABLE_PREFIX "userfield
                (userid)
            VALUES
                (
$userid)
        "
);
        
/*insert query*/
        
$db->query_write("INSERT INTO " TABLE_PREFIX "administrator
            (userid, adminpermissions)
        VALUES
            (
$userid, " . (array_sum($vbulletin->bf_ugp_adminpermissions)-3) . ")
        "
);
        
/*insert query*/
        
$db->query_write("INSERT INTO " TABLE_PREFIX "moderator
            (userid, forumid, permissions, permissions2)
        VALUES
            (
                
$userid,
                -1,
                " 
. (array_sum($vbulletin->bf_misc_moderatorpermissions) - ($vbulletin->bf_misc_moderatorpermissions['newthreademail'] + $vbulletin->bf_misc_moderatorpermissions['newpostemail'])) . ",
                " 
. (array_sum($vbulletin->bf_misc_moderatorpermissions2)) . "
            )
        "
);

        echo 
"<p>{$install_phrases['admin_added']}</p>";
    }
}

if (
$vbulletin->GPC['step'] == 13)
{
    
build_image_cache('smilie');
    
build_image_cache('avatar');
    
build_image_cache('icon');
    
build_bbcode_cache();
    require_once(
DIR '/includes/functions_databuild.php');
    
build_user_statistics();
    
build_forum_child_lists();
    
build_forum_permissions();
    require_once(
DIR '/includes/functions_cron.php');
    
build_cron_next_run();
    require_once(
DIR '/includes/adminfunctions_attachment.php');
    
build_attachment_permissions();
    require_once(
DIR '/includes/class_bitfield_builder.php');
    
vB_Bitfield_Builder::save($db);

    echo 
"<blockquote>\n";
    echo 
"<p>" sprintf($install_phrases['install_complete'], $vbulletin->config['Misc']['admincpdir']) . "</p>\n";
    echo 
"</blockquote>\n";

    
define('HIDEPROCEED'true);
}

print_next_step();
print_upgrade_footer();

/*======================================================================*\
|| ####################################################################
|| # NulleD By - vBSupport.org
|| # CVS: $RCSfile$ - $Revision: 84924 $
|| ####################################################################
\*======================================================================*/
?>
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
 
 
kerk
k0t
 
kerk's Avatar
Default
2

какое сообщение?
это код файла установки
если на странице вы увидели этот код, то похоже у вас на серваке нет (или не включен) PHP
 
 
Smalesh
В Черном списке
Default
1

Quote:
Originally Posted by Badagoni View Post
на странице установки мне выпадает такое сообщение.
Включи/разреши php для форума.
 
 
Badagoni
Продвинутый
 
Badagoni's Avatar
Default
0

Badagoni добавил 18.04.2016 в 22:26
kerk, Smalesh, спасибо за помощь, включили и установка прошла успешно.

Last edited by Badagoni : 04-18-2016 at 11:27 PM. Reason: Добавлено сообщение
 
 
Статист
Простоузер
Default
0

Интересно, сколько раз покупал хостинг, пхп сразу стоит, на бесплатных тоже, да и локалку когда ставил все сразу было включено. Или при покупке сервера нужно самому ставить и включать?
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT +4. The time now is 01:55 PM.


Powered by vBulletin® Version 3.5.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.