B-B | 2020-04-23 12:15:23 UTC | #1
Nie działa mi instalacja, jakby nie wyświetla się domena konfiguracji tylko
Leci to jeszcze dalej, proszę o pomoc
<?php
/**
* MyBB 1.8
* Copyright 2014 MyBB Group, All Rights Reserved
*
* Website: http://www.mybb.com
* License: http://www.mybb.com/about/license
*
*/
@set_time_limit(0);
define('MYBB_ROOT', dirname(dirname(__FILE__))."/");
define("INSTALL_ROOT", dirname(__FILE__)."/");
define("TIME_NOW", time());
define("IN_MYBB", 1);
define("IN_INSTALL", 1);
if(function_exists('date_default_timezone_set') && !ini_get('date.timezone'))
{
date_default_timezone_set('GMT');
}
require_once MYBB_ROOT.'inc/class_error.php';
$error_handler = new errorHandler();
require_once MYBB_ROOT.'inc/class_core.php';
$mybb = new MyBB;
// Include the files necessary for installation
require_once MYBB_ROOT.'inc/class_timers.php';
require_once MYBB_ROOT.'inc/functions.php';
$admin_dir = "admin";
// Perform a check if MyBB is already installed or not
$installed = false;
if(file_exists(MYBB_ROOT."/inc/config.php"))
{
require MYBB_ROOT."/inc/config.php";
if(isset($config) && is_array($config))
{
$installed = true;
if(isset($config['admindir']))
{
$admin_dir = $config['admindir'];
}
else if(isset($config['admin_dir']))
{
$admin_dir = $config['admin_dir'];
}
}
}
require_once MYBB_ROOT.'inc/class_xml.php';
require_once MYBB_ROOT.'inc/functions_user.php';
require_once MYBB_ROOT.'inc/class_language.php';
$lang = new MyLanguage();
$lang->set_path(INSTALL_ROOT.'resources');
$lang->load('language');
// Load DB interface
require_once MYBB_ROOT."inc/db_base.php";
// Prevent any shut down functions from running
$done_shutdown = 1;
// Include the necessary constants for installation
$grouppermignore = array('gid', 'type', 'title', 'description', 'namestyle', 'usertitle', 'stars', 'starimage', 'image');
$groupzerogreater = array('pmquota', 'maxpmrecipients', 'maxreputationsday', 'attachquota', 'maxemails', 'maxwarningsday', 'maxposts', 'edittimelimit', 'canusesigxposts', 'maxreputationsperuser', 'maxreputationsperthread', 'emailfloodtime');
$displaygroupfields = array('title', 'description', 'namestyle', 'usertitle', 'stars', 'starimage', 'image');
$fpermfields = array('canview', 'canviewthreads', 'candlattachments', 'canpostthreads', 'canpostreplys', 'canpostattachments', 'canratethreads', 'caneditposts', 'candeleteposts', 'candeletethreads', 'caneditattachments', 'canpostpolls', 'canvotepolls', 'cansearch', 'modposts', 'modthreads', 'modattachments', 'mod_edit_posts');
// Include the installation resources
require_once INSTALL_ROOT.'resources/output.php';
$output = new installerOutput;
$dboptions = array();
if(function_exists('mysqli_connect'))
{
$dboptions['mysqli'] = array(
'class' => 'DB_MySQLi',
'title' => 'MySQL Improved',
'short_title' => 'MySQLi',
'structure_file' => 'mysql_db_tables.php',
'population_file' => 'mysql_db_inserts.php'
);
}
if(function_exists('mysql_connect'))
{
$dboptions['mysql'] = array(
'class' => 'DB_MySQL',
'title' => 'MySQL',
'short_title' => 'MySQL',
'structure_file' => 'mysql_db_tables.php',
'population_file' => 'mysql_db_inserts.php'
);
}
if(function_exists('pg_connect'))
{
$dboptions['pgsql'] = array(
'class' => 'DB_PgSQL',
'title' => 'PostgreSQL',
'short_title' => 'PostgreSQL',
'structure_file' => 'pgsql_db_tables.php',
'population_file' => 'mysql_db_inserts.php'
);
}
if(class_exists('PDO'))
{
$supported_dbs = PDO::getAvailableDrivers();
if(in_array('sqlite', $supported_dbs))
{
$dboptions['sqlite'] = array(
'class' => 'DB_SQLite',
'title' => 'SQLite 3',
'short_title' => 'SQLite',
'structure_file' => 'sqlite_db_tables.php',
'population_file' => 'mysql_db_inserts.php'
);
}
}
if(file_exists('lock') && $mybb->dev_mode != true)
{
$output->print_error($lang->locked);
}
else if($installed == true && empty($mybb->input['action']))
{
$output->print_header($lang->already_installed, "errormsg", 0);
echo $lang->sprintf($lang->mybb_already_installed, $mybb->version);
$output->print_footer();
}
else
{
$output->steps = array(
'intro' => $lang->welcome,
'license' => $lang->license_agreement,
'requirements_check' => $lang->req_check,
'database_info' => $lang->db_config,
'create_tables' => $lang->table_creation,
'populate_tables' => $lang->data_insertion,
'templates' => $lang->theme_install,
'configuration' => $lang->board_config,
'adminuser' => $lang->admin_user,
'final' => $lang->finish_setup,
);
switch($mybb->get_input('action'))
{
case 'license':
license_agreement();
break;
case 'requirements_check':
requirements_check();
break;
case 'database_info':
database_info();
break;
case 'create_tables':
create_tables();
break;
case 'populate_tables':
populate_tables();
break;
case 'templates':
insert_templates();
break;
case 'configuration':
configure();
break;
case 'adminuser':
create_admin_user();
break;
case 'final':
install_done();
break;
default:
$mybb->input['action'] = 'intro';
intro();
break;
}
}
system | 2020-05-25 12:04:26 UTC | #2
Ten temat został automatycznie zamknięty 32 dni po ostatnim wpisie. Tworzenie nowych odpowiedzi nie jest już możliwe.