function input($objectName, $method, $object, $options = array())
{
    $attr = $object->getAttribute($method);
    switch ($attr->type) {
        case 'string':
            $str = text_field($objectName, $method, $object, $options);
            break;
        case 'text':
            $str = text_area($objectName, $method, $object, $options);
            break;
        case 'date':
            $str = date_select($objectName, $method, $object);
            break;
        case 'datetime':
            $str = date_time_select($objectName, $method, $object);
            break;
        case 'integer':
            $str = text_field($objectName, $method, $object, $options);
            break;
        case 'float':
            $str = text_field($objectName, $method, $object, $options);
            break;
        case 'boolean':
            $str = check_box($objectName, $method, $object, $options);
            break;
        default:
            $str = hidden_field($objectName, $method, $object);
            break;
    }
    return error_wrapping($str, isset($object->errors[$method]));
}
Example #2
0
     activity_select($SCION, $response);
     $SCION->status = array_shift($SCION->path);
     break 1;
     //go back around
 //go back around
 case DATE_DISP:
     include_once "lib/callback/date_list.php";
     date_send($SCION, $response);
     $SCION->status = DATE_PICK;
     echo $response;
     break 2;
     //break out
 //break out
 case DATE_PICK:
     include_once "lib/callback/date_list.php";
     date_select($SCION, $response);
     $SCION->status = array_shift($SCION->path);
     break 1;
     //go back around
 //go back around
 case HOURS_DISP:
     hours_send($SCION, $response);
     $SCION->status = array_shift($SCION->path);
     break 1;
     //go back around
 //go back around
 case BUTTON_DISP:
     include_once "lib/callback/buttons.php";
     button_send($SCION, $response);
     echo $response;
     $SCION->status = STATE::CHANGE;
        if (empty($class_users)) {
            $class_users = new class_users();
        }
        $class_users->profile_update($target_profile_data);
        unset($clean_password);
        unset($target_profile_data);
        // PROFILE EDIT BRIDGE - END
        board_stats();
        $message = $lang['Account_added'];
        message_die(GENERAL_MESSAGE, $message);
    }
}
// End of submit
if ($error) {
    // If an error occured we need to htmlspecialchars again username for output on returned data
    $username = htmlspecialchars($username);
    $new_password = '';
    $password_confirm = '';
}
// Default pages
include_once IP_ROOT_PATH . 'includes/functions_selects.' . PHP_EXT;
if ($error) {
    $template->set_filenames(array('reg_header' => 'error_body.tpl'));
    $template->assign_vars(array('ERROR_MESSAGE' => $error_msg));
    $template->assign_var_from_handle('ERROR_BOX', 'reg_header');
}
$template->set_filenames(array('body' => ADM_TPL . 'admin_add_user_body.tpl'));
// Let's do an overall check for settings/versions which would prevent us from doing file uploads....
$template->assign_vars(array('USERNAME' => $username, 'CUR_PASSWORD' => $cur_password, 'NEW_PASSWORD' => $new_password, 'PASSWORD_CONFIRM' => $password_confirm, 'EMAIL' => $email, 'LANGUAGE_SELECT' => language_select('language', $config['default_lang']), 'STYLE_SELECT' => style_select('style', $config['default_style']), 'TIMEZONE_SELECT' => tz_select('timezone', $config['board_timezone']), 'DATE_FORMAT_SELECT' => date_select('dateformat', $config['default_dateformat']), 'L_USERNAME' => $lang['Username'], 'L_CURRENT_PASSWORD' => $lang['Current_password'], 'L_NEW_PASSWORD' => $lang['Password'], 'L_CONFIRM_PASSWORD' => $lang['Confirm_password'], 'L_SUBMIT' => $lang['Submit'], 'L_RESET' => $lang['Reset'], '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_YES' => $lang['Yes'], 'L_NO' => $lang['No'], 'L_ITEMS_REQUIRED' => $lang['Items_required'], 'L_PREFERENCES' => $lang['Preferences'], '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_VALIDATION' => $lang['Validation'], 'L_VALIDATION_EXPLAIN' => $lang['Validation_explain'], 'S_HIDDEN_FIELDS' => $s_hidden_fields, 'S_PROFILE_ACTION' => append_sid('admin_user_register.' . PHP_EXT)));
$template->pparse('body');
include IP_ROOT_PATH . ADM . '/page_footer_admin.' . PHP_EXT;
Example #4
0
        <td class="x-day"><a href="<?php 
echo root_url;
?>
tv/channel/<?php 
echo $this_channel->chanid, '/', $_SESSION['list_time'] - 24 * 60 * 60;
?>
"
                ><img src="<?php 
echo skin_url;
?>
img/left.gif" alt="<?php 
echo t('leftl');
?>
"></a>
            <?php 
date_select('onchange="$(\'program_listing\').submit()"');
?>
            <a href="<?php 
echo root_url;
?>
tv/channel/<?php 
echo $this_channel->chanid, '/', $_SESSION['list_time'] + 24 * 60 * 60;
?>
"
                    ><img src="<?php 
echo skin_url;
?>
img/right.gif" alt="<?php 
echo t('right');
?>
"></a>
Example #5
0
            <td><select name="hour" style="text-align: right"><?php 
for ($h = 0; $h < 24; $h++) {
    echo "<option value=\"{$h}\"";
    if ($h == date('H', $list_starttime)) {
        echo ' SELECTED';
    }
    echo '>' . strftime($_SESSION['time_format'], strtotime("{$h}:00")) . '</option>';
}
?>
</select></td>
            <td align="right"><?php 
