Zeile 52 | Zeile 52 |
---|
} }
|
} }
|
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();
|
require_once MYBB_ROOT.'inc/functions_user.php'; require_once MYBB_ROOT.'inc/class_language.php'; $lang = new MyLanguage();
|
$lang->set_path(MYBB_ROOT.'install/resources');
| $lang->set_path(INSTALL_ROOT.'resources');
|
$lang->load('language');
// Load DB interface require_once MYBB_ROOT."inc/db_base.php";
|
$lang->load('language');
// Load DB interface require_once MYBB_ROOT."inc/db_base.php";
|
| require_once MYBB_ROOT."inc/AbstractPdoDbDriver.php";
|
// Prevent any shut down functions from running $done_shutdown = 1;
| // Prevent any shut down functions from running $done_shutdown = 1;
|
Zeile 106 | Zeile 106 |
---|
'title' => 'PostgreSQL', 'short_title' => 'PostgreSQL', 'structure_file' => 'pgsql_db_tables.php',
|
'title' => 'PostgreSQL', 'short_title' => 'PostgreSQL', 'structure_file' => 'pgsql_db_tables.php',
|
'population_file' => 'mysql_db_inserts.php'
| 'population_file' => 'pgsql_db_inserts.php'
|
); }
|
); }
|
|
|
if(class_exists('PDO')) { $supported_dbs = PDO::getAvailableDrivers();
| if(class_exists('PDO')) { $supported_dbs = PDO::getAvailableDrivers();
|
Zeile 120 | Zeile 120 |
---|
'title' => 'SQLite 3', 'short_title' => 'SQLite', 'structure_file' => 'sqlite_db_tables.php',
|
'title' => 'SQLite 3', 'short_title' => 'SQLite', 'structure_file' => 'sqlite_db_tables.php',
|
| 'population_file' => 'pgsql_db_inserts.php' ); }
if (in_array('pgsql', $supported_dbs)) { $dboptions['pgsql_pdo'] = array( 'class' => 'PostgresPdoDbDriver', 'title' => 'PostgreSQL (PDO)', 'short_title' => 'PostgreSQL (PDO)', 'structure_file' => 'pgsql_db_tables.php', 'population_file' => 'pgsql_db_inserts.php' ); }
if (in_array('mysql', $supported_dbs)) { $dboptions['mysql_pdo'] = array( 'class' => 'MysqlPdoDbDriver', 'title' => 'MySQL (PDO)', 'short_title' => 'MySQL (PDO)', 'structure_file' => 'mysql_db_tables.php',
|
'population_file' => 'mysql_db_inserts.php' ); }
| 'population_file' => 'mysql_db_inserts.php' ); }
|
Zeile 289 | Zeile 309 |
---|
this License applicable to that copy.
3. Object Code Incorporating Material from Library Header Files.
|
this License applicable to that copy.
3. Object Code Incorporating Material from Library Header Files.
|
|
|
The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated
| The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated
|
Zeile 302 | Zeile 322 |
---|
covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this license
|
covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this license
|
document.
| document.
|
4. Combined Works.
You may convey a Combined Work under terms of your choice that,
| 4. Combined Works.
You may convey a Combined Work under terms of your choice that,
|
Zeile 325 | Zeile 345 |
---|
copies of the GNU GPL and this license document.
d) Do one of the following:
|
copies of the GNU GPL and this license document.
d) Do one of the following:
|
|
|
0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to
| 0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to
|
Zeile 398 | Zeile 418 |
---|
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
|
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
|
|
|
Preamble
The GNU General Public License is a free, copyleft license for
| Preamble
The GNU General Public License is a free, copyleft license for
|
Zeile 1118 | Zeile 1138 |
---|
else { $configstatus = $lang->sprintf($lang->req_step_span_pass, $lang->writable);
|
else { $configstatus = $lang->sprintf($lang->req_step_span_pass, $lang->writable);
|
| @fclose($configwritable);
|
}
|
}
|
@fclose($configwritable);
| |
// Check settings file is writable $settingswritable = @fopen(MYBB_ROOT.'inc/settings.php', 'w');
| // Check settings file is writable $settingswritable = @fopen(MYBB_ROOT.'inc/settings.php', 'w');
|
Zeile 1132 | Zeile 1152 |
---|
else { $settingsstatus = $lang->sprintf($lang->req_step_span_pass, $lang->writable);
|
else { $settingsstatus = $lang->sprintf($lang->req_step_span_pass, $lang->writable);
|
| @fclose($settingswritable);
|
}
|
}
|
@fclose($settingswritable);
| |
// Check cache directory is writable $cachewritable = @fopen(MYBB_ROOT.'cache/test.write', 'w');
| // Check cache directory is writable $cachewritable = @fopen(MYBB_ROOT.'cache/test.write', 'w');
|
Zeile 1142 | Zeile 1162 |
---|
$errors[] = $lang->sprintf($lang->req_step_error_box, $lang->req_step_error_cachedir); $cachestatus = $lang->sprintf($lang->req_step_span_fail, $lang->not_writable); $showerror = 1;
|
$errors[] = $lang->sprintf($lang->req_step_error_box, $lang->req_step_error_cachedir); $cachestatus = $lang->sprintf($lang->req_step_span_fail, $lang->not_writable); $showerror = 1;
|
@fclose($cachewritable);
| |
} else {
| } else {
|
Zeile 1159 | Zeile 1178 |
---|
{ $errors[] = $lang->sprintf($lang->req_step_error_box, $lang->req_step_error_uploaddir); $uploadsstatus = $lang->sprintf($lang->req_step_span_fail, $lang->not_writable);
|
{ $errors[] = $lang->sprintf($lang->req_step_error_box, $lang->req_step_error_uploaddir); $uploadsstatus = $lang->sprintf($lang->req_step_span_fail, $lang->not_writable);
|
$showerror = 1; @fclose($uploadswritable);
| $showerror = 1;
|
} else {
| } else {
|
Zeile 1178 | Zeile 1196 |
---|
$errors[] = $lang->sprintf($lang->req_step_error_box, $lang->req_step_error_avatardir); $avatarsstatus = $lang->sprintf($lang->req_step_span_fail, $lang->not_writable); $showerror = 1;
|
$errors[] = $lang->sprintf($lang->req_step_error_box, $lang->req_step_error_avatardir); $avatarsstatus = $lang->sprintf($lang->req_step_span_fail, $lang->not_writable); $showerror = 1;
|
@fclose($avatarswritable);
| |
} else
|
} else
|
{
| {
|
$avatarsstatus = $lang->sprintf($lang->req_step_span_pass, $lang->writable); @fclose($avatarswritable); @my_chmod(MYBB_ROOT.'uploads/avatars', '0777');
| $avatarsstatus = $lang->sprintf($lang->req_step_span_pass, $lang->writable); @fclose($avatarswritable); @my_chmod(MYBB_ROOT.'uploads/avatars', '0777');
|
Zeile 1193 | Zeile 1210 |
---|
echo $lang->sprintf($lang->req_step_reqtable, $phpversion, $dbsupportlist, $mbstatus, $xmlstatus, $configstatus, $settingsstatus, $cachestatus, $uploadsstatus, $avatarsstatus);
if($showerror == 1)
|
echo $lang->sprintf($lang->req_step_reqtable, $phpversion, $dbsupportlist, $mbstatus, $xmlstatus, $configstatus, $settingsstatus, $cachestatus, $uploadsstatus, $avatarsstatus);
if($showerror == 1)
|
{ $error_list = error_list($errors);
| { $error_list = error_list($errors);
|
echo $lang->sprintf($lang->req_step_error_tablelist, $error_list); echo "\n <input type=\"hidden\" name=\"action\" value=\"{$mybb->input['action']}\" />"; echo "\n <div id=\"next_button\"><input type=\"submit\" class=\"submit_button\" value=\"{$lang->recheck} »\" /></div><br style=\"clear: both;\" />\n";
| echo $lang->sprintf($lang->req_step_error_tablelist, $error_list); echo "\n <input type=\"hidden\" name=\"action\" value=\"{$mybb->input['action']}\" />"; echo "\n <div id=\"next_button\"><input type=\"submit\" class=\"submit_button\" value=\"{$lang->recheck} »\" /></div><br style=\"clear: both;\" />\n";
|
Zeile 1228 | Zeile 1245 |
---|
if(dbengine+'_settings' == element.attr('id')) { element.show();
|
if(dbengine+'_settings' == element.attr('id')) { element.show();
|
}
| }
|
else { element.hide();
| else { element.hide();
|
Zeile 1278 | Zeile 1295 |
---|
if(empty($mybb->input['config'][$dbfile]['dbhost'])) { $mybb->input['config'][$dbfile]['dbhost'] = "localhost";
|
if(empty($mybb->input['config'][$dbfile]['dbhost'])) { $mybb->input['config'][$dbfile]['dbhost'] = "localhost";
|
}
| }
|
if(empty($mybb->input['config'][$dbfile]['tableprefix'])) { $mybb->input['config'][$dbfile]['tableprefix'] = "mybb_";
| if(empty($mybb->input['config'][$dbfile]['tableprefix'])) { $mybb->input['config'][$dbfile]['tableprefix'] = "mybb_";
|
Zeile 1288 | Zeile 1305 |
---|
$mybb->input['config'][$dbfile]['dbname'] = ''; } if(empty($mybb->input['config'][$dbfile]['dbuser']))
|
$mybb->input['config'][$dbfile]['dbname'] = ''; } if(empty($mybb->input['config'][$dbfile]['dbuser']))
|
{
| {
|
$mybb->input['config'][$dbfile]['dbuser'] = ''; } if(empty($mybb->input['config'][$dbfile]['dbpass']))
|
$mybb->input['config'][$dbfile]['dbuser'] = ''; } if(empty($mybb->input['config'][$dbfile]['dbpass']))
|
{
| {
|
$mybb->input['config'][$dbfile]['dbpass'] = ''; } if(empty($mybb->input['config'][$dbfile]['encoding']))
| $mybb->input['config'][$dbfile]['dbpass'] = ''; } if(empty($mybb->input['config'][$dbfile]['encoding']))
|
Zeile 1302 | Zeile 1319 |
---|
$class = ''; if(empty($first) && !$mybb->get_input('dbengine'))
|
$class = ''; if(empty($first) && !$mybb->get_input('dbengine'))
|
{
| {
|
$mybb->input['dbengine'] = $dbfile; $first = true; }
| $mybb->input['dbengine'] = $dbfile; $first = true; }
|
Zeile 1315 | Zeile 1332 |
---|
<tbody id=\"{$dbfile}_settings\" class=\"db_settings db_type{$class}\"> <tr> <th colspan=\"2\" class=\"first last\">{$dbtype['title']} {$lang->database_settings}</th>
|
<tbody id=\"{$dbfile}_settings\" class=\"db_settings db_type{$class}\"> <tr> <th colspan=\"2\" class=\"first last\">{$dbtype['title']} {$lang->database_settings}</th>
|
</tr>";
| </tr>";
|
// SQLite gets some special settings if($dbfile == 'sqlite')
|
// SQLite gets some special settings if($dbfile == 'sqlite')
|
{ $db_info[$dbfile] .= "
| { $db_info[$dbfile] .= "
|
<tr class=\"alt_row\"> <td class=\"first\"><label for=\"config_{$dbfile}_dbname\">{$lang->database_path}</label></td>
|
<tr class=\"alt_row\"> <td class=\"first\"><label for=\"config_{$dbfile}_dbname\">{$lang->database_path}</label></td>
|
<td class=\"last alt_col\"><input type=\"text\" class=\"text_input\" name=\"config[{$dbfile}][dbname]\" id=\"config_{$dbfile}_dbname\" value=\"".htmlspecialchars_uni($mybb->input['config'][$dbfile]['dbname'])."\" /></td> </tr>"; }
| <td class=\"last alt_col\"><input type=\"text\" class=\"text_input\" name=\"config[{$dbfile}][dbname]\" id=\"config_{$dbfile}_dbname\" value=\"".htmlspecialchars_uni($mybb->input['config'][$dbfile]['dbname'])."\" /></td> </tr>"; }
|
// Others get db host, username, password etc else {
| // Others get db host, username, password etc else {
|
Zeile 1352 | Zeile 1369 |
---|
$db_info[$dbfile] .= " <tr> <th colspan=\"2\" class=\"first last\">{$dbtype['title']} {$lang->table_settings}</th>
|
$db_info[$dbfile] .= " <tr> <th colspan=\"2\" class=\"first last\">{$dbtype['title']} {$lang->table_settings}</th>
|
</tr>
| </tr>
|
<tr class=\"first\"> <td class=\"first\"><label for=\"config_{$dbfile}_tableprefix\">{$lang->table_prefix}</label></td> <td class=\"last alt_col\"><input type=\"text\" class=\"text_input\" name=\"config[{$dbfile}][tableprefix]\" id=\"config_{$dbfile}_tableprefix\" value=\"".htmlspecialchars_uni($mybb->input['config'][$dbfile]['tableprefix'])."\" /></td>
| <tr class=\"first\"> <td class=\"first\"><label for=\"config_{$dbfile}_tableprefix\">{$lang->table_prefix}</label></td> <td class=\"last alt_col\"><input type=\"text\" class=\"text_input\" name=\"config[{$dbfile}][tableprefix]\" id=\"config_{$dbfile}_tableprefix\" value=\"".htmlspecialchars_uni($mybb->input['config'][$dbfile]['tableprefix'])."\" /></td>
|
Zeile 1387 | Zeile 1404 |
---|
echo $lang->sprintf($lang->db_step_config_table, $dbengines, $dbconfig); $output->print_footer('create_tables'); }
|
echo $lang->sprintf($lang->db_step_config_table, $dbengines, $dbconfig); $output->print_footer('create_tables'); }
|
/**
| /**
|
* Create our tables */ function create_tables()
| * Create our tables */ function create_tables()
|
Zeile 1397 | Zeile 1414 |
---|
$mybb->input['dbengine'] = $mybb->get_input('dbengine'); if(!file_exists(MYBB_ROOT."inc/db_{$mybb->input['dbengine']}.php"))
|
$mybb->input['dbengine'] = $mybb->get_input('dbengine'); if(!file_exists(MYBB_ROOT."inc/db_{$mybb->input['dbengine']}.php"))
|
{
| {
|
$errors[] = $lang->db_step_error_invalidengine; database_info();
|
$errors[] = $lang->db_step_error_invalidengine; database_info();
|
}
| }
|
$mybb->input['config'] = $mybb->get_input('config', MyBB::INPUT_ARRAY); $config = $mybb->input['config'][$mybb->input['dbengine']];
| $mybb->input['config'] = $mybb->get_input('config', MyBB::INPUT_ARRAY); $config = $mybb->input['config'][$mybb->input['dbengine']];
|
Zeile 1423 | Zeile 1440 |
---|
break; case "pgsql": $db = new DB_PgSQL;
|
break; case "pgsql": $db = new DB_PgSQL;
|
| break; case "pgsql_pdo": $db = new PostgresPdoDbDriver();
|
break; case "mysqli": $db = new DB_MySQLi;
|
break; case "mysqli": $db = new DB_MySQLi;
|
| break; case "mysql_pdo": $db = new MysqlPdoDbDriver();
|
break; default: $db = new DB_MySQL; } $db->error_reporting = 0;
|
break; default: $db = new DB_MySQL; } $db->error_reporting = 0;
|
| if(!isset($config['encoding'])) { $config['encoding'] = null; }
|
$connect_array = array( "hostname" => $config['dbhost'], "username" => $config['dbuser'],
| $connect_array = array( "hostname" => $config['dbhost'], "username" => $config['dbuser'],
|
Zeile 1444 | Zeile 1472 |
---|
if($connection === false) { $errors[] = $lang->sprintf($lang->db_step_error_noconnect, htmlspecialchars_uni($config['dbhost']));
|
if($connection === false) { $errors[] = $lang->sprintf($lang->db_step_error_noconnect, htmlspecialchars_uni($config['dbhost']));
|
}
| }
|
// double check if the DB exists for MySQL elseif(method_exists($db, 'select_db') && !$db->select_db($config['dbname'])) { $errors[] = $lang->sprintf($lang->db_step_error_nodbname, htmlspecialchars_uni($config['dbname']));
|
// double check if the DB exists for MySQL elseif(method_exists($db, 'select_db') && !$db->select_db($config['dbname'])) { $errors[] = $lang->sprintf($lang->db_step_error_nodbname, htmlspecialchars_uni($config['dbname']));
|
}
| }
|
// Most DB engines only allow certain characters in the table name. Oracle requires an alphabetic character first. if((!preg_match("#^[A-Za-z][A-Za-z0-9_]*$#", $config['tableprefix'])) && $config['tableprefix'] != '')
|
// Most DB engines only allow certain characters in the table name. Oracle requires an alphabetic character first. if((!preg_match("#^[A-Za-z][A-Za-z0-9_]*$#", $config['tableprefix'])) && $config['tableprefix'] != '')
|
{
| {
|
$errors[] = $lang->db_step_error_invalid_tableprefix; }
| $errors[] = $lang->db_step_error_invalid_tableprefix; }
|
Zeile 1462 | Zeile 1490 |
---|
if(strlen($config['tableprefix']) > 40) { $errors[] = $lang->db_step_error_tableprefix_too_long;
|
if(strlen($config['tableprefix']) > 40) { $errors[] = $lang->db_step_error_tableprefix_too_long;
|
}
| }
|
|
|
if(($db->engine == 'mysql' || $db->engine == 'mysqli') && $config['encoding'] == 'utf8mb4' && version_compare($db->get_version(), '5.5.3', '<'))
| if($connection !== false && ($db->engine == 'mysql' || $db->engine == 'mysqli') && $config['encoding'] == 'utf8mb4' && version_compare($db->get_version(), '5.5.3', '<'))
|
{ $errors[] = $lang->db_step_error_utf8mb4_error; }
| { $errors[] = $lang->db_step_error_utf8mb4_error; }
|
Zeile 1528 | Zeile 1556 |
---|
* of the most commonly accessed data in MyBB. * By default, the database is used to store this data. *
|
* of the most commonly accessed data in MyBB. * By default, the database is used to store this data. *
|
* If you wish to use the file system (cache/ directory), MemCache (or MemCached), xcache, APC, or eAccelerator * you can change the value below to 'files', 'memcache', 'memcached', 'xcache', 'apc' or 'eaccelerator' from 'db'.
| * If you wish to use the file system (cache/ directory), MemCache (or MemCached), xcache, APC, APCu, eAccelerator or Redis * you can change the value below to 'files', 'memcache', 'memcached', 'xcache', 'apc', 'apcu', 'eaccelerator' or 'redis' from 'db'.
|
*/
\$config['cache_store'] = 'db';
| */
\$config['cache_store'] = 'db';
|
Zeile 1545 | Zeile 1573 |
---|
\$config['memcache']['host'] = 'localhost'; \$config['memcache']['port'] = 11211;
|
\$config['memcache']['host'] = 'localhost'; \$config['memcache']['port'] = 11211;
|
| /** * Redis configuration * If you are using Redis as your data-cache * you need to configure the hostname and port * of your redis server below. If you want * to connect via unix sockets, use the full * path to the unix socket as host and leave * the port setting unconfigured or false. */
\$config['redis']['host'] = 'localhost'; \$config['redis']['port'] = 6379;
|
/** * Super Administrators
| /** * Super Administrators
|
Zeile 1552 | Zeile 1593 |
---|
* be edited, deleted or banned in the Admin CP. * The administrator permissions for these users * cannot be altered either.
|
* be edited, deleted or banned in the Admin CP. * The administrator permissions for these users * cannot be altered either.
|
*/
| */
|
\$config['super_admins'] = '1';
/**
| \$config['super_admins'] = '1';
/**
|
Zeile 1573 | Zeile 1614 |
---|
* To enable this functionality for the logs below, set the * the number of days before each log should be pruned. * If you set the value to 0, the logs will not be pruned.
|
* To enable this functionality for the logs below, set the * the number of days before each log should be pruned. * If you set the value to 0, the logs will not be pruned.
|
*/
| */
|
\$config['log_pruning'] = array( 'admin_logs' => 365, // Administrator logs 'mod_logs' => 365, // Moderator logs
| \$config['log_pruning'] = array( 'admin_logs' => 365, // Administrator logs 'mod_logs' => 365, // Moderator logs
|
Zeile 1609 | Zeile 1650 |
---|
*/
\$config['disallowed_remote_addresses'] = array(
|
*/
\$config['disallowed_remote_addresses'] = array(
|
'127.0.0.1',
| '0.0.0.0', '127.0.0.0/8',
|
'10.0.0.0/8', '172.16.0.0/12', '192.168.0.0/16',
| '10.0.0.0/8', '172.16.0.0/12', '192.168.0.0/16',
|
Zeile 1647 | Zeile 1689 |
---|
$val = preg_replace('#mybb_(\S+?)([\s\.,\(]|$)#', $config['tableprefix'].'\\1\\2', $val); $val = preg_replace('#;$#', $db->build_create_table_collation().";", $val); preg_match('#CREATE TABLE (\S+)(\s?|\(?)\(#i', $val, $match);
|
$val = preg_replace('#mybb_(\S+?)([\s\.,\(]|$)#', $config['tableprefix'].'\\1\\2', $val); $val = preg_replace('#;$#', $db->build_create_table_collation().";", $val); preg_match('#CREATE TABLE (\S+)(\s?|\(?)\(#i', $val, $match);
|
if($match[1])
| if(!empty($match[1]))
|
{ $db->drop_table($match[1], false, false); echo $lang->sprintf($lang->tablecreate_step_created, $match[1]); } $db->query($val);
|
{ $db->drop_table($match[1], false, false); echo $lang->sprintf($lang->tablecreate_step_created, $match[1]); } $db->query($val);
|
if($match[1])
| if(!empty($match[1]))
|
{ echo $lang->done . "<br />\n"; }
| { echo $lang->done . "<br />\n"; }
|
Zeile 1667 | Zeile 1709 |
---|
*/ function populate_tables() {
|
*/ function populate_tables() {
|
global $output, $lang;
| global $output, $lang, $dboptions;
|
require MYBB_ROOT.'inc/config.php'; $db = db_connection($config);
| require MYBB_ROOT.'inc/config.php'; $db = db_connection($config);
|
Zeile 1767 | Zeile 1809 |
---|
// 1.8: Stylesheet Colors $contents = @file_get_contents(INSTALL_ROOT.'resources/mybb_theme_colors.xml');
|
// 1.8: Stylesheet Colors $contents = @file_get_contents(INSTALL_ROOT.'resources/mybb_theme_colors.xml');
|
require_once MYBB_ROOT."inc/class_xml.php"; $parser = new XMLParser($contents);
| $parser = create_xml_parser($contents);
|
$tree = $parser->get_tree();
if(is_array($tree) && is_array($tree['colors']))
| $tree = $parser->get_tree();
if(is_array($tree) && is_array($tree['colors']))
|
Zeile 1945 | Zeile 1986 |
---|
if(isset($_SERVER['SERVER_ADMIN']) && filter_var($_SERVER['SERVER_ADMIN'], FILTER_VALIDATE_EMAIL)) { $contactemail = $_SERVER['SERVER_ADMIN'];
|
if(isset($_SERVER['SERVER_ADMIN']) && filter_var($_SERVER['SERVER_ADMIN'], FILTER_VALIDATE_EMAIL)) { $contactemail = $_SERVER['SERVER_ADMIN'];
|
| } else { $contactemail = null;
|
} }
| } }
|
Zeile 2014 | Zeile 2059 |
---|
$adminuser = $adminemail = '';
$settings = file_get_contents(INSTALL_ROOT.'resources/settings.xml');
|
$adminuser = $adminemail = '';
$settings = file_get_contents(INSTALL_ROOT.'resources/settings.xml');
|
$parser = new XMLParser($settings);
| $parser = create_xml_parser($settings);
|
$parser->collapse_dups = 0; $tree = $parser->get_tree(); $groupcount = $settingcount = 0;
| $parser->collapse_dups = 0; $tree = $parser->get_tree(); $groupcount = $settingcount = 0;
|
Zeile 2085 | Zeile 2130 |
---|
include_once MYBB_ROOT."inc/functions_task.php"; $tasks = file_get_contents(INSTALL_ROOT.'resources/tasks.xml');
|
include_once MYBB_ROOT."inc/functions_task.php"; $tasks = file_get_contents(INSTALL_ROOT.'resources/tasks.xml');
|
$parser = new XMLParser($tasks);
| $parser = create_xml_parser($tasks);
|
$parser->collapse_dups = 0; $tree = $parser->get_tree(); $taskcount = 0;
| $parser->collapse_dups = 0; $tree = $parser->get_tree(); $taskcount = 0;
|
Zeile 2123 | Zeile 2168 |
---|
echo $lang->sprintf($lang->admin_step_insertedtasks, $taskcount);
$views = file_get_contents(INSTALL_ROOT.'resources/adminviews.xml');
|
echo $lang->sprintf($lang->admin_step_insertedtasks, $taskcount);
$views = file_get_contents(INSTALL_ROOT.'resources/adminviews.xml');
|
$parser = new XMLParser($views);
| $parser = create_xml_parser($views);
|
$parser->collapse_dups = 0; $tree = $parser->get_tree(); $view_count = 0;
| $parser->collapse_dups = 0; $tree = $parser->get_tree(); $view_count = 0;
|
Zeile 2227 | Zeile 2272 |
---|
// Insert all of our user groups from the XML file $usergroup_settings = file_get_contents(INSTALL_ROOT.'resources/usergroups.xml');
|
// Insert all of our user groups from the XML file $usergroup_settings = file_get_contents(INSTALL_ROOT.'resources/usergroups.xml');
|
$parser = new XMLParser($usergroup_settings);
| $parser = create_xml_parser($usergroup_settings);
|
$parser->collapse_dups = 0; $tree = $parser->get_tree();
| $parser->collapse_dups = 0; $tree = $parser->get_tree();
|
Zeile 2282 | Zeile 2327 |
---|
'lastvisit' => $now, 'website' => '', 'icq' => '',
|
'lastvisit' => $now, 'website' => '', 'icq' => '',
|
'aim' => '', 'yahoo' => '',
| |
'skype' =>'', 'google' =>'', 'birthday' => '',
| 'skype' =>'', 'google' =>'', 'birthday' => '',
|
Zeile 2315 | Zeile 2358 |
---|
'referrer' => 0, 'buddylist' => '', 'ignorelist' => '',
|
'referrer' => 0, 'buddylist' => '', 'ignorelist' => '',
|
'pmfolders' => '',
| 'pmfolders' => "0**$%%$1**$%%$2**$%%$3**$%%$4**",
|
'notepad' => '', 'showredirect' => 1, 'usernotes' => ''
| 'notepad' => '', 'showredirect' => 1, 'usernotes' => ''
|
Zeile 2325 | Zeile 2368 |
---|
echo $lang->done_step_adminoptions; $adminoptions = file_get_contents(INSTALL_ROOT.'resources/adminoptions.xml');
|
echo $lang->done_step_adminoptions; $adminoptions = file_get_contents(INSTALL_ROOT.'resources/adminoptions.xml');
|
$parser = new XMLParser($adminoptions);
| $parser = create_xml_parser($adminoptions);
|
$parser->collapse_dups = 0; $tree = $parser->get_tree(); $insertmodule = array();
| $parser->collapse_dups = 0; $tree = $parser->get_tree(); $insertmodule = array();
|
Zeile 2368 | Zeile 2411 |
---|
// Automatic Login my_unsetcookie("sid"); my_unsetcookie("mybbuser");
|
// Automatic Login my_unsetcookie("sid"); my_unsetcookie("mybbuser");
|
my_setcookie('mybbuser', $uid.'_'.$loginkey, null, true);
| my_setcookie('mybbuser', $uid.'_'.$loginkey, null, true, "lax");
|
ob_end_flush();
// Make fulltext columns if supported
| ob_end_flush();
// Make fulltext columns if supported
|
Zeile 2402 | Zeile 2445 |
---|
$cache->update_posticons(); $cache->update_spiders(); $cache->update_bannedips();
|
$cache->update_posticons(); $cache->update_spiders(); $cache->update_bannedips();
|
$cache->update_banned();
| |
$cache->update_bannedemails(); $cache->update_birthdays(); $cache->update_groupleaders(); $cache->update_threadprefixes(); $cache->update_forumsdisplay(); $cache->update("plugins", array());
|
$cache->update_bannedemails(); $cache->update_birthdays(); $cache->update_groupleaders(); $cache->update_threadprefixes(); $cache->update_forumsdisplay(); $cache->update("plugins", array());
|
| $cache->update("mostonline", array( 'numusers' => 0, 'time' => 0, ));
|
$cache->update("internal_settings", array('encryption_key' => random_str(32))); $cache->update_default_theme(); $cache->update_reportreasons(true);
| $cache->update("internal_settings", array('encryption_key' => random_str(32))); $cache->update_default_theme(); $cache->update_reportreasons(true);
|
Zeile 2440 | Zeile 2486 |
---|
if(is_writable('./')) { $lock = @fopen('./lock', 'w');
|
if(is_writable('./')) { $lock = @fopen('./lock', 'w');
|
$written = @fwrite($lock, '1'); @fclose($lock); if($written)
| if($lock !== false)
|
{
|
{
|
echo $lang->done_step_locked;
| $written = @fwrite($lock, '1'); @fclose($lock);
if($written) { echo $lang->done_step_locked; }
|
} } if(!$written)
| } } if(!$written)
|
Zeile 2458 | Zeile 2509 |
---|
/** * @param array $config *
|
/** * @param array $config *
|
* @return DB_MySQL|DB_MySQLi|DB_PgSQL|DB_SQLite
| * @return DB_MySQL|DB_MySQLi|DB_PgSQL|DB_SQLite|PostgresPdoDbDriver|MysqlPdoDbDriver
|
*/ function db_connection($config) {
| */ function db_connection($config) {
|
Zeile 2470 | Zeile 2521 |
---|
break; case "pgsql": $db = new DB_PgSQL;
|
break; case "pgsql": $db = new DB_PgSQL;
|
| break; case "pgsql_pdo": $db = new PostgresPdoDbDriver();
|
break; case "mysqli": $db = new DB_MySQLi;
|
break; case "mysqli": $db = new DB_MySQLi;
|
| break; case "mysql_pdo": $db = new MysqlPdoDbDriver();
|
break; default: $db = new DB_MySQL;
| break; default: $db = new DB_MySQL;
|
Zeile 2515 | Zeile 2572 |
---|
$query = $db->simple_select('settings', '*', '', array('order_by' => 'title')); while($setting = $db->fetch_array($query)) {
|
$query = $db->simple_select('settings', '*', '', array('order_by' => 'title')); while($setting = $db->fetch_array($query)) {
|
$setting['value'] = str_replace("\"", "\\\"", $setting['value']);
| $setting['name'] = addcslashes($setting['name'], "\\'"); $setting['value'] = addcslashes($setting['value'], '\\"$');
|
$settings .= "\$settings['{$setting['name']}'] = \"{$setting['value']}\";\n"; } if(!empty($settings))
| $settings .= "\$settings['{$setting['name']}'] = \"{$setting['value']}\";\n"; } if(!empty($settings))
|