require_once MYBB_ROOT . 'inc/class_language.php'; $lang = new MyLanguage(); $lang->set_path(MYBB_ROOT . 'install/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', 'maxreputationsperthread'); $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'); }
$cache = new datacache(); // Load cache $cache->cache(); $mybb->cache =& $cache; 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);
$cache = new datacache(); // Load cache $cache->cache(); $mybb->cache =& $cache; 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", "maxpmrecipients", "maxreputationsday", "attachquota", "maxemails", "maxwarningsday", "maxposts", "edittimelimit", "canusesigxposts", "maxreputationsperthread"); $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 { $mybb->input['action'] = $mybb->get_input('action'); /*if($mybb->input['action'] == "logout" && $mybb->user['uid']) { // Check session ID if we have one if($mybb->get_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");
$cache = new datacache(); // Load cache $cache->cache(); $mybb->cache =& $cache; 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);