echo t('Date');
?>
:&nbsp;</td>
            <tdnowrap><?php 
date_select();
?>
</td>
            <td align="center"><input type="submit" class="submit" value="<?php 
echo t('Jump');
?>
"></td>
        </tr>
        </table>
        </form></td>
</tr>
</table>
</p>

<p>
<table width="100%" border="0" cellpadding="4" cellspacing="2" class="list small">
Example #6
0
 /**
  *  Test date_select() function
  *
  *  Test the {@link date_select()} function in the
  *  {@link date_helper.php} procedural file
  */
 public function testDate_select_function()
 {
     $_REQUEST['Person']['birthdate(1i)'] = '1955';
     $_REQUEST['Person']['birthdate(2i)'] = '08';
     $_REQUEST['Person']['birthdate(3i)'] = '13';
     //  Test with default format
     $this->assertEquals('<select name="Person[birthdate(1i)]">' . "\n" . '<option value="1950">1950</option>' . "\n" . '<option value="1951">1951</option>' . "\n" . '<option value="1952">1952</option>' . "\n" . '<option value="1953">1953</option>' . "\n" . '<option value="1954">1954</option>' . "\n" . '<option value="1955"  selected="selected">1955</option>' . "\n" . '<option value="1956">1956</option>' . "\n" . '<option value="1957">1957</option>' . "\n" . '<option value="1958">1958</option>' . "\n" . '<option value="1959">1959</option>' . "\n" . '<option value="1960">1960</option>' . "\n" . '</select>' . "\n" . ' <select name="Person[birthdate(2i)]">' . "\n" . '<option value="01">January</option>' . "\n" . '<option value="02">February</option>' . "\n" . '<option value="03">March</option>' . "\n" . '<option value="04">April</option>' . "\n" . '<option value="05">May</option>' . "\n" . '<option value="06">June</option>' . "\n" . '<option value="07">July</option>' . "\n" . '<option value="08" selected="selected">August</option>' . "\n" . '<option value="09">September</option>' . "\n" . '<option value="10">October</option>' . "\n" . '<option value="11">November</option>' . "\n" . '<option value="12">December</option>' . "\n" . '</select>' . "\n" . ' <select name="Person[birthdate(3i)]">' . "\n" . '<option value="01">01</option>' . "\n" . '<option value="02">02</option>' . "\n" . '<option value="03">03</option>' . "\n" . '<option value="04">04</option>' . "\n" . '<option value="05">05</option>' . "\n" . '<option value="06">06</option>' . "\n" . '<option value="07">07</option>' . "\n" . '<option value="08">08</option>' . "\n" . '<option value="09">09</option>' . "\n" . '<option value="10">10</option>' . "\n" . '<option value="11">11</option>' . "\n" . '<option value="12">12</option>' . "\n" . '<option value="13"  selected="selected">13</option>' . "\n" . '<option value="14">14</option>' . "\n" . '<option value="15">15</option>' . "\n" . '<option value="16">16</option>' . "\n" . '<option value="17">17</option>' . "\n" . '<option value="18">18</option>' . "\n" . '<option value="19">19</option>' . "\n" . '<option value="20">20</option>' . "\n" . '<option value="21">21</option>' . "\n" . '<option value="22">22</option>' . "\n" . '<option value="23">23</option>' . "\n" . '<option value="24">24</option>' . "\n" . '<option value="25">25</option>' . "\n" . '<option value="26">26</option>' . "\n" . '<option value="27">27</option>' . "\n" . '<option value="28">28</option>' . "\n" . '<option value="29">29</option>' . "\n" . '<option value="30">30</option>' . "\n" . '<option value="31">31</option>' . "\n" . '</select>' . "\n", date_select('Person', 'birthdate'));
 }
 if ($config['ajax_checks_register'] == true) {
     $verify_un_js = 'onblur="verifyUsername(this.value)"';
     $verify_email_js = 'onblur="verifyEmail(this.value)"';
     /*
     $verify_un_js = 'onKeyUp="verifyUsername(this.value)"';
     $verify_email_js = 'onKeyUp="verifyEmail(this.value)"';
     */
 }
 // 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' || !$config['allow_avatar_upload'] || phpversion() < '4.0.3' && @$ini_val('open_basedir') != '' ? '' : 'enctype="multipart/form-data"';
 $user_sn_im_array = get_user_sn_im_array();
 foreach ($user_sn_im_array as $k => $v) {
     $template->assign_var(strtoupper($v['form']), ${$v}['form']);
 }
 $template->assign_vars(array('S_REGISTER_MESSAGE' => empty($lang['REGISTER_MESSAGE']) ? false : true, 'L_YES' => $lang['Yes'], 'L_NO' => $lang['No'], 'USERNAME' => isset($username) ? $username : '', 'CUR_PASSWORD' => isset($cur_password) ? htmlspecialchars($cur_password) : '', 'NEW_PASSWORD' => isset($new_password) ? htmlspecialchars($new_password) : '', 'PASSWORD_CONFIRM' => isset($password_confirm) ? htmlspecialchars($password_confirm) : '', 'EMAIL' => isset($email) ? $email : '', 'SIG_EDIT_LINK' => append_sid(CMS_PAGE_PROFILE . '?mode=signature'), 'SIG_DESC' => $lang['sig_description'], 'SIG_BUTTON_DESC' => $lang['sig_edit'], 'CONFIRM_IMG' => $confirm_image, 'USER_FIRST_NAME' => $user_first_name, 'USER_LAST_NAME' => $user_last_name, 'OCCUPATION' => $occupation, 'INTERESTS' => $interests, 'FLAG_SELECT' => $flag_select, 'FLAG_START' => $flag_start_image, 'PHONE' => $phone, 'SELFDES' => str_replace('<br />', "\n", $selfdes), 'L_FLAG' => $lang['Country_Flag'], 'L_PHONE' => $lang['UserPhone'], 'L_EXTRA_PROFILE_INFO' => $lang['Extra_profile_info'], 'L_EXTRA_PROFILE_INFO_EXPLAIN' => sprintf($lang['Extra_profile_info_explain'], $config['extra_max']), 'PROFILE_VIEW_POPUP_YES' => $profile_view_popup ? 'checked="checked"' : '', 'PROFILE_VIEW_POPUP_NO' => !$profile_view_popup ? 'checked="checked"' : '', 'L_PROFILE_VIEW_POPUP' => $lang['Profile_view_option'], 'S_BIRTHDAY' => $s_birthday, 'BIRTHDAY_REQUIRED' => $config['birthday_required'] ? '*' : '', 'LOCATION' => $location, 'WEBSITE' => $website, 'SIGNATURE' => str_replace('<br />', "\n", $signature), 'LOCK_GENDER' => $mode != 'register' ? 'DISABLED' : '', 'GENDER' => $gender, 'GENDER_REQUIRED' => $config['gender_required'] ? ' *' : '', 'GENDER_NO_SPECIFY_CHECKED' => $gender_no_specify_checked, 'GENDER_MALE_CHECKED' => $gender_male_checked, 'GENDER_FEMALE_CHECKED' => $gender_female_checked, 'UPI2DB_SYSTEM' => $upi2db_which_system ? 'checked="checked"' : '', 'COOKIE_SYSTEM' => !$upi2db_which_system ? 'checked="checked"' : '', 'UPI2DB_NEW_WORD_YES' => $upi2db_new_word ? 'checked="checked"' : '', 'UPI2DB_NEW_WORD_NO' => !$upi2db_new_word ? 'checked="checked"' : '', 'UPI2DB_EDIT_WORD_YES' => $upi2db_edit_word ? 'checked="checked"' : '', 'UPI2DB_EDIT_WORD_NO' => !$upi2db_edit_word ? 'checked="checked"' : '', 'UPI2DB_UNREAD_COLOR_YES' => $upi2db_unread_color ? 'checked="checked"' : '', 'UPI2DB_UNREAD_COLOR_NO' => !$upi2db_unread_color ? 'checked="checked"' : '', 'HIDE_USER_YES' => !$allowviewonline ? 'checked="checked"' : '', 'HIDE_USER_NO' => $allowviewonline ? 'checked="checked"' : '', 'VIEW_EMAIL_YES' => $viewemail ? 'checked="checked"' : '', 'VIEW_EMAIL_NO' => !$viewemail ? 'checked="checked"' : '', 'ALLOW_MASS_EMAIL_YES' => $allowmassemail ? 'checked="checked"' : '', 'ALLOW_MASS_EMAIL_NO' => !$allowmassemail ? 'checked="checked"' : '', 'ALLOW_PM_IN_YES' => $allowpmin ? 'checked="checked"' : '', 'ALLOW_PM_IN_NO' => !$allowpmin ? '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"' : '', 'ALWAYS_SET_BOOKMARK_YES' => $setbm ? 'checked="checked"' : '', 'ALWAYS_SET_BOOKMARK_NO' => !$setbm ? '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"' : '', 'SHOW_AVATARS_YES' => $showavatars ? 'checked="checked"' : '', 'SHOW_AVATARS_NO' => !$showavatars ? 'checked="checked"' : '', 'SHOW_SIGNATURES_YES' => $showsignatures ? 'checked="checked"' : '', 'SHOW_SIGNATURES_NO' => !$showsignatures ? 'checked="checked"' : '', 'ALWAYS_ALLOW_SWEARYWORDS_YES' => $allowswearywords ? 'checked="checked"' : '', 'ALWAYS_ALLOW_SWEARYWORDS_NO' => !$allowswearywords ? 'checked="checked"' : '', 'POSTS_PER_PAGE' => empty($user->data['user_posts_per_page']) ? $config['posts_per_page'] : intval($user->data['user_posts_per_page']), 'TOPICS_PER_PAGE' => empty($user->data['user_topics_per_page']) ? $config['topics_per_page'] : intval($user->data['user_topics_per_page']), 'HOT_TOPIC' => empty($user->data['user_hot_threshold']) ? $config['hot_threshold'] : $user->data['user_hot_threshold'], 'USER_TOPIC_SHOW_DAYS_SELECT' => $user_topic_show_days_select, 'USER_TOPIC_SORTBY_TYPE_SELECT' => $user_topic_sortby_type_select, 'USER_TOPIC_SORTBY_DIR_SELECT' => $user_topic_sortby_dir_select, 'USER_POST_SHOW_DAYS_SELECT' => $user_post_show_days_select, 'USER_POST_SORTBY_TYPE_SELECT' => $user_post_sortby_type_select, 'USER_POST_SORTBY_DIR_SELECT' => $user_post_sortby_dir_select, 'ALLOW_AVATAR' => $config['allow_avatar_upload'], 'AVATAR' => $avatar_img, 'AVATAR_SIZE' => $config['avatar_filesize'], 'GRAVATAR' => $user->data['user_avatar_type'] == USER_GRAVATAR ? $user->data['user_avatar'] : '', 'LANGUAGE_SELECT' => language_select('language', $user_lang), 'STYLE_SELECT' => style_select('style', $user_style), 'TIMEZONE_SELECT' => tz_select('timezone', $user_timezone), 'DATE_FORMAT' => date_select('dateformat', $user_dateformat), 'TIME_MODE' => $time_mode, 'TIME_MODE_MANUAL_CHECKED' => $time_mode_manual_checked, 'TIME_MODE_MANUAL_DST_CHECKED' => $time_mode_manual_dst_checked, 'TIME_MODE_SERVER_SWITCH_CHECKED' => $time_mode_server_switch_checked, 'DST_TIME_LAG' => $dst_time_lag, 'HTML_STATUS' => $html_status, 'BBCODE_STATUS' => sprintf($bbcode_status, '<a href="' . append_sid('faq.' . PHP_EXT . '?mode=bbcode') . '" target="_blank">', '</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_TIME_MODE' => $lang['time_mode'], 'L_TIME_MODE_TEXT' => $lang['time_mode_text'], 'L_TIME_MODE_MANUAL' => $lang['time_mode_manual'], 'L_TIME_MODE_DST' => $lang['time_mode_dst'], 'L_TIME_MODE_DST_OFF' => $l_time_mode_0, 'L_TIME_MODE_DST_ON' => $l_time_mode_1, 'L_TIME_MODE_DST_SERVER' => $l_time_mode_2, 'L_TIME_MODE_DST_TIME_LAG' => $lang['time_mode_dst_time_lag'], 'L_TIME_MODE_DST_MN' => $lang['time_mode_dst_mn'], 'L_TIME_MODE_TIMEZONE' => $lang['time_mode_timezone'], 'L_TIME_MODE_AUTO' => $lang['time_mode_auto'], 'L_DATE_FORMAT' => $lang['Date_format'], 'L_DATE_FORMAT_EXPLAIN' => $lang['Date_format_explain'], '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_ALWAYS_ALLOW_SMILIES' => $lang['Always_smile'], 'L_ALWAYS_ALLOW_SWEARYWORDS' => $lang['Always_swear'], 'L_ALWAYS_ALLOW_BBCODE' => $lang['Always_bbcode'], 'L_ALWAYS_ALLOW_HTML' => $lang['Always_html'], 'L_HOT_THRESHOLD' => $lang['Hot_threshold'], 'L_POSTS_PER_PAGE' => $lang['Posts_per_page'], 'L_TOPICS_PER_PAGE' => $lang['Topics_per_page'], 'L_HIDE_USER' => $lang['Hide_user'], 'L_ALWAYS_ADD_SIGNATURE' => $lang['Always_add_sig'], 'L_ALWAYS_SET_BOOKMARK' => $lang['Always_set_bm'], 'L_SHOW_AVATARS' => $lang['Show_avatars'], 'L_SHOW_SIGNATURES' => $lang['Show_signatures'], 'L_RETRO_SIG' => $lang['Retro_sig'], 'L_RETRO_SIG_EXPLAIN' => $lang['Retro_sig_explain'], 'L_RETRO_SIG_CHECKBOX' => $lang['Retro_sig_checkbox'], 'L_AVATAR_SIGNATURE' => $lang['Signature_Panel'], 'L_AVATAR_PANEL' => $lang['Avatar_panel'], 'L_AVATAR_EXPLAIN' => sprintf($lang['Avatar_explain'], $config['avatar_max_width'], $config['avatar_max_height'], round($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_GENERATE_AVATAR' => $lang['Create_with_generator'], 'L_AVATAR_GENERATOR' => $lang['View_avatar_generator'], 'L_LINK_REMOTE_AVATAR' => $lang['Link_remote_Avatar'], 'L_LINK_REMOTE_AVATAR_EXPLAIN' => $lang['Link_remote_Avatar_explain'], 'L_GRAVATAR' => $lang['Gravatar'], 'L_GRAVATAR_EXPLAIN' => $lang['Gravatar_explain'], 'L_DELETE_AVATAR' => $lang['Delete_Image'], 'L_CURRENT_IMAGE' => $lang['Current_Image'], 'L_SIGNATURE' => $lang['Signature'], 'L_SIGNATURE_EXPLAIN' => sprintf($lang['Signature_explain'], $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_UPI2DB_SYSTEM' => $lang['upi2db_system'], 'L_UPI2DB_WHICH_SYSTEM' => $lang['upi2db_which_system'], 'L_UPI2DB_WHICH_SYSTEM_EXPLAIN' => $lang['upi2db_which_system_explain'], 'L_UPI2DB_NEW_WORD' => $lang['upi2db_new_word'], 'L_UPI2DB_NEW_WORD_EXPLAIN' => $lang['upi2db_new_word_explain'], 'L_UPI2DB_EDIT_WORD' => $lang['upi2db_edit_word'], 'L_UPI2DB_EDIT_WORD_EXPLAIN' => $lang['upi2db_edit_word_explain'], 'L_COOKIE_SYSTEM' => $lang['cookie_system'], 'L_UPI2DB_SYSTEM' => $lang['upi2db_system'], 'L_UPI2DB_UNREAD_COLOR' => $lang['upi2db_unread_color'], 'L_PUBLIC_VIEW_EMAIL' => $lang['Public_view_email'], 'L_MASS_EMAIL' => $lang['Admin_Emails'], 'L_PM_IN' => $lang['Allow_PM_IN'], 'L_PM_IN_EXPLAIN' => $lang['Allow_PM_IN_Explain'], '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_EMAIL' => $lang['Email_confirm'], 'EMAIL_CONFIRM' => $email_confirm, 'L_CONFIRM_CODE_IMPAIRED' => sprintf($lang['CONFIRM_CODE_IMPAIRED'], '<a href="mailto:' . $config['board_email'] . '">', '</a>'), 'U_AJAX_VERIFY' => 'ajax_verify.' . PHP_EXT, 'VERIFY_UN_JS' => $verify_un_js, 'VERIFY_EMAIL_JS' => $verify_email_js, 'L_UN_SHORT' => $lang['Reg_Username_Short'], 'L_UN_LONG' => $lang['Reg_Username_Long'], 'L_UN_TAKEN' => $lang['Reg_Username_Taken'], 'L_UN_FREE' => $lang['Reg_Username_Free'], 'L_PWD_SHORT' => $lang['Reg_PWD_Short'], 'L_PWD_EASY' => $lang['Reg_PWD_Easy'], 'L_PWD_OK' => $lang['Reg_PWD_OK'], 'L_EMAIL_INVALID' => $lang['Reg_Email_Invalid'], 'L_EMAIL_OK' => $lang['Reg_Email_OK'], 'S_ALLOW_AVATAR_UPLOAD' => $config['allow_avatar_upload'], 'S_ALLOW_AVATAR_LOCAL' => $config['allow_avatar_local'], 'S_ALLOW_AVATAR_REMOTE' => $config['allow_avatar_remote'], 'S_ALLOW_AVATAR_GENERATOR' => $config['allow_avatar_generator'], 'S_ENABLE_GRAVATARS' => $config['enable_gravatars'], 'S_HIDDEN_FIELDS' => $s_hidden_fields, 'S_FORM_ENCTYPE' => $form_enctype, 'S_PROFILE_ACTION' => append_sid(CMS_PAGE_PROFILE . '?cpl_mode=' . $cpl_mode . $social_connect_append)));
 //
 // 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 ($user->data['user_allowavatar'] && ($config['allow_avatar_upload'] || $config['allow_avatar_local'] || $config['allow_avatar_remote'] || $config['enable_gravatars'] || $config['allow_avatar_generator'])) {
         $template->assign_block_vars($cpl_avatar_control . 'switch_avatar_block', array());
         if ($config['allow_avatar_upload'] && file_exists(@phpbb_realpath('./' . $config['avatar_path']))) {
             if ($form_enctype != '') {
                 $template->assign_block_vars($cpl_avatar_control . 'switch_avatar_block.switch_avatar_local_upload', array());
             }
             $template->assign_block_vars($cpl_avatar_control . 'switch_avatar_block.switch_avatar_remote_upload', array());
         }
         if ($config['allow_avatar_remote']) {
    public function testDateSelectWithBlankAndYearLimits()
    {
        $article = new MockArticle();
        $article->written_on = new SDate(2006, 3, 31);
        $expect = <<<EOT
        <select name="article[written_on][year]">
        <option value=""></option>
        <option value="2005">2005</option><option value="2006" selected="selected">2006</option>
        <option value="2007">2007</option><option value="2008">2008</option>
        </select>
        <select name="article[written_on][month]">
        <option value=""></option>
        <option value="1">January</option><option value="2">February</option>
        <option value="3" selected="selected">March</option><option value="4">April</option>
        <option value="5">May</option><option value="6">June</option>
        <option value="7">July</option><option value="8">August</option>
        <option value="9">September</option><option value="10">October</option>
        <option value="11">November</option><option value="12">December</option>
        </select>
        <select name="article[written_on][day]">
        <option value=""></option>
        <option value="1">1</option><option value="2">2</option>
        <option value="3">3</option><option value="4">4</option>
        <option value="5">5</option><option value="6">6</option>
        <option value="7">7</option><option value="8">8</option>
        <option value="9">9</option><option value="10">10</option>
        <option value="11">11</option><option value="12">12</option>
        <option value="13">13</option><option value="14">14</option>
        <option value="15">15</option><option value="16">16</option>
        <option value="17">17</option><option value="18">18</option>
        <option value="19">19</option><option value="20">20</option>
        <option value="21">21</option><option value="22">22</option>
        <option value="23">23</option><option value="24">24</option>
        <option value="25">25</option><option value="26">26</option>
        <option value="27">27</option><option value="28">28</option>
        <option value="29">29</option><option value="30">30</option>
        <option value="31" selected="selected">31</option>
        </select>
EOT;
        $this->assertDomEqual($expect, date_select('article', 'written_on', $article, array('include_blank' => true, 'start_year' => 2005, 'end_year' => 2008)));
    }
Example #9
0
File: event.php Project: nikuha/rs
    }
    $events[] = $info;
}
$replace['events'] = $events;
$replace['event_id'] = $event_id;
$replace['calendar'] = calendar($sy, $sm, 'templ/calendar.htm', "?p={$part}", 0, TABLE_EVENT, -1);
$left_menu = get_template('templ/event_list.htm', $replace);
if ($event_id) {
    $sql = mysql_query("SELECT * FROM " . TABLE_EVENT . " WHERE event_id='{$event_id}'") or Error(1, __FILE__, __LINE__);
    if ($event = @mysql_fetch_array($sql)) {
        $event['admin_edit'] = $event['user_id'] == $_SESSION['admin_id'] ? 1 : 0;
        $event['edit'] = preg_match("/ДР клиента/", $event['name']) ? 0 : 1;
        if ($event['admin_edit']) {
            $event['name'] = htmlspecialchars($event['name'], ENT_COMPAT, 'cp1251');
            $event['public_select'] = array_select('public', array(0 => 'Нет', 1 => 'Да'), $event['public'], 0);
            $event['date_select'] = date_select($event['date'], 'd', 'm', 'y', 2, 2);
            list($event['hour'], $event['minute']) = explode(":", $event['time']);
            $event['date'] = $date;
            $event['sy'] = $sy;
            $event['sm'] = $sm;
            if ($event['edit']) {
                $tinymce_elements = 'description';
                $tinymce_head = get_template('templ/tinymce_head.htm', array('tinymce_elements' => $tinymce_elements));
                $event['description'] = htmlspecialchars($event['description'], ENT_COMPAT, 'cp1251');
            }
            $event['type_select'] = array_select('type', array(0 => 'нет', 1 => 'добавленная заявка', 2 => 'текущая заявка', 3 => 'новость'), $event['type'], 0);
            if ($event['o_id']) {
                if ($event['type'] == 1) {
                    $event['o_link'] = "?p=order&order_id={$event['o_id']}";
                } elseif ($event['type'] == 2) {
                    $event['o_link'] = "?p=siteorder&siteorder_id={$event['o_id']}";
Example #10
0
File: news.php Project: nikuha/rs
    }
    $info['edit_link'] = ADMIN_URL . "?p={$part}&news_id={$info['news_id']}{$date_ref}";
    $info['del_link'] = "";
    $info['icount'] = 0;
    if ($i = check_news($info['news_id'])) {
        $info['icount'] = $i;
    } else {
        $info['del_link'] = ADMIN_URL . "?p={$part}&del_news={$info['news_id']}{$date_ref}";
    }
    $newss[] = $info;
}
$replace['newss'] = $newss;
$replace['news_id'] = $news_id;
$replace['calendar'] = calendar($sy, $sm, 'templ/calendar.htm', "?p={$part}", 0);
$left_menu = get_template('templ/news_list.htm', $replace);
if ($news_id) {
    $sql = mysql_query("SELECT * FROM " . TABLE_NEWS . " WHERE news_id='{$news_id}'") or Error(1, __FILE__, __LINE__);
    if ($news = @mysql_fetch_array($sql)) {
        $news['name'] = htmlspecialchars($news['name'], ENT_COMPAT, 'cp1251');
        $news['public_select'] = array_select('public', array(0 => 'Нет', 1 => 'Да'), $news['public'], 0);
        $news['date_select'] = date_select($news['date'], 'd', 'm', 'y', 2, 2);
        $news['date'] = $date;
        $news['sy'] = $sy;
        $news['sm'] = $sm;
        $tinymce_elements = 'description,descr';
        $tinymce_head = get_template('templ/tinymce_head.htm', array('tinymce_elements' => $tinymce_elements));
        $news['description'] = htmlspecialchars($news['description'], ENT_COMPAT, 'cp1251');
        $news['descr'] = htmlspecialchars($news['descr'], ENT_COMPAT, 'cp1251');
        $content = get_template('templ/news.htm', $news);
    }
}
Example #11
0
</td>
        <td class="x-day">
            <a class="link" onclick="list_update(<?php 
echo $list_starttime - 24 * 60 * 60;
?>
);">
                <img src="<?php 
echo skin_url;
?>
img/left.gif" alt="<?php 
echo t('left');
?>
">
            </a>
            <?php 
date_select('id="date_select" onchange="list_update($(\'date_select\')[$(\'date_select\').selectedIndex].value);"');
?>
            <a class="link" onclick="list_update(<?php 
echo $list_starttime + 24 * 60 * 60;
?>
);">
                <img src="<?php 
echo skin_url;
?>
img/right.gif" alt="<?php 
echo t('right');
?>
">
            </a>
        </td>
    </tr>
Example #12
0
     ${'user_' . $sort_option . '_sortby_dir_select'} = '<select name="user_' . $sort_option . '_sortby_dir">';
     foreach ($sort_dir_text as $key => $value) {
         $selected = ${'user_' . $sort_option . '_sortby_dir'} == $key ? ' selected="selected"' : '';
         ${'user_' . $sort_option . '_sortby_dir_select'} .= '<option value="' . $key . '"' . $selected . '>' . $value . '</option>';
     }
     ${'user_' . $sort_option . '_sortby_dir_select'} .= '</select>';
 }
 // TOPICS / POSTS - SORTING - END
 // 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' || !$config['allow_avatar_upload'] || phpversion() < '4.0.3' && @$ini_val('open_basedir') != '' ? '' : 'enctype="multipart/form-data"';
 $user_sn_im_array = get_user_sn_im_array();
 foreach ($user_sn_im_array as $k => $v) {
     $template->assign_var(strtoupper($v['form']), ${$v}['form']);
 }
 $template->assign_vars(array('USERNAME' => $username, 'EMAIL' => $email, 'USER_FIRST_NAME' => $user_first_name, 'USER_LAST_NAME' => $user_last_name, 'OCCUPATION' => $occupation, 'INTERESTS' => $interests, 'FLAG_SELECT' => $flag_select, 'FLAG_START' => $flag_start_image, 'PHONE' => $phone, 'SELFDES' => str_replace('<br />', "\n", $selfdes), 'L_FLAG' => $lang['Country_Flag'], 'L_PHONE' => $lang['UserPhone'], 'L_EXTRA_PROFILE_INFO' => $lang['Extra_profile_info'], 'L_EXTRA_PROFILE_INFO_EXPLAIN' => sprintf($lang['Extra_profile_info_explain'], $config['extra_max']), 'PROFILE_VIEW_POPUP_YES' => $profile_view_popup ? 'checked="checked"' : '', 'PROFILE_VIEW_POPUP_NO' => !$profile_view_popup ? 'checked="checked"' : '', 'L_PROFILE_VIEW_POPUP' => $lang['Profile_view_option'], 'NEXT_BIRTHDAY_GREETING' => $next_birthday_greeting, 'S_BIRTHDAY' => $s_birthday, 'GENDER' => $gender, 'GENDER_NO_SPECIFY_CHECKED' => $gender_no_specify_checked, 'GENDER_MALE_CHECKED' => $gender_male_checked, 'GENDER_FEMALE_CHECKED' => $gender_female_checked, 'LOCATION' => $location, 'WEBSITE' => $website, 'SIGNATURE' => str_replace('<br />', "\n", $signature), 'HIDE_USER_YES' => !$allowviewonline ? 'checked="checked"' : '', 'HIDE_USER_NO' => $allowviewonline ? 'checked="checked"' : '', 'VIEW_EMAIL_YES' => $viewemail ? 'checked="checked"' : '', 'VIEW_EMAIL_NO' => !$viewemail ? 'checked="checked"' : '', 'ALLOW_MASS_EMAIL_YES' => $allowmassemail ? 'checked="checked"' : '', 'ALLOW_MASS_EMAIL_NO' => !$allowmassemail ? 'checked="checked"' : '', 'ALLOW_PM_IN_YES' => $allowpmin ? 'checked="checked"' : '', 'ALLOW_PM_IN_NO' => !$allowpmin ? '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"' : '', 'ALWAYS_SET_BOOKMARK_YES' => $setbm ? 'checked="checked"' : '', 'ALWAYS_SET_BOOKMARK_NO' => !$setbm ? 'checked="checked"' : '', 'ALWAYS_SHOW_AVATARS_YES' => $user_showavatars ? 'checked="checked"' : '', 'ALWAYS_SHOW_AVATARS_NO' => !$user_showavatars ? 'checked="checked"' : '', 'ALWAYS_SHOW_SIGNATURES_YES' => $user_showsignatures ? 'checked="checked"' : '', 'ALWAYS_SHOW_SIGNATURES_NO' => !$user_showsignatures ? 'checked="checked"' : '', 'ALWAYS_SWEARY_WORDS_YES' => $user_allowswearywords ? 'checked="checked"' : '', 'ALWAYS_SWEARY_WORDS_NO' => !$user_allowswearywords ? '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"' : '', 'POSTS_PER_PAGE' => !$user_posts_per_page ? $config['posts_per_page'] : $user_posts_per_page, 'TOPICS_PER_PAGE' => !$user_topics_per_page ? $config['topics_per_page'] : $user_topics_per_page, 'HOT_TOPIC' => !$user_hot_threshold ? $config['hot_threshold'] : $user_hot_threshold, 'USER_TOPIC_SHOW_DAYS_SELECT' => $user_topic_show_days_select, 'USER_TOPIC_SORTBY_TYPE_SELECT' => $user_topic_sortby_type_select, 'USER_TOPIC_SORTBY_DIR_SELECT' => $user_topic_sortby_dir_select, 'USER_POST_SHOW_DAYS_SELECT' => $user_post_show_days_select, 'USER_POST_SORTBY_TYPE_SELECT' => $user_post_sortby_type_select, 'USER_POST_SORTBY_DIR_SELECT' => $user_post_sortby_dir_select, 'AVATAR' => $avatar, 'GRAVATAR' => $user_avatar_type == USER_GRAVATAR ? $user->data['user_avatar'] : '', 'STYLE_SELECT' => style_select('style', $user_style), 'LANGUAGE_SELECT' => language_select('language', $user_lang), 'TIMEZONE_SELECT' => tz_select('timezone', $user_timezone), 'DATE_FORMAT' => date_select('dateformat', $user_dateformat), 'TIME_MODE' => $time_mode, 'TIME_MODE_MANUAL_CHECKED' => $time_mode_manual_checked, 'TIME_MODE_MANUAL_DST_CHECKED' => $time_mode_manual_dst_checked, 'TIME_MODE_SERVER_SWITCH_CHECKED' => $time_mode_server_switch_checked, 'TIME_MODE_FULL_SERVER_CHECKED' => $time_mode_full_server_checked, 'TIME_MODE_SERVER_PC_CHECKED' => $time_mode_server_pc_checked, 'TIME_MODE_FULL_PC_CHECKED' => $time_mode_full_pc_checked, 'DST_TIME_LAG' => $dst_time_lag, '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"' : '', 'DISABLE_UPI2DB_YES' => $user_upi2db_disable ? 'checked="checked"' : '', 'DISABLE_UPI2DB_NO' => !$user_upi2db_disable ? 'checked="checked"' : '', 'USER_ACTIVE_YES' => $user_status ? 'checked="checked"' : '', 'USER_ACTIVE_NO' => !$user_status ? 'checked="checked"' : '', 'USER_MASK_YES' => $user_mask ? 'checked="checked"' : '', 'USER_MASK_NO' => !$user_mask ? 'checked="checked"' : '', 'BANCARD' => $user_ycard, 'POSTS' => $user_posts, 'RANK1_SELECT_BOX' => $rank1_select_box, 'RANK2_SELECT_BOX' => $rank2_select_box, 'RANK3_SELECT_BOX' => $rank3_select_box, 'RANK4_SELECT_BOX' => $rank4_select_box, 'RANK5_SELECT_BOX' => $rank5_select_box, 'USER_GROUP_ID' => $user_default_group_select, 'USER_COLOR' => str_replace('#', '', $user_color), 'USER_COLOR_STYLE' => $user_color != '' ? ' style="color:' . $user_color . ';font-weight:bold;"' : ' style="font-weight:bold;"', '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_TIME_MODE' => $lang['time_mode'], 'L_TIME_MODE_TEXT' => $lang['time_mode_text'], 'L_TIME_MODE_MANUAL' => $lang['time_mode_manual'], 'L_TIME_MODE_DST' => $lang['time_mode_dst'], 'L_TIME_MODE_DST_OFF' => $l_time_mode_0, 'L_TIME_MODE_DST_ON' => $l_time_mode_1, 'L_TIME_MODE_DST_SERVER' => $l_time_mode_2, 'L_TIME_MODE_DST_TIME_LAG' => $lang['time_mode_dst_time_lag'], 'L_TIME_MODE_DST_MN' => $lang['time_mode_dst_mn'], 'L_TIME_MODE_TIMEZONE' => $lang['time_mode_timezone'], 'L_TIME_MODE_AUTO' => $lang['time_mode_auto'], 'L_TIME_MODE_FULL_SERVER' => $l_time_mode_3, 'L_TIME_MODE_SERVER_PC' => $l_time_mode_4, 'L_TIME_MODE_FULL_PC' => $l_time_mode_6, 'L_DATE_FORMAT' => $lang['Date_format'], 'L_DATE_FORMAT_EXPLAIN' => $lang['Date_format_explain'], 'L_YES' => $lang['Yes'], 'L_NO' => $lang['No'], 'L_INTERESTS' => $lang['Interests'], 'L_BIRTHDAY' => $lang['Birthday'], 'L_NEXT_BIRTHDAY_GREETING' => $lang['Next_birthday_greeting'], 'L_NEXT_BIRTHDAY_GREETING_EXPLAIN' => $lang['Next_birthday_greeting_explain'], 'L_GENDER' => $lang['Gender'], 'L_GENDER_MALE' => $lang['Male'], 'L_GENDER_FEMALE' => $lang['Female'], 'L_GENDER_NOT_SPECIFY' => $lang['No_gender_specify'], 'L_BANCARD' => $lang['ban_card'], 'L_BANCARD_EXPLAIN' => sprintf($lang['ban_card_explain'], $config['max_user_bancard']), 'L_HOT_THRESHOLD' => $lang['Hot_threshold'], 'L_POSTS_PER_PAGE' => $lang['Posts_per_page'], 'L_TOPICS_PER_PAGE' => $lang['Topics_per_page'], '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_ALWAYS_SET_BOOKMARK' => $lang['Always_set_bm'], 'L_SHOW_AVATARS' => $lang['Show_avatars'], 'L_SHOW_SIGNATURES' => $lang['Show_signatures'], 'L_ALWAYS_ALLOW_SWEARYWORDS' => $lang['Always_swear'], '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_DISABLE_UPI2DB' => $lang['user_disable_upi2db'], 'L_POSTCOUNT' => $lang['Modify_post_counts'], 'L_POSTCOUNT_EXPLAIN' => $lang['Post_count_explain'], '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_GRAVATAR' => $lang['Gravatar'], 'L_GRAVATAR_EXPLAIN' => $lang['Gravatar_explain'], 'L_SIGNATURE' => $lang['Signature'], 'L_SIGNATURE_EXPLAIN' => sprintf($lang['Signature_explain'], $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_MASS_EMAIL' => $lang['Admin_Emails'], 'L_PM_IN' => $lang['Allow_PM_IN'], 'L_PM_IN_EXPLAIN' => $lang['Allow_PM_IN_Explain'], '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.' . PHP_EXT . '?mode=bbcode') . '" target="_blank">', '</a>'), 'SMILIES_STATUS' => $smilies_status, 'L_DELETE_USER' => $lang['User_delete'], 'L_DELETE_USER_EXPLAIN' => $lang['User_delete_explain'], 'L_SELECT_RANK1' => $lang['Rank1_title'], 'L_SELECT_RANK2' => $lang['Rank2_title'], 'L_SELECT_RANK3' => $lang['Rank3_title'], 'L_SELECT_RANK4' => $lang['Rank4_title'], 'L_SELECT_RANK5' => $lang['Rank5_title'], 'L_GROUP_DEFAULT' => $lang['Group_Default_Membership'], 'L_GROUP_DEFAULT_EXPLAIN' => $lang['Group_Default_Membership_Explain'], 'L_USER_COLOR' => $lang['User_Color'], 'L_USER_COLOR_EXPLAIN' => $lang['User_Color_Explain'], 'S_HIDDEN_FIELDS' => $s_hidden_fields, 'S_PROFILE_ACTION' => append_sid('admin_users.' . PHP_EXT)));
 if (file_exists(@phpbb_realpath('./../' . $config['avatar_path'])) && $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('./../' . $config['avatar_gallery_path'])) && $config['allow_avatar_local'] == true) {
     $template->assign_block_vars('avatar_local_gallery', array());
 }
 if ($config['allow_avatar_remote'] == true) {
     $template->assign_block_vars('avatar_remote_link', array());
 }
 if ($config['enable_gravatars']) {
     $template->assign_block_vars('switch_gravatar', array());
 }
 public function date_select($method, $options = array())
 {
     return date_select($this->objectName, $method, $this->object, $options);
 }