"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Upload/install/index.php" between
mybb_1821.zip and mybb_1822.zip

About: MyBB is a multilingual, standards-compliant and free forum (discussion board) software.

index.php  (mybb_1821):index.php  (mybb_1822)
skipping to change at line 2284 skipping to change at line 2284
'password' => $saltedpw, 'password' => $saltedpw,
'salt' => $salt, 'salt' => $salt,
'loginkey' => $loginkey, 'loginkey' => $loginkey,
'email' => $db->escape_string($mybb->get_input('adminemail')), 'email' => $db->escape_string($mybb->get_input('adminemail')),
'usergroup' => $admin_gid, // assigned above 'usergroup' => $admin_gid, // assigned above
'regdate' => $now, 'regdate' => $now,
'lastactive' => $now, 'lastactive' => $now,
'lastvisit' => $now, 'lastvisit' => $now,
'website' => '', 'website' => '',
'icq' => '', 'icq' => '',
'yahoo' => '',
'skype' =>'', 'skype' =>'',
'google' =>'', 'google' =>'',
'birthday' => '', 'birthday' => '',
'signature' => '', 'signature' => '',
'allownotices' => 1, 'allownotices' => 1,
'hideemail' => 0, 'hideemail' => 0,
'subscriptionmethod' => '0', 'subscriptionmethod' => '0',
'receivepms' => 1, 'receivepms' => 1,
'pmnotice' => 1, 'pmnotice' => 1,
'pmnotify' => 1, 'pmnotify' => 1,
skipping to change at line 2516 skipping to change at line 2515
* Write our settings to the settings file * Write our settings to the settings file
*/ */
function write_settings() function write_settings()
{ {
global $db; global $db;
$settings = ''; $settings = '';
$query = $db->simple_select('settings', '*', '', array('order_by' => 'tit le')); $query = $db->simple_select('settings', '*', '', array('order_by' => 'tit le'));
while($setting = $db->fetch_array($query)) 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['val ue']}\";\n"; $settings .= "\$settings['{$setting['name']}'] = \"{$setting['val ue']}\";\n";
} }
if(!empty($settings)) if(!empty($settings))
{ {
$settings = "<?php\n/*********************************\ \n DO NO T EDIT THIS FILE, PLEASE USE\n THE SETTINGS EDITOR\n\************************** *******/\n\n{$settings}\n"; $settings = "<?php\n/*********************************\ \n DO NO T EDIT THIS FILE, PLEASE USE\n THE SETTINGS EDITOR\n\************************** *******/\n\n{$settings}\n";
$file = fopen(MYBB_ROOT."inc/settings.php", "w"); $file = fopen(MYBB_ROOT."inc/settings.php", "w");
fwrite($file, $settings); fwrite($file, $settings);
fclose($file); fclose($file);
} }
} }
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)