Zeile 6 | Zeile 6 |
---|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* $Id: index.php 5092 2010-07-17 11:09:40Z Huji $
| * $Id: index.php 5404 2011-03-19 01:17:10Z jammerx2 $
|
*/
if(function_exists("unicode_decode"))
| */
if(function_exists("unicode_decode"))
|
Zeile 1464 | Zeile 1464 |
---|
* * Please see the MyBB Wiki for advanced * database configuration for larger installations
|
* * Please see the MyBB Wiki for advanced * database configuration for larger installations
|
* http://wiki.mybboard.net/
| * http://wiki.mybb.com/
|
*/
\$config['database']['type'] = '{$mybb->input['dbengine']}';
| */
\$config['database']['type'] = '{$mybb->input['dbengine']}';
|
Zeile 1625 | Zeile 1625 |
---|
$db->query($val); }
|
$db->query($val); }
|
// Update the fid sequence for PgSQL
| // Update the sequences for PgSQL
|
if($config['database']['type'] == "pgsql") {
|
if($config['database']['type'] == "pgsql") {
|
$db->query("ALTER SEQUENCE ".$config['database']['table_prefix']."forums_fid_seq RESTART WITH 3");
| $db->query("SELECT setval('{$config['database']['table_prefix']}attachtypes_atid_seq', (SELECT max(atid) FROM {$config['database']['table_prefix']}attachtypes));"); $db->query("SELECT setval('{$config['database']['table_prefix']}forums_fid_seq', (SELECT max(fid) FROM {$config['database']['table_prefix']}forums));"); $db->query("SELECT setval('{$config['database']['table_prefix']}helpdocs_hid_seq', (SELECT max(hid) FROM {$config['database']['table_prefix']}helpdocs));"); $db->query("SELECT setval('{$config['database']['table_prefix']}helpsections_sid_seq', (SELECT max(sid) FROM {$config['database']['table_prefix']}helpsections));"); $db->query("SELECT setval('{$config['database']['table_prefix']}icons_iid_seq', (SELECT max(iid) FROM {$config['database']['table_prefix']}icons));"); $db->query("SELECT setval('{$config['database']['table_prefix']}profilefields_fid_seq', (SELECT max(fid) FROM {$config['database']['table_prefix']}profilefields));"); $db->query("SELECT setval('{$config['database']['table_prefix']}smilies_sid_seq', (SELECT max(sid) FROM {$config['database']['table_prefix']}smilies));"); $db->query("SELECT setval('{$config['database']['table_prefix']}spiders_sid_seq', (SELECT max(sid) FROM {$config['database']['table_prefix']}spiders));"); $db->query("SELECT setval('{$config['database']['table_prefix']}templategroups_gid_seq', (SELECT max(gid) FROM {$config['database']['table_prefix']}templategroups));");
|
}
echo $lang->populate_step_inserted;
| }
echo $lang->populate_step_inserted;
|
Zeile 1837 | Zeile 1845 |
---|
'optionscode' => $db->escape_string($setting['optionscode'][0]['value']), 'value' => $db->escape_string($setting['settingvalue'][0]['value']), 'disporder' => intval($setting['disporder'][0]['value']),
|
'optionscode' => $db->escape_string($setting['optionscode'][0]['value']), 'value' => $db->escape_string($setting['settingvalue'][0]['value']), 'disporder' => intval($setting['disporder'][0]['value']),
|
'gid' => $gid
| 'gid' => $gid, 'isdefault' => 1
|
);
$db->insert_query('settings', $settingdata);
| );
$db->insert_query('settings', $settingdata);
|
Zeile 1983 | Zeile 1992 |
---|
echo $lang->done_step_usergroupsinserted; // Insert all of our user groups from the XML file
|
echo $lang->done_step_usergroupsinserted; // Insert all of our user groups from the XML file
|
$settings = file_get_contents(INSTALL_ROOT.'resources/usergroups.xml'); $parser = new XMLParser($settings);
| $usergroup_settings = file_get_contents(INSTALL_ROOT.'resources/usergroups.xml'); $parser = new XMLParser($usergroup_settings);
|
$parser->collapse_dups = 0; $tree = $parser->get_tree();
| $parser->collapse_dups = 0; $tree = $parser->get_tree();
|
Zeile 2016 | Zeile 2025 |
---|
// Restart usergroup sequence with correct # of groups if($config['database']['type'] == "pgsql") {
|
// Restart usergroup sequence with correct # of groups if($config['database']['type'] == "pgsql") {
|
$pgsql_group_count = $group_count + 1; $db->query("ALTER SEQUENCE ".$config['database']['table_prefix']."usergroups_gid_seq RESTART WITH ".$pgsql_group_count."");
| $db->query("SELECT setval('{$config['database']['table_prefix']}usergroups_gid_seq', (SELECT max(gid) FROM {$config['database']['table_prefix']}usergroups));");
|
}
echo $lang->done . '</p>';
| }
echo $lang->done . '</p>';
|
Zeile 2159 | Zeile 2167 |
---|
$cache->update_spiders(); $cache->update_bannedips(); $cache->update_banned();
|
$cache->update_spiders(); $cache->update_bannedips(); $cache->update_banned();
|
| $cache->update_bannedemails();
|
$cache->update_birthdays(); $cache->update_groupleaders();
|
$cache->update_birthdays(); $cache->update_groupleaders();
|
| $cache->update_threadprefixes(); $cache->update_forumsdisplay();
|
$cache->update("plugins", array()); $cache->update("internal_settings", array('encryption_key' => random_str(32)));
| $cache->update("plugins", array()); $cache->update("internal_settings", array('encryption_key' => random_str(32)));
|