Example #1
0
     $Form->output = false;
     $Form->switch_layout('none');
     $org_suffix = ' &nbsp; <strong>' . T_('Role') . ':</strong> ' . $Form->text_input('org_roles[]', '', 20, '', '', array('maxlength' => 255)) . ' &nbsp; ';
     $Form->switch_layout(NULL);
     $Form->output = true;
     // Special form template that will be replaced to current skin on ajax response
     $Form->fieldstart = '#fieldstart#';
     $Form->fieldend = '#fieldend#';
     $Form->labelclass = '#labelclass#';
     $Form->labelstart = '#labelstart#';
     $Form->labelend = '#labelend#';
     $Form->inputstart = '#inputstart#';
     $Form->inputend = '#inputend#';
     $org_suffix .= ' ' . get_icon('add', 'imgtag', array('class' => 'add_org', 'style' => 'cursor:pointer'));
     $org_suffix .= ' ' . get_icon('minus', 'imgtag', array('class' => 'remove_org', 'style' => 'cursor:pointer'));
     $Form->select_input_object('organizations[]', 0, $OrganizationCache, T_('Organization'), array('allow_none' => $first_org ? true : false, 'field_suffix' => $org_suffix));
     break;
 case 'autocomplete_usernames':
     // Get usernames by first chars for autocomplete jQuery plugin & TinyMCE autocomplete plugin
     $q = param('q', 'string', '');
     if (!is_valid_login($q) || evo_strlen($q) < 4) {
         // Restrict a wrong request
         debug_die('Wrong request');
     }
     // Add backslash for special char of sql operator LIKE
     $q = str_replace('_', '\\_', $q);
     if (utf8_strlen($q) == 0) {
         // Don't search logins with empty request
         $usernames = array();
     } else {
         $SQL = new SQL();
Example #2
0
 * Parts of this file are copyright (c)2005 by Daniel HAHLER - {@link http://thequod.de/contact}.
 *
 * @license http://b2evolution.net/about/license.html GNU General Public License (GPL)
 *
 * @package admin
 *
 * {@internal Below is a list of authors who have contributed to design/coding of this file: }}
 * @author fplanque: Francois PLANQUE.
 *
 * @version $Id: _wpxml_file.view.php 505 2011-12-09 20:54:21Z fplanque $
 */
if (!defined('EVO_MAIN_INIT')) {
    die('Please, do not access this page directly.');
}
global $dispatcher;
$Form = new Form(NULL, '', 'post', NULL, 'multipart/form-data');
$Form->begin_form('fform', T_('WordPress XML Importer'));
$Form->add_crumb('wpxml');
$Form->hidden_ctrl();
$Form->hidden('action', 'import');
$Form->begin_fieldset(T_('Select XML file'));
$Form->text_input('wp_file', '', 20, T_('WordPress XML File'), '', array('type' => 'file', 'required' => true));
$Form->end_fieldset();
$Form->begin_fieldset(T_('Select a blog for import'));
$BlogCache =& get_BlogCache();
$BlogCache->none_option_text = '&nbsp;';
$Form->select_input_object('wp_blog_ID', param('wp_blog_ID', 'integer', 0), $BlogCache, T_('Blog for import'), array('note' => T_('This blog will be used for import.') . ' <a href="' . $dispatcher . '?ctrl=collections&action=new">' . T_('Create new blog') . ' &raquo;</a>', 'allow_none' => true, 'required' => true));
$Form->radio_input('import_type', param('import_type', 'string', 'replace'), array(array('value' => 'replace', 'label' => T_('Replace existing contents'), 'note' => T_('WARNING: this option will permanently remove existing Posts, comments, categories and tags from the selected blog.')), array('value' => 'append', 'label' => T_('Append to existing contents'))), '', array('lines' => true));
$Form->end_fieldset();
$Form->buttons(array(array('submit', 'submit', T_('Continue !'), 'SaveButton'), array('reset', '', T_('Reset'), 'ResetButton')));
$Form->end_form();
Example #3
0
$creating = is_create_action($action);
// These params need to be memorized and passed through regenerated urls: (this allows to come back to the right list order & page)
param('results_goals_page', 'integer', '', true);
param('results_goals_order', 'string', '', true);
$Form = new Form(NULL, 'goal_checkchanges', 'post', 'compact');
if (!$creating) {
    $Form->global_icon(T_('Delete this goal!'), 'delete', regenerate_url('action', 'action=delete&amp;' . url_crumb('goal')));
}
$Form->global_icon(T_('Cancel editing!'), 'close', regenerate_url('action'));
$Form->begin_form('fform', $creating ? T_('New goal') : T_('Goal'));
$Form->add_crumb('goal');
$Form->hiddens_by_key(get_memorized('action' . ($creating ? ',goal_ID' : '')));
// (this allows to come back to the right list order & page)
$GoalCategoryCache =& get_GoalCategoryCache();
$GoalCategoryCache->load_all();
$Form->select_input_object('goal_gcat_ID', $edited_Goal->gcat_ID, $GoalCategoryCache, T_('Category'), array('required' => true));
$Form->text_input('goal_name', $edited_Goal->name, 40, T_('Name'), '', array('maxlength' => 50, 'required' => true));
$Form->text_input('goal_key', $edited_Goal->key, 32, T_('Key'), T_('Should be URL friendly'), array('required' => true));
$Form->text_input('goal_redir_url', $edited_Goal->redir_url, 60, T_('Normal Redirection URL'), '', array('maxlength' => 255, 'class' => 'large', 'required' => true));
$Form->text_input('goal_temp_redir_url', $edited_Goal->temp_redir_url, 60, T_('Temporary Redirection URL'), '', array('maxlength' => 255, 'class' => 'large'));
$Form->date_input('goal_temp_start_date', is_int($edited_Goal->temp_start_ts) ? date2mysql($edited_Goal->temp_start_ts) : $edited_Goal->temp_start_ts, T_('Temporary Start Date'));
$Form->time_input('goal_temp_start_time', is_int($edited_Goal->temp_start_ts) ? date2mysql($edited_Goal->temp_start_ts) : $edited_Goal->temp_start_ts, T_('Temporary Start Time'));
$Form->date_input('goal_temp_end_date', is_int($edited_Goal->temp_end_ts) ? date2mysql($edited_Goal->temp_end_ts) : $edited_Goal->temp_end_ts, T_('Temporary End Date'));
$Form->time_input('goal_temp_end_time', is_int($edited_Goal->temp_end_ts) ? date2mysql($edited_Goal->temp_end_ts) : $edited_Goal->temp_end_ts, T_('Temporary End Time'));
$Form->text_input('goal_default_value', $edited_Goal->default_value, 15, T_('Default value'), '');
$Form->textarea('goal_notes', $edited_Goal->get('notes'), 15, T_('Notes'), '', 50);
if ($creating) {
    $Form->end_form(array(array('submit', 'actionArray[create]', T_('Record'), 'SaveButton'), array('submit', 'actionArray[create_new]', T_('Record, then Create New'), 'SaveButton'), array('submit', 'actionArray[create_copy]', T_('Record, then Create Similar'), 'SaveButton')));
} else {
    $Form->end_form(array(array('submit', 'actionArray[update]', T_('Save Changes!'), 'SaveButton')));
}
Example #4
0
 * @author fplanque: Francois Planque.
 *
 * @version $Id: _country.form.php 3328 2013-03-26 11:44:11Z yura $
 */
if (!defined('EVO_MAIN_INIT')) {
    die('Please, do not access this page directly.');
}
load_class('regional/model/_currency.class.php', 'Currency');
/**
 * @var Country
 */
global $edited_Country;
// Determine if we are creating or updating...
global $action;
$creating = is_create_action($action);
$Form = new Form(NULL, 'country_checkchanges', 'post', 'compact');
$Form->global_icon(T_('Delete this country!'), 'delete', regenerate_url('action', 'action=delete&amp;' . url_crumb('country')));
$Form->global_icon(T_('Cancel editing!'), 'close', regenerate_url('action'));
$Form->begin_form('fform', $creating ? T_('New country') : T_('Country'));
$Form->add_crumb('country');
$Form->hiddens_by_key(get_memorized('action' . ($creating ? ',ctry_ID' : '')));
// (this allows to come back to the right list order & page)
$Form->text_input('ctry_code', $edited_Country->code, 2, T_('Code'), '', array('maxlength' => 2, 'required' => true));
$Form->text_input('ctry_name', $edited_Country->name, 40, T_('Name'), '', array('maxlength' => 40, 'required' => true));
$CurrencyCache =& get_CurrencyCache();
$Form->select_input_object('ctry_curr_ID', $edited_Country->curr_ID, $CurrencyCache, T_('Default Currency'), array('allow_none' => true));
if ($creating) {
    $Form->end_form(array(array('submit', 'actionArray[create]', T_('Record'), 'SaveButton'), array('submit', 'actionArray[create_new]', T_('Record, then Create New'), 'SaveButton'), array('submit', 'actionArray[create_copy]', T_('Record, then Create Similar'), 'SaveButton'), array('reset', '', T_('Reset'), 'ResetButton')));
} else {
    $Form->end_form(array(array('submit', 'actionArray[update]', T_('Update'), 'SaveButton'), array('reset', '', T_('Reset'), 'ResetButton')));
}
$Form->begin_fieldset(T_('Global Site Settings') . get_manual_link('global-site-settings'));
$Form->text_input('site_code', $Settings->get('site_code'), 10, T_('Site code'), '$instance_name = ' . $instance_name, array('maxlength' => 20));
$Form->color_input('site_color', $Settings->get('site_color'), T_('Site color'), T_('E-g: #ff0000 for red'));
$Form->text_input('notification_short_name', $Settings->get('notification_short_name'), 50, T_('Short site name'), T_('Shared with email settings'), array('maxlength' => 127, 'required' => true));
$Form->text_input('notification_long_name', $Settings->get('notification_long_name'), 50, T_('Long site name'), T_('Shared with email settings'), array('maxlength' => 255));
$Form->text_input('notification_logo', $Settings->get('notification_logo'), 50, T_('Small site logo (URL)'), T_('Shared with email settings'), array('maxlength' => 5000));
$Form->text_input('notification_logo_large', $Settings->get('notification_logo_large'), 50, T_('Large site logo (URL)'), '', array('maxlength' => 5000));
$Form->text_input('site_footer_text', $Settings->get('site_footer_text'), 50, T_('Site footer text'), '', array('maxlength' => 5000));
$Form->checkbox_input('site_skins_enabled', $Settings->get('site_skins_enabled'), T_('Enable site skins'), array('note' => T_('Enables a sitewide header and footer')));
$Form->text_input('site_terms', $Settings->get('site_terms'), 7, T_('Terms & Conditions'), T_('Enter ID of the page containing the terms & conditions.'), array('maxlength' => 11));
$Form->end_fieldset();
// --------------------------------------------
$Form->begin_fieldset(T_('Default collections') . get_manual_link('default-collections'));
$BlogCache =& get_BlogCache();
$create_new_blog_link = ' <a href="' . $admin_url . '?ctrl=collections&action=new">' . T_('Create new collection') . ' &raquo;</a>';
$Form->select_input_object('default_blog_ID', $Settings->get('default_blog_ID'), $BlogCache, get_icon('coll_default') . ' ' . T_('Default collection to display'), array('note' => T_('This collection will be displayed on index.php.') . $create_new_blog_link, 'allow_none' => true, 'loop_object_method' => 'get_maxlen_name'));
$Form->select_input_object('info_blog_ID', $Settings->get('info_blog_ID'), $BlogCache, get_icon('coll_info') . ' ' . T_('Collection for info pages'), array('note' => T_('The pages in this collection will be added to the site menu.') . $create_new_blog_link, 'allow_none' => true, 'loop_object_method' => 'get_maxlen_name'));
$Form->select_input_object('login_blog_ID', $Settings->get('login_blog_ID'), $BlogCache, get_icon('coll_login') . ' ' . T_('Collection for login/registration'), array('note' => T_('This collection will be used for all login/registration functions.') . $create_new_blog_link, 'allow_none' => true, 'loop_object_method' => 'get_maxlen_name'));
$Form->select_input_object('msg_blog_ID', $Settings->get('msg_blog_ID'), $BlogCache, get_icon('coll_message') . ' ' . T_('Collection for profiles/messaging'), array('note' => T_('This collection will be used for all messaging, profile viewing and profile editing functions.') . $create_new_blog_link, 'allow_none' => true, 'loop_object_method' => 'get_maxlen_name'));
$Form->end_fieldset();
// --------------------------------------------
$Form->begin_fieldset(T_('Technical Site Settings') . get_manual_link('technical-site-settings'));
$Form->duration_input('reloadpage_timeout', (int) $Settings->get('reloadpage_timeout'), T_('Reload-page timeout'), 'minutes', 'seconds', array('minutes_step' => 1, 'required' => true));
// $Form->text_input( 'reloadpage_timeout', (int)$Settings->get('reloadpage_timeout'), 5,
// T_('Reload-page timeout'), T_('Time (in seconds) that must pass before a request to the same URI from the same IP and useragent is considered as a new hit.'), array( 'maxlength'=>5, 'required'=>true ) );
$Form->checkbox_input('general_cache_enabled', $Settings->get('general_cache_enabled'), get_icon('page_cache_on') . ' ' . T_('Enable general cache'), array('note' => T_('Cache rendered pages that are not controlled by a skin. See Blog Settings for skin output caching.')));
$Form->end_fieldset();
// --------------------------------------------
if ($current_User->check_perm('options', 'edit')) {
    $Form->end_form(array(array('submit', 'submit', T_('Save Changes!'), 'SaveButton')));
}
Example #6
0
        $Table->display_col_start();
        echo date(locale_datefmt() . ' ' . locale_timefmt(), filemtime($import_file['path']));
        $Table->display_col_end();
        $Table->display_line_end();
        evo_flush();
    }
}
// BODY END / TABLE END:
$Table->display_body_end();
$Table->display_list_end();
if (!empty($import_files)) {
    $Form->begin_fieldset(T_('Select a blog for import'));
    $BlogCache =& get_BlogCache();
    $BlogCache->load_all('shortname,name', 'ASC');
    $BlogCache->none_option_text = '&nbsp;';
    $Form->select_input_object('wp_blog_ID', param('wp_blog_ID', 'integer', 0), $BlogCache, T_('Blog for import'), array('note' => T_('This blog will be used for import.') . ' <a href="' . $admin_url . '?ctrl=collections&action=new">' . T_('Create new blog') . ' &raquo;</a>', 'allow_none' => true, 'required' => true, 'loop_object_method' => 'get_extended_name'));
    $import_type = param('import_type', 'string', 'replace');
    $Form->radio_input('import_type', $import_type, array(array('value' => 'replace', 'label' => T_('Replace existing contents'), 'note' => T_('WARNING: this option will permanently remove existing Posts, comments, categories and tags from the selected blog.'), 'id' => 'import_type_replace')), '', array('lines' => true));
    echo '<div id="checkbox_delete_files"' . ($import_type == 'replace' ? '' : ' style="display:none"') . '>';
    $Form->checkbox_input('delete_files', param('delete_files', 'integer', 0), '', array('input_suffix' => '<label for="delete_files">' . T_(' Also delete files that will no longer be referenced in the target blog after replacing its contents') . '</label>', 'input_prefix' => '<span style="margin-left:25px"></span>'));
    echo '</div>';
    $Form->radio_input('import_type', $import_type, array(array('value' => 'append', 'label' => T_('Append to existing contents'), 'id' => 'import_type_append')), '', array('lines' => true));
    $Form->end_fieldset();
    $Form->buttons(array(array('submit', 'submit', T_('Continue!'), 'SaveButton')));
}
$Form->end_form();
?>
<script type="text/javascript">
jQuery( '.table_scroll td' ).click( function()
{
	jQuery( this ).parent().find( 'input[type=radio]' ).attr( 'checked', 'checked' );
Example #7
0
 */
if (!defined('EVO_MAIN_INIT')) {
    die('Please, do not access this page directly.');
}
/**
 * @var Invitation
 */
global $edited_Invitation;
// Determine if we are creating or updating...
global $action;
$creating = is_create_action($action);
$Form = new Form(NULL, 'invitation_checkchanges', 'post', 'compact');
if (!$creating) {
    $Form->global_icon(T_('Delete this invitation code!'), 'delete', regenerate_url('action', 'action=delete&amp;' . url_crumb('invitation')));
}
$Form->global_icon(T_('Cancel editing!'), 'close', regenerate_url('action'));
$Form->begin_form('fform', ($creating ? T_('New invitation code') : T_('Invitation code')) . get_manual_link('invitation-code-form'));
$Form->add_crumb('invitation');
$Form->hiddens_by_key(get_memorized('action'));
// (this allows to come back to the right list order & page)
$GroupCache =& get_GroupCache();
$Form->select_input_object('ivc_grp_ID', $edited_Invitation->grp_ID, $GroupCache, T_('Group'), array('required' => true));
$Form->text_input('ivc_code', $edited_Invitation->code, 32, T_('Code'), T_('Must be from 3 to 32 letters, digits or signs "-", "_".'), array('required' => true));
$Form->date_input('ivc_expire_date', date2mysql($edited_Invitation->expire_ts), T_('Expire date'), array('required' => true));
$Form->time_input('ivc_expire_time', date2mysql($edited_Invitation->expire_ts), T_('Expire time'), array('required' => true));
$Form->text_input('ivc_source', $edited_Invitation->source, 32, T_('Source'), '', array('maxlength' => 30));
if ($creating) {
    $Form->end_form(array(array('submit', 'actionArray[create]', T_('Record'), 'SaveButton'), array('submit', 'actionArray[create_new]', T_('Record, then Create New'), 'SaveButton'), array('submit', 'actionArray[create_copy]', T_('Record, then Create Similar'), 'SaveButton')));
} else {
    $Form->end_form(array(array('submit', 'actionArray[update]', T_('Save Changes!'), 'SaveButton')));
}
 *
 * @copyright (c)2003-2015 by Francois Planque - {@link http://fplanque.com/}.
 * Parts of this file are copyright (c)2005 by Daniel HAHLER - {@link http://thequod.de/contact}.
 *
 * @package admin
 */
if (!defined('EVO_MAIN_INIT')) {
    die('Please, do not access this page directly.');
}
global $phpbb_db_config, $phpbb_blog_ID, $dispatcher;
phpbb_display_steps(1);
$Form = new Form();
$Form->begin_form('fform', T_('phpBB Importer') . ' - ' . T_('Step 1: Database connection'));
evo_flush();
$Form->add_crumb('phpbb');
$Form->hidden_ctrl();
$Form->hidden('action', 'database');
$Form->begin_fieldset(T_('Access information for database of phpBB forum'));
$Form->text('db_host', param('db_host', 'string', $phpbb_db_config['host']), 20, T_('Database host'));
$Form->text('db_name', param('db_name', 'string', $phpbb_db_config['name']), 20, T_('Database name'));
$Form->text('db_user', param('db_user', 'string', $phpbb_db_config['user']), 20, T_('Username'));
$Form->password('db_pass', param('db_pass', 'string', $phpbb_db_config['password']), 20, T_('Password'));
$Form->text('db_prefix', param('db_prefix', 'string', $phpbb_db_config['prefix']), 20, T_('Table prefix'));
$Form->text('path_avatars', param('path_avatars', 'string', phpbb_get_var('path_avatars')), 80, T_('Source for avatars'), '', 1000);
$Form->end_fieldset();
$Form->begin_fieldset(T_('Select a blog for import'));
$BlogCache =& get_BlogCache();
$Form->select_input_object('forum_blog_ID', param('forum_blog_ID', 'integer', phpbb_get_var('blog_ID')), $BlogCache, T_('Blog for import'), array('note' => T_('Select the destination forum collection.') . ' <a href="' . $dispatcher . '?ctrl=collections&action=new">' . T_('Create new collection') . ' &raquo;</a>', 'allow_none' => true, 'object_callback' => 'get_option_list_forums'));
$Form->end_fieldset();
$Form->buttons(array(array('submit', 'submit', T_('Continue!'), 'SaveButton')));
$Form->end_form();
 * @var GeneralSettings
 */
global $Settings;
global $dispatcher;
global $collections_Module;
$Form = new Form(NULL, 'settings_checkchanges');
$Form->begin_form('fform', '', array('onsubmit' => 'var es=this.elements; for( var i=0; i < es.length; i++ ) { es[i].disabled=false; };'));
$Form->add_crumb('collectionsettings');
$Form->hidden('ctrl', 'collections');
$Form->hidden('tab', 'settings');
$Form->hidden('action', 'update_settings');
// --------------------------------------------
if (isset($collections_Module)) {
    $Form->begin_fieldset(T_('Display options') . get_manual_link('collections-display-options'));
    $BlogCache =& get_BlogCache();
    $Form->select_input_object('default_blog_ID', $Settings->get('default_blog_ID'), $BlogCache, T_('Default blog to display'), array('note' => T_('This blog will be displayed on index.php.') . ' <a href="' . $dispatcher . '?ctrl=collections&action=new">' . T_('Create new blog') . ' &raquo;</a>', 'allow_none' => true, 'class' => '', 'loop_object_method' => 'get_maxlen_name', 'onchange' => ''));
    $Form->select_input_options('blogs_order_by', array_to_option_list(get_coll_sort_options(), $Settings->get('blogs_order_by')), T_('Order blogs by'), T_('Select blog list order.'));
    $Form->select_input_options('blogs_order_dir', array_to_option_list(array('ASC' => T_('Ascending'), 'DESC' => T_('Descending')), $Settings->get('blogs_order_dir')), T_('Order direction'), T_('Select default blog list order direction.'));
    $Form->end_fieldset();
}
// --------------------------------------------
$Form->begin_fieldset(T_('Timeouts') . get_manual_link('collections-timeouts'));
$Form->duration_input('reloadpage_timeout', (int) $Settings->get('reloadpage_timeout'), T_('Reload-page timeout'), 'minutes', 'seconds', array('minutes_step' => 1, 'required' => true));
// $Form->text_input( 'reloadpage_timeout', (int)$Settings->get('reloadpage_timeout'), 5,
// T_('Reload-page timeout'), T_('Time (in seconds) that must pass before a request to the same URI from the same IP and useragent is considered as a new hit.'), array( 'maxlength'=>5, 'required'=>true ) );
$Form->checkbox_input('smart_view_count', $Settings->get('smart_view_count'), T_('Smart view counting'), array('note' => T_('Check this to count post views only once per session and ignore reloads.') . get_manual_link('post_views_counting')));
$Form->end_fieldset();
// --------------------------------------------
$Form->begin_fieldset(T_('Caching') . get_manual_link('collections-caching-settings'));
$Form->checkbox_input('general_cache_enabled', $Settings->get('general_cache_enabled'), T_('Enable general cache'), array('note' => T_('Cache rendered pages that are not controlled by a skin. See Blog Settings for skin output caching.')));
$cache_note = '(' . T_('See Blog Settings for existing') . ')';
$Form->begin_fieldset(T_('Default user permissions') . get_manual_link('default-user-permissions-settings'));
$Form->radio('newusers_canregister', $Settings->get('newusers_canregister'), array(array('no', T_('No (Only admins can create new users)')), array('invite', T_('Users can register only with an Invitation code/link')), array('yes', T_('Users can register themselves freely'))), T_('New users can register'), true);
$disabled_param_links = array();
if ($Settings->get('newusers_canregister') == 'no') {
    // Disable the field below when registration is not allowed
    $disabled_param_links['disabled'] = 'disabled';
}
$Form->checkbox_input('registration_is_public', $Settings->get('registration_is_public'), T_('Registration links'), array_merge(array('note' => T_('Check to show self-registration links to the public.')), $disabled_param_links));
$disabled_param_grouplevel = array();
if ($Settings->get('newusers_canregister') != 'yes') {
    // Disable group and level fields below when registration is not allowed freely
    $disabled_param_grouplevel['disabled'] = 'disabled';
}
$Form->checkbox_input('quick_registration', $Settings->get('quick_registration'), T_('Quick registration'), array_merge(array('note' => T_('Check to allow registering with email only (no username, no password) using the quick registration widget.')), $disabled_param_grouplevel));
$GroupCache =& get_GroupCache();
$Form->select_input_object('newusers_grp_ID', $Settings->get('newusers_grp_ID'), $GroupCache, T_('Group for new users'), array_merge(array('note' => T_('Groups determine user roles and permissions.')), $disabled_param_grouplevel));
$Form->text_input('newusers_level', $Settings->get('newusers_level'), 1, T_('Level for new users'), T_('Levels determine hierarchy of users in blogs.'), array_merge(array('maxlength' => 1, 'required' => true), $disabled_param_grouplevel));
$Form->end_fieldset();
// --------------------------------------------
$Form->begin_fieldset(T_('Default user settings') . get_manual_link('default-user-settings'));
$messaging_options = array(array('enable_PM', 1, T_('private messages on this site.'), $Settings->get('def_enable_PM')));
if ($Settings->get('emails_msgform') != 'never') {
    $messaging_options[] = array('enable_email', 1, T_('emails through a message form that will NOT reveal my email address.'), $Settings->get('def_enable_email'));
}
$Form->checklist($messaging_options, 'default_user_msgform', T_('Other users can send me'));
$notify_options = array(array('notify_messages', 1, T_('I receive a private message.'), $Settings->get('def_notify_messages')), array('notify_unread_messages', 1, T_('I have unread private messages for more than 24 hours.'), $Settings->get('def_notify_unread_messages'), false, T_('This notification is sent only once every 3 days.')), array('notify_published_comments', 1, T_('a comment is published on one of <strong>my</strong> posts.'), $Settings->get('def_notify_published_comments')), array('notify_comment_moderation', 1, T_('a comment is posted and I have permissions to moderate it.'), $Settings->get('def_notify_comment_moderation')), array('notify_meta_comments', 1, T_('a meta comment is posted and I have permission to view it.'), $Settings->get('def_notify_meta_comments')), array('notify_post_moderation', 1, T_('a post is created and I have permissions to moderate it.'), $Settings->get('def_notify_post_moderation')));
$Form->checklist($notify_options, 'default_user_notification', T_('Notify me by email whenever'));
$newsletter_options = array(array('newsletter_news', 1, T_('Send me news about this site.') . ' <span class="note">' . T_('Each message contains an easy 1 click unsubscribe link.') . '</span>', $Settings->get('def_newsletter_news')), array('newsletter_ads', 1, T_('I want to receive ADs that may be relevant to my interests.'), $Settings->get('def_newsletter_ads')));
$Form->checklist($newsletter_options, 'default_user_newsletter', T_('Newsletter'));
$Form->text_input('notification_email_limit', $Settings->get('def_notification_email_limit'), 3, T_('Limit notification emails to'), T_('emails per day'), array('maxlength' => 3, 'required' => true));
$Form->text_input('newsletter_limit', $Settings->get('def_newsletter_limit'), 3, T_('Limit newsletters to'), T_('emails per day'), array('maxlength' => 3, 'required' => true));