// 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, 'ICQ' => $icq, 'MSN' => $msn, 'AIM' => $aim, 'OCCUPATION' => $occupation, 'INTERESTS' => $interests, 'QUESTION_CONF' => $question_conf, 'REPONSE_CONF' => $reponse_conf, 'LOCATION' => $location, 'WEBSITE' => $website, 'SIGNATURE' => str_replace('<br />', "\n", $signature), 'COLORTEXT' => $user_colortext, 'L_QP_SETTINGS' => $lang['qp_settings'], 'LOCK_GENDER' => $mode != 'register' ? 'DISABLED' : '', 'GENDER' => $gender, 'GENDER_REQUIRED' => $board_config['gender_required'] ? ' *' : '', '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"' : '', 'NOTIFY_DONATION_YES' => $notifydonation ? 'checked="checked"' : '', 'NOTIFY_DONATION_NO' => !$notifydonation ? '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'), 'USE_REL_DATE_YES' => $use_rel_date ? 'checked="checked"' : '', 'USE_REL_DATE_NO' => !$use_rel_date ? 'checked="checked"' : '', 'USE_REL_TIME_YES' => $use_rel_time ? 'checked="checked"' : '', 'USE_REL_TIME_NO' => !$use_rel_time ? 'checked="checked"' : '', 'DATE_FORMAT' => $user_dateformat, 'HTML_STATUS' => $html_status, 'BBCODE_STATUS' => sprintf($bbcode_status, '<a href="' . append_sid("faq.{$phpEx}?mode=bbcode") . '" target="_phpbbcode">', '</a>'), 'SMILIES_STATUS' => $smilies_status, 'DEFAULT_AVATAR_YES' => $allowdefaultavatar ? 'checked="checked"' : '', 'DEFAULT_AVATAR_NO' => !$allowdefaultavatar ? 'checked="checked"' : '', 'L_DEFAULT_AVATAR' => $lang['Choose_default_avatar'], 'L_DEFAULT_AVATAR_EXPLAIN' => $lang['Choose_default_avatar_explain'], '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_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_USE_REL_DATE' => $lang['Use_rel_date'], 'L_USE_REL_DATE_EXPLAIN' => $lang['Use_rel_date_explain'], 'L_USE_REL_TIME' => $lang['Use_rel_time'], 'L_USE_REL_TIME_EXPLAIN' => $lang['Use_rel_time_explain'], 'L_YES' => $lang['Yes'], 'L_NO' => $lang['No'], 'L_INTERESTS' => $lang['Interests'], 'L_QUESTION_CONF' => $question_conf, 'L_QUESTION_CONF_EXPLAIN' => $lang['Question_conf_explain'], 'L_GENDER' => $lang['Gender'], 'L_GENDER_MALE' => $lang['Male'], 'L_GENDER_FEMALE' => $lang['Female'], 'L_GENDER_NOT_SPECIFY' => $lang['No_gender_specify'], '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_ACCOUNT_DELETE' => $lang['Account_delete'], 'L_DELETE_ACCOUNT_EXPLAIN' => $lang['Account_delete_explain'], 'L_COLORTEXT' => $lang['Colortext'], 'L_COLORTEXT_EXPLAIN' => $lang['Colortext_Explain'], '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_NOTIFY_DONATION' => sprintf($lang['Points_notify'], $board_config['points_name']), 'L_NOTIFY_DONATION_EXPLAIN' => sprintf($lang['Points_notify_explain'], $board_config['points_name']), '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}"))); //-- mod : flags --------------------------------------------------------------- //-- add get_flags_list($flag); //-- fin mod : flags ----------------------------------------------------------- //-- mod : birthday ------------------------------------------------------------ //-- add $birthday->select_birthdate(array('d' => $bday_day, 'm' => $bday_month, 'y' => $bday_year)); //-- fin mod : birthday -------------------------------------------------------- //-- mod : quick post es ------------------------------------------------------- //-- add display_qpes_data(); //-- fin mod : quick post es --------------------------------------------------- // // 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') { // Begin Account Self-Delete MOD if ($board_config['account_delete']) { $template->assign_block_vars('account_delete_block', array()); } // End Account Self-Delete MOD 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']))) {
$rank_id = $row['rank_id']; $selected = $this_userdata['user_rank'] == $rank_id ? ' selected="selected"' : ''; $rank_select_box .= '<option value="' . $rank_id . '"' . $selected . '>' . $rank . '</option>'; } $template->set_filenames(array("body" => "admin/user_edit_body.tpl")); //-- mod : flags --------------------------------------------------------------- //-- add get_flags_list($flag); //-- fin mod : flags ----------------------------------------------------------- //-- mod : birthday ------------------------------------------------------------ //-- add $birthday->select_birthdate(array('d' => $bday_day, 'm' => $bday_month, 'y' => $bday_year)); //-- fin mod : birthday -------------------------------------------------------- //-- mod : quick post es ------------------------------------------------------- //-- add display_qpes_data(true); //-- fin mod : quick post es --------------------------------------------------- // Start add - Gender MOD switch ($gender) { case 1: $gender_male_checked = "checked=\"checked\""; break; case 2: $gender_female_checked = "checked=\"checked\""; break; default: $gender_no_specify_checked = "checked=\"checked\""; } // End add - Gender MOD if ($board_config['allow_colortext']) { $template->assign_block_vars('switch_colortext', array());