case 1: $gender_male_checked = "checked=\"checked\""; break; case 2: $gender_female_checked = "checked=\"checked\""; break; default: $gender_no_specify_checked = "checked=\"checked\""; } // // Let's do an overall check for settings/versions which would prevent // us from doing file uploads.... // $ini_val = phpversion() >= '4.0.0' ? 'ini_get' : 'get_cfg_var'; $form_enctype = !@$ini_val('file_uploads') || phpversion() == '4.0.4pl1' || !$board_config['allow_avatar_upload'] || phpversion() < '4.0.3' && @$ini_val('open_basedir') != '' ? '' : 'enctype="multipart/form-data"'; $template->assign_vars(array('USERNAME' => $username, 'EMAIL' => $email, 'YIM' => $yim, 'SKYPE' => $skype, 'ICQ' => $icq, 'MSN' => $msn, 'AIM' => $aim, 'OCCUPATION' => $occupation, 'INTERESTS' => $interests, 'GENDER' => $gender, 'GENDER_NO_SPECIFY_CHECKED' => $gender_no_specify_checked, 'GENDER_MALE_CHECKED' => $gender_male_checked, 'GENDER_FEMALE_CHECKED' => $gender_female_checked, 'NEXT_BIRTHDAY_GREETING' => $next_birthday_greeting, 'S_BIRTHDAY' => $s_birthday, 'LOCATION' => $location, 'WEBSITE' => $website, 'SIGNATURE' => str_replace('<br />', "\n", $signature), 'VIEW_EMAIL_YES' => $viewemail ? 'checked="checked"' : '', 'VIEW_EMAIL_NO' => !$viewemail ? 'checked="checked"' : '', 'HIDE_USER_YES' => !$allowviewonline ? 'checked="checked"' : '', 'HIDE_USER_NO' => $allowviewonline ? 'checked="checked"' : '', 'NOTIFY_PM_YES' => $notifypm ? 'checked="checked"' : '', 'NOTIFY_PM_NO' => !$notifypm ? 'checked="checked"' : '', 'POPUP_PM_YES' => $popuppm ? 'checked="checked"' : '', 'POPUP_PM_NO' => !$popuppm ? 'checked="checked"' : '', 'ALWAYS_ADD_SIGNATURE_YES' => $attachsig ? 'checked="checked"' : '', 'ALWAYS_ADD_SIGNATURE_NO' => !$attachsig ? 'checked="checked"' : '', 'NOTIFY_REPLY_YES' => $notifyreply ? 'checked="checked"' : '', 'NOTIFY_REPLY_NO' => !$notifyreply ? 'checked="checked"' : '', 'ALWAYS_ALLOW_BBCODE_YES' => $allowbbcode ? 'checked="checked"' : '', 'ALWAYS_ALLOW_BBCODE_NO' => !$allowbbcode ? 'checked="checked"' : '', 'ALWAYS_ALLOW_HTML_YES' => $allowhtml ? 'checked="checked"' : '', 'ALWAYS_ALLOW_HTML_NO' => !$allowhtml ? 'checked="checked"' : '', 'ALWAYS_ALLOW_SMILIES_YES' => $allowsmilies ? 'checked="checked"' : '', 'ALWAYS_ALLOW_SMILIES_NO' => !$allowsmilies ? 'checked="checked"' : '', 'AVATAR' => $avatar, 'LANGUAGE_SELECT' => language_select($user_lang), 'TIMEZONE_SELECT' => tz_select($user_timezone), 'STYLE_SELECT' => style_select($user_style, 'style'), 'DATE_FORMAT' => $user_dateformat, 'QUICK_REPLY_SELECT' => quick_reply_select($user_show_quickreply, 'show_quickreply'), 'QUICK_REPLY_MODE_BASIC' => $user_quickreply_mode == 0 ? 'checked="checked"' : '', 'QUICK_REPLY_MODE_ADVANCED' => $user_quickreply_mode != 0 ? 'checked="checked"' : '', 'OPEN_QUICK_REPLY_YES' => $user_open_quickreply ? 'checked="checked"' : '', 'OPEN_QUICK_REPLY_NO' => !$user_open_quickreply ? 'checked="checked"' : '', 'ALLOW_PM_YES' => $user_allowpm ? 'checked="checked"' : '', 'ALLOW_PM_NO' => !$user_allowpm ? 'checked="checked"' : '', 'ALLOW_AVATAR_YES' => $user_allowavatar ? 'checked="checked"' : '', 'ALLOW_AVATAR_NO' => !$user_allowavatar ? 'checked="checked"' : '', 'ALLOW_AG_YES' => $user_allow_ag ? 'checked="checked"' : '', 'ALLOW_AG_NO' => !$user_allow_ag ? 'checked="checked"' : '', 'USER_ACTIVE_YES' => $user_status ? 'checked="checked"' : '', 'USER_ACTIVE_NO' => !$user_status ? 'checked="checked"' : '', 'BANCARD' => $user_ycard, 'RANK_SELECT_BOX' => $rank_select_box, 'L_USERNAME' => $lang['Username'], 'L_USER_TITLE' => $lang['User_admin'], 'L_USER_EXPLAIN' => $lang['User_admin_explain'], 'L_NEW_PASSWORD' => $lang['New_password'], 'L_PASSWORD_IF_CHANGED' => $lang['password_if_changed'], 'L_CONFIRM_PASSWORD' => $lang['Confirm_password'], 'L_PASSWORD_CONFIRM_IF_CHANGED' => $lang['password_confirm_if_changed'], 'L_SUBMIT' => $lang['Submit'], 'L_RESET' => $lang['Reset'], 'L_ICQ_NUMBER' => $lang['ICQ'], 'L_MESSENGER' => $lang['MSNM'], 'L_YAHOO' => $lang['YIM'], 'L_SKYPE' => $lang['SKYPE'], 'L_WEBSITE' => $lang['Website'], 'L_AIM' => $lang['AIM'], 'L_LOCATION' => $lang['Location'], 'L_OCCUPATION' => $lang['Occupation'], 'L_BOARD_LANGUAGE' => $lang['Board_lang'], 'L_BOARD_STYLE' => $lang['Board_style'], 'L_TIMEZONE' => $lang['Timezone'], 'L_DATE_FORMAT' => $lang['Date_format'], 'L_DATE_FORMAT_EXPLAIN' => $lang['Date_format_explain'], 'L_QUICK_REPLY_PANEL' => $lang['Quick_reply_panel'], 'L_SHOW_QUICK_REPLY' => $lang['Show_quick_reply'], 'L_QUICK_REPLY_MODE' => $lang['Quick_reply_mode'], 'L_QUICK_REPLY_MODE_BASIC' => $lang['Quick_reply_mode_basic'], 'L_QUICK_REPLY_MODE_ADVANCED' => $lang['Quick_reply_mode_advanced'], 'L_OPEN_QUICK_REPLY' => $lang['Open_quick_reply'], 'L_YES' => $lang['Yes'], 'L_NO' => $lang['No'], 'L_INTERESTS' => $lang['Interests'], 'L_GENDER' => $lang['Gender'], 'L_GENDER_MALE' => $lang['Male'], 'L_GENDER_FEMALE' => $lang['Female'], 'L_GENDER_NOT_SPECIFY' => $lang['No_gender_specify'], 'L_BIRTHDAY' => $lang['Birthday'], 'L_NEXT_BIRTHDAY_GREETING' => $lang['Next_birthday_greeting'], 'L_NEXT_BIRTHDAY_GREETING_EXPLAIN' => $lang['Next_birthday_greeting_expain'], 'L_BANCARD' => $lang['ban_card'], 'L_BANCARD_EXPLAIN' => sprintf($lang['ban_card_explain'], $board_config['max_user_bancard']), 'L_ALWAYS_ALLOW_SMILIES' => $lang['Always_smile'], 'L_ALWAYS_ALLOW_BBCODE' => $lang['Always_bbcode'], 'L_ALWAYS_ALLOW_HTML' => $lang['Always_html'], 'L_HIDE_USER' => $lang['Hide_user'], 'L_ALWAYS_ADD_SIGNATURE' => $lang['Always_add_sig'], 'L_SPECIAL' => $lang['User_special'], 'L_SPECIAL_EXPLAIN' => $lang['User_special_explain'], 'L_USER_ACTIVE' => $lang['User_status'], 'L_ALLOW_PM' => $lang['User_allowpm'], 'L_ALLOW_AVATAR' => $lang['User_allowavatar'], 'L_ALLOW_AG' => $lang['User_allow_ag'], 'L_AVATAR_PANEL' => $lang['Avatar_panel'], 'L_AVATAR_EXPLAIN' => $lang['Admin_avatar_explain'], 'L_DELETE_AVATAR' => $lang['Delete_Image'], 'L_CURRENT_IMAGE' => $lang['Current_Image'], 'L_UPLOAD_AVATAR_FILE' => $lang['Upload_Avatar_file'], 'L_UPLOAD_AVATAR_URL' => $lang['Upload_Avatar_URL'], 'L_AVATAR_GALLERY' => $lang['Select_from_gallery'], 'L_SHOW_GALLERY' => $lang['View_avatar_gallery'], 'L_LINK_REMOTE_AVATAR' => $lang['Link_remote_Avatar'], 'L_SIGNATURE' => $lang['Signature'], 'L_SIGNATURE_EXPLAIN' => sprintf($lang['Signature_explain'], $board_config['max_sig_chars']), 'L_NOTIFY_ON_PRIVMSG' => $lang['Notify_on_privmsg'], 'L_NOTIFY_ON_REPLY' => $lang['Always_notify'], 'L_POPUP_ON_PRIVMSG' => $lang['Popup_on_privmsg'], 'L_PREFERENCES' => $lang['Preferences'], 'L_PUBLIC_VIEW_EMAIL' => $lang['Public_view_email'], 'L_ITEMS_REQUIRED' => $lang['Items_required'], 'L_REGISTRATION_INFO' => $lang['Registration_info'], 'L_PROFILE_INFO' => $lang['Profile_info'], 'L_PROFILE_INFO_NOTICE' => $lang['Profile_info_warn'], 'L_EMAIL_ADDRESS' => $lang['Email_address'], 'S_FORM_ENCTYPE' => $form_enctype, 'HTML_STATUS' => $html_status, 'BBCODE_STATUS' => sprintf($bbcode_status, '<a href="../' . append_sid("faq.{$phpEx}?mode=bbcode") . '" target="_phpbbcode">', '</a>'), 'SMILIES_STATUS' => $smilies_status, 'L_DELETE_USER' => $lang['User_delete'], 'L_DELETE_USER_EXPLAIN' => $lang['User_delete_explain'], 'L_SELECT_RANK' => $lang['Rank_title'], 'S_HIDDEN_FIELDS' => $s_hidden_fields, 'S_PROFILE_ACTION' => append_sid("admin_users.{$phpEx}"))); if (file_exists(@phpbb_realpath('./../' . $board_config['avatar_path'])) && $board_config['allow_avatar_upload'] == TRUE) { if ($form_enctype != '') { $template->assign_block_vars('avatar_local_upload', array()); } $template->assign_block_vars('avatar_remote_upload', array()); } if (file_exists(@phpbb_realpath('./../' . $board_config['avatar_gallery_path'])) && $board_config['allow_avatar_local'] == TRUE) { $template->assign_block_vars('avatar_local_gallery', array()); } if ($board_config['allow_avatar_remote'] == TRUE) { $template->assign_block_vars('avatar_remote_link', array()); } } $template->pparse('body'); } else {
case m: $s_birthday .= $s_b_md; break; case Y: $s_birthday .= $s_b_year; break; } } // End add - Birthday MOD // // Let's do an overall check for settings/versions which would prevent // us from doing file uploads.... // $ini_val = phpversion() >= '4.0.0' ? 'ini_get' : 'get_cfg_var'; $form_enctype = @$ini_val('file_uploads') == '0' || strtolower(@$ini_val('file_uploads') == 'off') || phpversion() == '4.0.4pl1' || !$board_config['allow_avatar_upload'] || phpversion() < '4.0.3' && @$ini_val('open_basedir') != '' ? '' : 'enctype="multipart/form-data"'; $template->assign_vars(array('USERNAME' => isset($username) ? $username : '', 'CUR_PASSWORD' => isset($cur_password) ? $cur_password : '', 'NEW_PASSWORD' => isset($new_password) ? $new_password : '', 'PASSWORD_CONFIRM' => isset($password_confirm) ? $password_confirm : '', 'EMAIL' => isset($email) ? $email : '', 'CONFIRM_IMG' => $confirm_image, 'YIM' => $yim, 'SKYPE' => $skype, 'ICQ' => $icq, 'MSN' => $msn, 'AIM' => $aim, 'OCCUPATION' => $occupation, 'INTERESTS' => $interests, 'ALLOW_MASS_PM' => $allow_mass_pm, 'ALLOW_MASS_PM_CHECKED' => $allow_mass_pm_checked, 'ALLOW_MASS_PM_NOTIFY_CHECKED' => $allow_mass_pm_notify_checked, 'DISABLE_MASS_PM_CHECKED' => $disable_mass_pm_checked, 'S_BIRTHDAY' => $s_birthday, 'BIRTHDAY_REQUIRED' => $board_config['birthday_required'] ? '*' : '', 'LOCATION' => $location, 'WEBSITE' => $website, 'SIGNATURE' => str_replace('<br />', "\n", $signature), 'LOCK_GENDER' => $mode != 'register' ? 'DISABLED' : '', 'GENDER' => $gender, 'GENDER_NO_SPECIFY_CHECKED' => $gender_no_specify_checked, 'GENDER_MALE_CHECKED' => $gender_male_checked, 'GENDER_FEMALE_CHECKED' => $gender_female_checked, 'VIEW_EMAIL_YES' => $viewemail ? 'checked="checked"' : '', 'VIEW_EMAIL_NO' => !$viewemail ? 'checked="checked"' : '', 'HIDE_USER_YES' => !$allowviewonline ? 'checked="checked"' : '', 'HIDE_USER_NO' => $allowviewonline ? 'checked="checked"' : '', 'NOTIFY_PM_YES' => $notifypm ? 'checked="checked"' : '', 'NOTIFY_PM_NO' => !$notifypm ? 'checked="checked"' : '', 'POPUP_PM_YES' => $popup_pm ? 'checked="checked"' : '', 'POPUP_PM_NO' => !$popup_pm ? 'checked="checked"' : '', 'ALWAYS_ADD_SIGNATURE_YES' => $attachsig ? 'checked="checked"' : '', 'ALWAYS_ADD_SIGNATURE_NO' => !$attachsig ? 'checked="checked"' : '', 'NOTIFY_REPLY_YES' => $notifyreply ? 'checked="checked"' : '', 'NOTIFY_REPLY_NO' => !$notifyreply ? 'checked="checked"' : '', 'ALWAYS_ALLOW_BBCODE_YES' => $allowbbcode ? 'checked="checked"' : '', 'ALWAYS_ALLOW_BBCODE_NO' => !$allowbbcode ? 'checked="checked"' : '', 'ALWAYS_ALLOW_HTML_YES' => $allowhtml ? 'checked="checked"' : '', 'ALWAYS_ALLOW_HTML_NO' => !$allowhtml ? 'checked="checked"' : '', 'ALWAYS_ALLOW_SMILIES_YES' => $allowsmilies ? 'checked="checked"' : '', 'ALWAYS_ALLOW_SMILIES_NO' => !$allowsmilies ? 'checked="checked"' : '', 'ALLOW_AVATAR' => $board_config['allow_avatar_upload'], 'AVATAR' => $avatar_img, 'AVATAR_SIZE' => $board_config['avatar_filesize'], 'LANGUAGE_SELECT' => language_select($user_lang, 'language'), 'STYLE_SELECT' => style_select($user_style, 'style'), 'TIMEZONE_SELECT' => tz_select($user_timezone, 'timezone'), 'DATE_FORMAT' => $user_dateformat, 'QUICK_REPLY_SELECT' => quick_reply_select($user_show_quickreply, 'show_quickreply'), 'QUICK_REPLY_MODE_BASIC' => $user_quickreply_mode == 0 ? 'checked="checked"' : '', 'QUICK_REPLY_MODE_ADVANCED' => $user_quickreply_mode != 0 ? 'checked="checked"' : '', 'OPEN_QUICK_REPLY_YES' => $user_open_quickreply ? 'checked="checked"' : '', 'OPEN_QUICK_REPLY_NO' => !$user_open_quickreply ? 'checked="checked"' : '', 'HTML_STATUS' => $html_status, 'BBCODE_STATUS' => sprintf($bbcode_status, '<a href="' . append_sid("faq.{$phpEx}?mode=bbcode") . '" target="_phpbbcode">', '</a>'), 'SMILIES_STATUS' => $smilies_status, 'L_CURRENT_PASSWORD' => $lang['Current_password'], 'L_NEW_PASSWORD' => $mode == 'register' ? $lang['Password'] : $lang['New_password'], 'L_CONFIRM_PASSWORD' => $lang['Confirm_password'], 'L_CONFIRM_PASSWORD_EXPLAIN' => $mode == 'editprofile' ? $lang['Confirm_password_explain'] : '', 'L_PASSWORD_IF_CHANGED' => $mode == 'editprofile' ? $lang['password_if_changed'] : '', 'L_PASSWORD_CONFIRM_IF_CHANGED' => $mode == 'editprofile' ? $lang['password_confirm_if_changed'] : '', 'L_SUBMIT' => $lang['Submit'], 'L_RESET' => $lang['Reset'], 'L_ICQ_NUMBER' => $lang['ICQ'], 'L_MESSENGER' => $lang['MSNM'], 'L_YAHOO' => $lang['YIM'], 'L_SKYPE' => $lang['SKYPE'], 'L_WEBSITE' => $lang['Website'], 'L_AIM' => $lang['AIM'], 'L_LOCATION' => $lang['Location'], 'L_OCCUPATION' => $lang['Occupation'], 'L_BOARD_LANGUAGE' => $lang['Board_lang'], 'L_BOARD_STYLE' => $lang['Board_style'], 'L_TIMEZONE' => $lang['Timezone'], 'L_DATE_FORMAT' => $lang['Date_format'], 'L_DATE_FORMAT_EXPLAIN' => $lang['Date_format_explain'], 'L_QUICK_REPLY_PANEL' => $lang['Quick_reply_panel'], 'L_SHOW_QUICK_REPLY' => $lang['Show_quick_reply'], 'L_QUICK_REPLY_MODE' => $lang['Quick_reply_mode'], 'L_QUICK_REPLY_MODE_BASIC' => $lang['Quick_reply_mode_basic'], 'L_QUICK_REPLY_MODE_ADVANCED' => $lang['Quick_reply_mode_advanced'], 'L_OPEN_QUICK_REPLY' => $lang['Open_quick_reply'], 'L_YES' => $lang['Yes'], 'L_NO' => $lang['No'], 'L_INTERESTS' => $lang['Interests'], 'L_ENABLE_MASS_PM' => $lang['Enable_mass_pm'], 'L_ENABLE_MASS_PM_EXPLAIN' => $lang['Enable_mass_pm_explain'], 'L_NO_MASS_PM' => $lang['No_mass_pm'], 'L_GENDER' => $lang['Gender'], 'L_GENDER_MALE' => $lang['Male'], 'L_GENDER_FEMALE' => $lang['Female'], 'L_GENDER_NOT_SPECIFY' => $lang['No_gender_specify'], 'L_BIRTHDAY' => $lang['Birthday'], 'L_ALWAYS_ALLOW_SMILIES' => $lang['Always_smile'], 'L_ALWAYS_ALLOW_BBCODE' => $lang['Always_bbcode'], 'L_ALWAYS_ALLOW_HTML' => $lang['Always_html'], 'L_HIDE_USER' => $lang['Hide_user'], 'L_ALWAYS_ADD_SIGNATURE' => $lang['Always_add_sig'], 'L_AVATAR_PANEL' => $lang['Avatar_panel'], 'L_AVATAR_EXPLAIN' => sprintf($lang['Avatar_explain'], $board_config['avatar_max_width'], $board_config['avatar_max_height'], round($board_config['avatar_filesize'] / 1024)), 'L_UPLOAD_AVATAR_FILE' => $lang['Upload_Avatar_file'], 'L_UPLOAD_AVATAR_URL' => $lang['Upload_Avatar_URL'], 'L_UPLOAD_AVATAR_URL_EXPLAIN' => $lang['Upload_Avatar_URL_explain'], 'L_AVATAR_GALLERY' => $lang['Select_from_gallery'], 'L_SHOW_GALLERY' => $lang['View_avatar_gallery'], 'L_LINK_REMOTE_AVATAR' => $lang['Link_remote_Avatar'], 'L_LINK_REMOTE_AVATAR_EXPLAIN' => $lang['Link_remote_Avatar_explain'], 'L_DELETE_AVATAR' => $lang['Delete_Image'], 'L_CURRENT_IMAGE' => $lang['Current_Image'], 'L_SIGNATURE' => $lang['Signature'], 'L_SIGNATURE_EXPLAIN' => sprintf($lang['Signature_explain'], $board_config['max_sig_chars']), 'L_NOTIFY_ON_REPLY' => $lang['Always_notify'], 'L_NOTIFY_ON_REPLY_EXPLAIN' => $lang['Always_notify_explain'], 'L_NOTIFY_ON_PRIVMSG' => $lang['Notify_on_privmsg'], 'L_POPUP_ON_PRIVMSG' => $lang['Popup_on_privmsg'], 'L_POPUP_ON_PRIVMSG_EXPLAIN' => $lang['Popup_on_privmsg_explain'], 'L_PREFERENCES' => $lang['Preferences'], 'L_PUBLIC_VIEW_EMAIL' => $lang['Public_view_email'], 'L_ITEMS_REQUIRED' => $lang['Items_required'], 'L_REGISTRATION_INFO' => $lang['Registration_info'], 'L_PROFILE_INFO' => $lang['Profile_info'], 'L_PROFILE_INFO_NOTICE' => $lang['Profile_info_warn'], 'L_EMAIL_ADDRESS' => $lang['Email_address'], 'L_CONFIRM_CODE_IMPAIRED' => sprintf($lang['Confirm_code_impaired'], '<a href="mailto:' . $board_config['board_email'] . '">', '</a>'), 'L_CONFIRM_CODE' => $lang['Confirm_code'], 'L_CONFIRM_CODE_EXPLAIN' => $lang['Confirm_code_explain'], 'S_ALLOW_AVATAR_UPLOAD' => $board_config['allow_avatar_upload'], 'S_ALLOW_AVATAR_LOCAL' => $board_config['allow_avatar_local'], 'S_ALLOW_AVATAR_REMOTE' => $board_config['allow_avatar_remote'], 'S_HIDDEN_FIELDS' => $s_hidden_fields, 'S_FORM_ENCTYPE' => $form_enctype, 'S_PROFILE_ACTION' => append_sid("profile.{$phpEx}"))); // // This is another cheat using the block_var capability // of the templates to 'fake' an IF...ELSE...ENDIF solution // it works well :) // if ($mode != 'register') { if ($userdata['user_allowavatar'] && ($board_config['allow_avatar_upload'] || $board_config['allow_avatar_local'] || $board_config['allow_avatar_remote'])) { $template->assign_block_vars('switch_avatar_block', array()); if ($board_config['allow_avatar_upload'] && file_exists(@phpbb_realpath('./' . $board_config['avatar_path']))) { if ($form_enctype != '') { $template->assign_block_vars('switch_avatar_block.switch_avatar_local_upload', array()); } $template->assign_block_vars('switch_avatar_block.switch_avatar_remote_upload', array()); } if ($board_config['allow_avatar_remote']) {
$sellpost_yes = $new['allow_sellpost'] ? "checked=\"checked\"" : ""; $sellpost_no = !$new['allow_sellpost'] ? "checked=\"checked\"" : ""; $hide4reply_yes = $new['allow_hide4reply'] ? "checked=\"checked\"" : ""; $hide4reply_no = !$new['allow_hide4reply'] ? "checked=\"checked\"" : ""; $hide4posts_yes = $new['allow_hide4posts'] ? "checked=\"checked\"" : ""; $hide4posts_no = !$new['allow_hide4posts'] ? "checked=\"checked\"" : ""; $hide4fortune_yes = $new['allow_hide4fortune'] ? "checked=\"checked\"" : ""; $hide4fortune_no = !$new['allow_hide4fortune'] ? "checked=\"checked\"" : ""; $cashtype_others = $new['cash_system_type'] == CASH_TYPE_OTHERS ? "checked=\"checked\"" : ""; $cashtype_points = $new['cash_system_type'] == CASH_TYPE_POINTS ? "checked=\"checked\"" : ""; $cashtype_cashmod2 = $new['cash_system_type'] == CASH_TYPE_CASHMOD2 ? "checked=\"checked\"" : ""; $quickreply_yes = $new['allow_quickreply'] ? "checked=\"checked\"" : ""; $quickreply_no = !$new['allow_quickreply'] ? "checked=\"checked\"" : ""; $anonymous_sqr_mode_basic = $new['anonymous_sqr_mode'] == 0 ? 'checked="checked"' : ''; $anonymous_sqr_mode_advanced = $new['anonymous_sqr_mode'] != 0 ? 'checked="checked"' : ''; $anonymous_sqr_select = quick_reply_select($new['anonymous_show_sqr'], 'anonymous_show_sqr'); $anonymous_open_sqr_yes = $new['anonymous_open_sqr'] ? "checked=\"checked\"" : ""; $anonymous_open_sqr_no = !$new['anonymous_open_sqr'] ? "checked=\"checked\"" : ""; $avatars_local_yes = $new['allow_avatar_local'] ? "checked=\"checked\"" : ""; $avatars_local_no = !$new['allow_avatar_local'] ? "checked=\"checked\"" : ""; $avatars_remote_yes = $new['allow_avatar_remote'] ? "checked=\"checked\"" : ""; $avatars_remote_no = !$new['allow_avatar_remote'] ? "checked=\"checked\"" : ""; $avatars_upload_yes = $new['allow_avatar_upload'] ? "checked=\"checked\"" : ""; $avatars_upload_no = !$new['allow_avatar_upload'] ? "checked=\"checked\"" : ""; $smtp_yes = $new['smtp_delivery'] ? "checked=\"checked\"" : ""; $smtp_no = !$new['smtp_delivery'] ? "checked=\"checked\"" : ""; $template->set_filenames(array("body" => "admin/board_config_body.tpl")); //report forum selection $sql = "SELECT f.forum_name, f.forum_id\n\tFROM " . FORUMS_TABLE . " f, " . CATEGORIES_TABLE . " c\n\tWHERE c.cat_id = f.cat_id ORDER BY c.cat_order ASC, f.forum_order ASC"; if (!($result = $db->sql_query($sql))) { message_die(GENERAL_ERROR, "Couldn't obtain forum list", "", __LINE__, __FILE__, $sql);