"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Upload/admin/modules/home/preferences.php" between
mybb_1821.zip and mybb_1822.zip

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

preferences.php  (mybb_1821):preferences.php  (mybb_1822)
skipping to change at line 130 skipping to change at line 130
$folders[$folder] = ucfirst($folder); $folders[$folder] = ucfirst($folder);
} }
} }
closedir($dir); closedir($dir);
ksort($folders); ksort($folders);
$setting_code = $form->generate_select_box("cpstyle", $folders, $admin_op tions['cpstyle']); $setting_code = $form->generate_select_box("cpstyle", $folders, $admin_op tions['cpstyle']);
$languages = array_merge(array('' => $lang->use_default), $lang->get_lang uages(1)); $languages = array_merge(array('' => $lang->use_default), $lang->get_lang uages(1));
$language_code = $form->generate_select_box("cplanguage", $languages, $ad min_options['cplanguage']); $language_code = $form->generate_select_box("cplanguage", $languages, $ad min_options['cplanguage']);
$table = new Table; $form_container = new FormContainer($lang->preferences);
$table->construct_header($lang->global_preferences); $form_container->output_row_header($lang->global_preferences);
$form_container->output_row($lang->acp_theme, $lang->select_acp_theme, $s
$table->construct_cell("<strong>{$lang->acp_theme}</strong><br /><small>{ etting_code);
$lang->select_acp_theme}</small><br /><br />{$setting_code}"); $form_container->output_row($lang->acp_language, $lang->select_acp_langua
$table->construct_row(); ge, $language_code);
$form_container->output_row($lang->codemirror, $lang->use_codemirror_desc
$table->construct_cell("<strong>{$lang->acp_language}</strong><br /><smal , $form->generate_on_off_radio('codepress', $admin_options['codepress']));
l>{$lang->select_acp_language}</small><br /><br />{$language_code}");
$table->construct_row();
$table->construct_cell("<strong>{$lang->codemirror}</strong><br /><small>
{$lang->use_codemirror_desc}</small><br /><br />".$form->generate_on_off_radio('
codepress', $admin_options['codepress']));
$table->construct_row();
// If 2FA is enabled we need to display a link to the recovery codes page // If 2FA is enabled we need to display a link to the recovery codes page
if(!empty($admin_options['authsecret'])) if(!empty($admin_options['authsecret']))
{ {
$lang->use_2fa_desc .= "<br />".$lang->recovery_codes_desc." ".$l ang->recovery_codes_warning; $lang->use_2fa_desc .= "<br />".$lang->recovery_codes_desc." ".$l ang->recovery_codes_warning;
} }
$form_container->output_row($lang->my2fa, $lang->use_2fa_desc, $form->gen
$table->construct_cell("<strong>{$lang->my2fa}</strong><br /><small>{$lan erate_on_off_radio('2fa', (int)!empty($admin_options['authsecret'])));
g->use_2fa_desc}</small><br /><br />".$form->generate_on_off_radio('2fa', (int)!
empty($admin_options['authsecret'])));
$table->construct_row();
if(!empty($admin_options['authsecret'])) if(!empty($admin_options['authsecret']))
{ {
$qr = $auth->getQRCodeGoogleUrl($mybb->user['username']."@".str_r eplace(" ", "", $mybb->settings['bbname']), $admin_options['authsecret']); $qr = $auth->getQRCodeGoogleUrl($mybb->user['username']."@".str_r eplace(" ", "", $mybb->settings['bbname']), $admin_options['authsecret']);
$table->construct_cell("<strong>{$lang->my2fa_qr}</strong><br />< $form_container->output_row($lang->my2fa_qr . "<br /><img src=\"{
img src=\"{$qr}\""); $qr}\"");
$table->construct_row();
} }
$table->output($lang->preferences); $form_container->end();
$table = new Table;
$table->construct_header($lang->notes_not_shared); $table->construct_header($lang->notes_not_shared);
$table->construct_cell($form->generate_text_area("notes", $admin_options[ 'notes'], array('style' => 'width: 99%; height: 300px;'))); $table->construct_cell($form->generate_text_area("notes", $admin_options[ 'notes'], array('style' => 'width: 99%; height: 300px;')));
$table->construct_row(); $table->construct_row();
$table->output($lang->personal_notes); $table->output($lang->personal_notes);
$buttons[] = $form->generate_submit_button($lang->save_notes_and_prefs); $buttons[] = $form->generate_submit_button($lang->save_notes_and_prefs);
$form->output_submit_wrapper($buttons); $form->output_submit_wrapper($buttons);
 End of changes. 4 change blocks. 
24 lines changed or deleted 15 lines changed or added

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