$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':
require_once MYBB_ROOT . "inc/class_session.php"; $session = new session(); $session->init(); $mybb->session =& $session; // Include the necessary contants for installation $grouppermignore = array("gid", "type", "title", "description", "namestyle", "usertitle", "stars", "starimage", "image"); $groupzerogreater = array("pmquota", "maxreputationsday", "attachquota"); $displaygroupfields = array("title", "description", "namestyle", "usertitle", "stars", "starimage", "image"); $fpermfields = array("canview", "candlattachments", "canpostthreads", "canpostreplys", "canpostattachments", "canratethreads", "caneditposts", "candeleteposts", "candeletethreads", "caneditattachments", "canpostpolls", "canvotepolls", "cansearch"); // Include the installation resources require_once INSTALL_ROOT . "resources/output.php"; $output = new installerOutput(); $output->script = "upgrade.php"; $output->title = "MyBB Upgrade Wizard"; if (file_exists("lock")) { $output->print_error($lang->locked); } else { if ($mybb->input['action'] == "logout" && $mybb->user['uid']) { // Check session ID if we have one if ($mybb->input['logoutkey'] != $mybb->user['logoutkey']) { $output->print_error("Your user ID could not be verified to log you out. This may have been because a malicious Javascript was attempting to log you out automatically. If you intended to log out, please click the Log Out button at the top menu."); } my_unsetcookie("mybbuser"); my_unsetcookie("sid"); if ($mybb->user['uid']) { $time = TIME_NOW; $lastvisit = array("lastactive" => $time - 900, "lastvisit" => $time); $db->update_query("users", $lastvisit, "uid='" . $mybb->user['uid'] . "'"); $db->delete_query("sessions", "sid='" . $session->sid . "'"); } header("Location: upgrade.php");
require_once MYBB_ROOT . "inc/class_session.php"; $session = new session(); $session->init(); $mybb->session =& $session; // Include the necessary contants for installation $grouppermignore = array("gid", "type", "title", "description", "namestyle", "usertitle", "stars", "starimage", "image"); $groupzerogreater = array("pmquota", "maxreputationsday", "attachquota"); $displaygroupfields = array("title", "description", "namestyle", "usertitle", "stars", "starimage", "image"); $fpermfields = array("canview", "candlattachments", "canpostthreads", "canpostreplys", "canpostattachments", "canratethreads", "caneditposts", "candeleteposts", "candeletethreads", "caneditattachments", "canpostpolls", "canvotepolls", "cansearch"); // Include the installation resources require_once INSTALL_ROOT . "resources/output.php"; $output = new installerOutput(); $output->script = "upgrade.php"; $output->title = "Kreator aktualizacji MyBB"; if (file_exists("lock")) { $output->print_error($lang->locked); } else { if ($mybb->input['action'] == "logout" && $mybb->user['uid']) { // Check session ID if we have one if ($mybb->input['logoutkey'] != $mybb->user['logoutkey']) { $output->print_error("Twój ID nie może zostać zweryfikowany i nie można dokonać wylogowania. Być może szkodliwy kod JavaScript próbuje wylogować Cię automatycznie. Jeżeli chcesz się wylogować, kliknij łącze \"Wyloguj\" u góry strony."); } my_unsetcookie("mybbuser"); my_unsetcookie("sid"); if ($mybb->user['uid']) { $time = TIME_NOW; $lastvisit = array("lastactive" => $time - 900, "lastvisit" => $time); $db->update_query("users", $lastvisit, "uid='" . $mybb->user['uid'] . "'"); $db->delete_query("sessions", "sid='" . $session->sid . "'"); } header("Location: upgrade.php");
require_once MYBB_ROOT . "inc/class_session.php"; $session = new session(); $session->init(); $mybb->session =& $session; // Include the necessary contants for installation $grouppermignore = array("gid", "type", "title", "description", "namestyle", "usertitle", "stars", "starimage", "image"); $groupzerogreater = array("pmquota", "maxreputationsday", "attachquota"); $displaygroupfields = array("title", "description", "namestyle", "usertitle", "stars", "starimage", "image"); $fpermfields = array("canview", "candlattachments", "canpostthreads", "canpostreplys", "canpostattachments", "canratethreads", "caneditposts", "candeleteposts", "candeletethreads", "caneditattachments", "canpostpolls", "canvotepolls", "cansearch"); // Include the installation resources require_once INSTALL_ROOT . "resources/output.php"; $output = new installerOutput(); $output->script = "upgrade.php"; $output->title = "MyBB Upgrade Wizard"; if (file_exists("lock")) { $output->print_error($lang->locked); } else { if ($mybb->input['action'] == "logout" && $mybb->user['uid']) { // Check session ID if we have one if ($mybb->input['logoutkey'] != $mybb->user['logoutkey']) { $output->print_error("Your user ID could not be verified to log you out. This may have been because a malicious Javascript was attempting to log you out automatically. If you intended to log out, please click the Log Out button at the top menu."); } my_unsetcookie("mybbuser"); my_unsetcookie("sid"); if ($mybb->user['uid']) { $time = TIME_NOW; $lastvisit = array("lastactive" => $time - 900, "lastvisit" => $time); $db->update_query("users", $lastvisit, "uid='" . $mybb->user['uid'] . "'"); $db->delete_query("sessions", "sid='" . $session->sid . "'"); } header("Location: upgrade.php");