global $redirect_to; // Determine if we are creating or updating... $creating = is_create_action($action); // Used to mark the required fields (in non-standard template) $required_star = '<span class="label_field_required">*</span>'; $Form = new Form(NULL, 'item_checkchanges', 'post'); $Form->labelstart = '<strong>'; $Form->labelend = "</strong>\n"; // ================================ START OF EDIT FORM ================================ $iframe_name = NULL; $params = array(); if (!empty($bozo_start_modified)) { $params['bozo_start_modified'] = true; } $Form->begin_form('', '', $params); $Form->add_crumb('item'); $Form->hidden('ctrl', 'items'); $Form->hidden('blog', $Blog->ID); if (isset($mode)) { // used by bookmarklet $Form->hidden('mode', $mode); } if (isset($edited_Item)) { // Item ID $Form->hidden('post_ID', $edited_Item->ID); } // Try to get the original item ID (For example, on copy action): $original_item_ID = get_param('p'); if (!empty($original_item_ID)) { $Form->hidden('p', $original_item_ID); }
/** * @var Chapter */ $edited_Chapter =& $edited_GenericCategory; /** * @var GenericCategoryCache */ global $GenericCategoryCache; global $Settings, $action, $subset_ID; // Determine if we are creating or updating... $creating = is_create_action($action); $Form = new Form(NULL, 'form'); $close_url = get_chapter_redirect_url(get_param('redirect_page'), $edited_Chapter->parent_ID, $edited_Chapter->ID); $Form->global_icon(T_('Cancel editing!'), 'close', $close_url); $Form->begin_form('fform', $creating ? T_('New category') : T_('Category')); $Form->add_crumb('element'); $Form->hidden('action', $creating ? 'create' : 'update'); $Form->hiddens_by_key(get_memorized('action')); $Form->begin_fieldset(T_('Properties')); // We're essentially double checking here... $edited_Blog =& $edited_Chapter->get_Blog(); $move = ''; if ($Settings->get('allow_moving_chapters') && !$creating) { // If moving cats between blogs is allowed: $move = ' ' . action_icon(T_('Move to a different blog...'), 'file_move', regenerate_url('action,cat_ID', 'cat_ID=' . $edited_Chapter->ID . '&action=move'), T_('Move')); } $Form->info(T_('Blog'), $edited_Blog->get_maxlen_name() . $move); $Form->select_input_options('cat_parent_ID', $GenericCategoryCache->recurse_select($edited_Chapter->parent_ID, $subset_ID, true, NULL, 0, array($edited_Chapter->ID)), T_('Parent category')); $Form->text_input('cat_name', $edited_Chapter->name, 40, T_('Name'), '', array('required' => true, 'maxlength' => 255)); $Form->text_input('cat_urlname', $edited_Chapter->urlname, 40, T_('URL "slug"'), T_('Used for clean URLs. Must be unique.'), array('maxlength' => 255)); $Form->text_input('cat_description', $edited_Chapter->description, 40, T_('Description'), T_('May be used as a title tag and/or meta description.'), array('maxlength' => 255));
* * @copyright (c)2003-2015 by Francois Planque - {@link http://fplanque.com/} * * @package admin */ if (!defined('EVO_MAIN_INIT')) { die('Please, do not access this page directly.'); } global $localtimenow, $edited_Cronjob; // Determine if we are creating or updating... global $action; $creating = is_create_action($action); $Form = new Form(NULL, 'cronjob'); $Form->global_icon(T_('Cancel!'), 'close', regenerate_url('action')); $Form->begin_form('fform', $creating ? T_('New scheduled job') : T_('Edit scheduled job')); $Form->add_crumb('crontask'); $Form->hiddens_by_key(get_memorized('action')); $Form->hidden('action', $creating ? 'create' : 'update'); $Form->begin_fieldset(T_('Job details') . get_manual_link('scheduled-job-form')); if ($creating && $action != 'copy') { // New cronjob $cron_jobs_names = get_cron_jobs_config('name'); // Exclude these cron jobs from manual creating unset($cron_jobs_names['send-post-notifications']); unset($cron_jobs_names['send-comment-notifications']); $Form->select_input_array('cjob_type', get_param('cjob_type'), $cron_jobs_names, T_('Job type')); } else { // Edit cronjob if ($action == 'edit') { $Form->info(T_('Job #'), $edited_Cronjob->ID); }
/** * @var User */ global $current_User; global $debug; global $UserSettings; global $rsc_url, $htsrv_url; global $Blog, $permission_to_change_admin; $permission_to_change_admin = $current_User->check_perm('blog_admin', 'edit', false, $Blog->ID); // Javascript: echo ' <script type="text/javascript">var htsrv_url = "' . $htsrv_url . '";</script> <script type="text/javascript" src="' . $rsc_url . 'js/collectionperms.js"></script>'; $Form = new Form(NULL, 'blogperm_checkchanges', 'post', 'fieldset'); $Form->begin_form('fform'); $Form->add_crumb('collection'); $Form->hidden_ctrl(); $Form->hidden('tab', 'perm'); $Form->hidden('blog', $edited_Blog->ID); $Form->begin_fieldset(T_('User permissions') . get_manual_link('user_permissions')); /* * Query user list: */ if (get_param('action') == 'filter2') { $keywords = param('keywords2', 'string', '', true); set_param('keywords1', $keywords); } else { $keywords = param('keywords1', 'string', '', true); set_param('keywords2', $keywords); } $SQL = new SQL();
die('Please, do not access this page directly.'); } /** * @var FileType */ global $edited_Filetype; global $force_upload_forbiddenext; global $rsc_path; // Determine if we are creating or updating... global $action; $creating = is_create_action($action); $Form = new Form(NULL, 'ftyp_checkchanges', 'post', 'compact'); $Form->global_icon(T_('Delete this filetype!'), 'delete', regenerate_url('action', 'action=delete')); $Form->global_icon(T_('Cancel editing!'), 'close', regenerate_url('action')); $Form->begin_form('fform', $creating ? T_('New file type') : T_('File type')); $Form->add_crumb('filetype'); $Form->hidden_ctrl(); $Form->hidden('action', $creating ? 'create' : 'update'); if (!$creating) { $Form->hidden('ftyp_ID', $edited_Filetype->ID); } $Form->text_input('ftyp_extensions', $edited_Filetype->extensions, 40, T_('Extensions'), '', array('maxlength' => 30, 'required' => true, 'note' => sprintf('E.g. «%s»' . ', ' . T_('separated by whitespace'), 'html'))); $Form->text_input('ftyp_name', $edited_Filetype->name, 40, T_('File type name'), sprintf('E.g. «%s»', 'HTML file'), array('maxlength' => 30, 'required' => true)); $Form->text_input('ftyp_mimetype', $edited_Filetype->mimetype, 40, T_('Mime type'), sprintf('E.g. «%s»', 'text/html'), array('maxlength' => 50, 'required' => true)); $Form->select_input_array('ftyp_icon', $edited_Filetype->icon, get_available_filetype_icons(), T_('Icon')); $Form->radio('ftyp_viewtype', $edited_Filetype->viewtype, array(array('browser', T_('Open with browser (popup)'), T_('Let the browser handle the file in a popup.')), array('text', T_('Open with text viewer (popup)'), T_('Use the online text viewer (recommended for .txt)')), array('image', T_('Open with image viewer (popup)'), T_('Use the online image viewer (recommended for .gif .png .jpg)')), array('external', T_('Open with external app (no popup)'), T_('Let the browser handle the file in a popup. Note: if you do not want Word to open inside of IE, you must uncheck "browse in same window" in Windows\' file types.')), array('download', T_('Download to disk (no popup)'), T_('Tell the browser to save the file to disk instead of displaying it.'))), T_('View type'), true); // Check if the extension is in the array of the not allowed upload extensions from _advanced.php $not_allowed = false; $extensions = explode(' ', $edited_Filetype->extensions); foreach ($extensions as $extension) { if (in_array($extension, $force_upload_forbiddenext)) {
* @license GNU GPL v2 - {@link http://b2evolution.net/about/gnu-gpl-license} * * @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 $dispatcher, $flush_action; phpbb_display_steps(6); $Form = new Form(); $Form->begin_form('fform', T_('phpBB Importer') . ' - ' . T_('Step 6: Import replies')); evo_flush(); $Form->add_crumb('phpbb'); $Form->hidden_ctrl(); $Form->hidden('action', 'messages'); if ($flush_action == 'replies') { $Form->begin_fieldset(T_('Import log')); // Import the replies into the comments phpbb_import_replies(); $Form->end_fieldset(); } $Form->begin_fieldset(T_('Report of the replies import')); $Form->info(T_('Count of the imported replies'), '<b>' . (int) phpbb_get_var('replies_count_imported') . '</b>'); $Form->info(T_('Count of the imported topics'), (int) phpbb_get_var('topics_count_imported')); $Form->info(T_('Count of the imported forums'), (int) phpbb_get_var('forums_count_imported')); $Form->info(T_('Count of the imported users'), (int) phpbb_get_var('users_count_imported')); $Form->info(T_('Count of the updated users'), (int) phpbb_get_var('users_count_updated')); $BlogCache =& get_BlogCache();
* @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.'); } /** * @var Slug */ global $edited_IPRange; // Determine if we are creating or updating... global $action; $creating = $action == 'iprange_new'; $Form = new Form(NULL, 'iprange_checkchanges', 'post', 'compact'); $Form->global_icon(T_('Cancel editing!'), 'close', regenerate_url('action,iprange_ID')); $Form->begin_form('fform', ($creating ? T_('New IP Range') : T_('IP Range')) . get_manual_link('ip-range-editing')); $Form->add_crumb('iprange'); $Form->hidden('action', $creating ? 'iprange_create' : 'iprange_update'); $Form->hidden_ctrl(); $Form->hidden('tab', get_param('tab')); $Form->hidden('tab3', get_param('tab3')); $Form->hidden('iprange_ID', param('iprange_ID', 'integer', 0)); $Form->select_input_array('aipr_status', $edited_IPRange->get('status'), aipr_status_titles(), T_('Status'), '', array('force_keys_as_values' => true, 'background_color' => aipr_status_colors(), 'required' => true)); $Form->text_input('aipr_IPv4start', int2ip($edited_IPRange->get('IPv4start')), 50, T_('IP Range Start'), '', array('maxlength' => 15, 'required' => true)); $Form->text_input('aipr_IPv4end', int2ip($edited_IPRange->get('IPv4end')), 50, T_('IP Range End'), '', array('maxlength' => 15, 'required' => true)); $Form->date_input('aipr_IP_timestamp', date2mysql($edited_IPRange->IP_timestamp), T_('Date'), array('required' => true)); $Form->info(T_('User count'), (int) $edited_IPRange->get('user_count')); $Form->info(T_('Block count'), (int) $edited_IPRange->get('block_count')); $Form->end_form(array(array('submit', 'submit', $creating ? T_('Record') : T_('Save Changes!'), 'SaveButton')));
$Form->info_field(T_('Classname'), $edit_Plugin->classname); $Form->info_field(T_('Class file'), rel_path_to_base($edit_Plugin->classfile_path)); // Help icons (to homepage and README.html), if available: $help_icons = array(); if ($help_www = $edit_Plugin->get_help_link('$help_url')) { $help_icons[] = $help_www; } if (!empty($help_icons)) { $Form->info_field(T_('Help'), implode(' ', $help_icons)); } if ($edit_Plugin->ID < 1) { // add "Install NOW" submit button (if not already installed) $registrations = $admin_Plugins->count_regs($edit_Plugin->classname); if (!isset($edit_Plugin->number_of_installs) || $admin_Plugins->count_regs($edit_Plugin->classname) < $edit_Plugin->number_of_installs) { // number of installations are not limited or not reached yet $Form->add_crumb('plugin'); $Form->hidden('action', 'install'); $Form->hidden('plugin', $edit_Plugin->classname); echo '<div class="center">'; $Form->submit(array('', T_('Install NOW!'), 'ActionButton btn-primary')); echo '</div>'; } } $Form->end_fieldset(); $Form->end_form(); $action = ''; break; } switch ($action) { case 'list': // Display VIEW:
if (!defined('EVO_MAIN_INIT')) { die('Please, do not access this page directly.'); } load_class('regional/model/_country.class.php', 'Country'); /** * @var Sub-region */ global $edited_Subregion; // Determine if we are creating or updating... global $action; $creating = is_create_action($action); $Form = new Form(NULL, 'subregion_checkchanges', 'post', 'compact'); $Form->global_icon(T_('Delete this sub-region!'), 'delete', regenerate_url('action', 'action=delete&' . url_crumb('subregion'))); $Form->global_icon(T_('Cancel editing!'), 'close', regenerate_url('action')); $Form->begin_form('fform', ($creating ? T_('New sub-region') : T_('Sub-region')) . get_manual_link('subregions-editing')); $Form->add_crumb('subregion'); $Form->hiddens_by_key(get_memorized('action' . ($creating ? ',subrg_ID' : ''))); // (this allows to come back to the right list order & page) $CountryCache =& get_CountryCache(); $Form->select_country('subrg_ctry_ID', $edited_Subregion->ctry_ID, $CountryCache, T_('Country'), array('allow_none' => true, 'required' => true)); $Form->select_input_options('subrg_rgn_ID', get_regions_option_list($edited_Subregion->ctry_ID, $edited_Subregion->rgn_ID, array('none_option_text' => T_('Unknown'))), T_('Region'), '', array('required' => true)); $Form->text_input('subrg_code', $edited_Subregion->code, 6, T_('Code'), '', array('maxlength' => 6, 'required' => true)); $Form->text_input('subrg_name', $edited_Subregion->name, 40, T_('Name'), '', array('maxlength' => 40, 'required' => 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'))); } else { $Form->end_form(array(array('submit', 'actionArray[update]', T_('Save Changes!'), 'SaveButton'))); } ?> <script type="text/javascript"> jQuery( '#subrg_ctry_ID' ).change( function ()
* 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 = ' '; $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') . ' »</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();
* @var Goal */ global $edited_Goal; // Determine if we are creating or updating... global $action; $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&' . 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);
* * @package evocore * * {@internal Below is a list of authors who have contributed to design/coding of this file: }} * @author efy-maxim: Evo Factory / Maxim. * @author fplanque: Francois Planque. * * @version $Id: _region.form.php 9 2011-10-24 22:32:00Z fplanque $ */ if (!defined('EVO_MAIN_INIT')) { die('Please, do not access this page directly.'); } load_class('regional/model/_country.class.php', 'Country'); /** * @var String */ global $edited_String; // Determine if we are creating or updating... global $action; $creating = is_create_action($action); $Form = new Form(NULL, 'region_checkchanges', 'post', 'compact'); $Form->global_icon(T_('Delete this translated string!'), 'delete', regenerate_url('action', 'action=delete&' . url_crumb('translation'))); $Form->global_icon(T_('Cancel editing!'), 'close', regenerate_url('action')); $Form->begin_form('fform', $creating ? T_('Add new translated string') : T_('Edit a translated string')); $Form->add_crumb('translation'); $Form->hiddens_by_key(get_memorized('action' . ($creating ? ',itst_ID' : ''))); // (this allows to come back to the right list order & page) $Form->info(T_('Original string'), htmlspecialchars($edited_String->iost_string)); $Form->info(T_('Locale'), $edited_String->itst_locale); $Form->textarea('itst_standard', $edited_String->itst_standard, 5, T_('Translated string'), '', 100, '', true); $Form->end_form(array(array('submit', 'actionArray[update]', $creating ? T_('Add') : T_('Update'), 'SaveButton'), array('reset', '', T_('Reset'), 'ResetButton')));
die('Please, do not access this page directly.'); } /** * @var User */ global $current_User; /** * @var GeneralSettings */ global $Settings; global $admin_url; global $collections_Module; global $instance_name; $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', get_param('tab')); $Form->hidden('action', 'update_settings_site'); // -------------------------------------------- if ($current_User->check_perm('users', 'edit')) { $Form->begin_fieldset(T_('Locking down b2evolution for maintenance, upgrade or server switching...') . get_manual_link('system-lock')); $Form->checkbox_input('system_lock', $Settings->get('system_lock'), T_('Lock system'), array('note' => T_('check this to prevent login (except for admins) and sending comments/messages. This prevents the DB from receiving updates (other than logging)') . '<br />' . T_('Note: for a more complete lock down, rename the file /conf/_maintenance.html to /conf/maintenance.html (complete lock) or /conf/imaintenance.html (gives access to /install)'))); $Form->end_fieldset(); } // -------------------------------------------- $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));
* * @copyright (c)2003-2015 by Francois Planque - {@link http://fplanque.com/} * * @package admin */ if (!defined('EVO_MAIN_INIT')) { die('Please, do not access this page directly.'); } /** * @var GoalCategory */ global $edited_GoalCategory; // Determine if we are creating or updating... global $action; $creating = in_array($action, array('cat_new', 'cat_copy', 'cat_create', 'cat_create_new', 'cat_create_copy')); $Form = new Form(NULL, 'goalcat_checkchanges', 'post', 'compact'); if (!$creating) { $Form->global_icon(T_('Delete this goal category!'), 'delete', regenerate_url('action', 'action=cat_delete&' . url_crumb('goalcat'))); } $Form->global_icon(T_('Cancel editing!'), 'close', regenerate_url('action,gcat_ID')); $Form->begin_form('fform', $creating ? T_('New goal category') : T_('Goal category')); $Form->add_crumb('goalcat'); $Form->hiddens_by_key(get_memorized('action' . ($creating ? ',gcat_ID' : ''))); // (this allows to come back to the right list order & page) $Form->text_input('gcat_name', $edited_GoalCategory->name, 40, T_('Name'), '', array('maxlength' => 50, 'required' => true)); $Form->color_input('gcat_color', $edited_GoalCategory->color, T_('Color'), T_('E-g: #ff0000 for red'), array('required' => true)); if ($creating) { $Form->end_form(array(array('submit', 'actionArray[cat_create]', T_('Record'), 'SaveButton'), array('submit', 'actionArray[cat_create_new]', T_('Record, then Create New'), 'SaveButton'), array('submit', 'actionArray[cat_create_copy]', T_('Record, then Create Similar'), 'SaveButton'))); } else { $Form->end_form(array(array('submit', 'actionArray[cat_update]', T_('Save Changes!'), 'SaveButton'))); }
* @package admin * * @author fplanque: Francois PLANQUE. */ if (!defined('EVO_MAIN_INIT')) { die('Please, do not access this page directly.'); } /** * @var Skin */ global $edited_Skin; $Form = new Form(NULL, 'skin_checkchanges'); $Form->global_icon(T_('Uninstall this skin!'), 'delete', regenerate_url('action', 'action=delete&' . url_crumb('skin'))); $Form->global_icon(T_('Cancel editing!'), 'close', regenerate_url('action')); $Form->begin_form('fform', T_('Skin properties')); $Form->add_crumb('skin'); $Form->hidden_ctrl(); $Form->hidden('action', 'update'); $Form->hidden('skin_ID', $edited_Skin->ID); $Form->begin_fieldset(T_('Skin properties') . get_manual_link('skin-system-settings')); echo '<div class="skin_settings well">'; $disp_params = array('skinshot_class' => 'coll_settings_skinshot'); Skin::disp_skinshot($edited_Skin->folder, $edited_Skin->name, $disp_params); // Skin name echo '<div class="skin_setting_row">'; echo '<label>' . T_('Skin name') . ':</label>'; echo '<span>' . $edited_Skin->name . '</span>'; echo '</div>'; if (isset($edited_Skin->version)) { // Skin version echo '<div class="skin_setting_row">';
/** * Display user activate info form content * * @param Object activateinfo Form */ function display_activateinfo($params) { global $current_User, $Settings, $UserSettings, $Plugins; global $secure_htsrv_url, $rsc_path, $rsc_url, $dummy_fields; if (!is_logged_in()) { // if this happens, it means the code is not correct somewhere before this debug_die("You must log in to see this page."); } // init force request new email address param $force_request = param('force_request', 'boolean', false); // get last activation email timestamp from User Settings $last_activation_email_date = $UserSettings->get('last_activation_email', $current_User->ID); if ($force_request || empty($last_activation_email_date)) { // notification email was not sent yet, or user needs another one ( forced request ) $params = array_merge(array('form_action' => $secure_htsrv_url . 'login.php', 'form_name' => 'form_validatemail', 'form_class' => 'fform', 'form_layout' => 'fieldset', 'inskin' => false), $params); $Form = new Form($params['form_action'], $params['form_name'], 'post', $params['form_layout']); $Form->begin_form($params['form_class']); $Form->add_crumb('validateform'); $Form->hidden('action', 'req_validatemail'); $Form->hidden('redirect_to', $params['redirect_to']); if ($params['inskin']) { $Form->hidden('inskin', $params['inskin']); $Form->hidden('blog', $params['blog']); } $Form->hidden('req_validatemail_submit', 1); // to know if the form has been submitted $Form->begin_fieldset(); echo '<ol>'; echo '<li>' . T_('Please confirm your email address below:') . '</li>'; echo '</ol>'; // set email text input content only if this is not a forced request. This way the user may have bigger chance to write a correct email address. $user_email = $force_request ? '' : $current_User->email; // fp> note: 45 is the max length for evopress skin. $Form->text_input($dummy_fields['email'], $user_email, 45, T_('Your email'), '', array('maxlength' => 255, 'class' => 'input_text', 'required' => true)); $Form->end_fieldset(); // Submit button: $submit_button = array(array('name' => 'submit', 'value' => T_('Send me a new activation email now!'), 'class' => 'submit')); $Form->buttons_input($submit_button); if (!$params['inskin']) { $Plugins->trigger_event('DisplayValidateAccountFormFieldset', array('Form' => &$Form)); } $Form->end_form(); return; } // get notification email from general Settings $notification_email = $Settings->get('notification_sender_email'); // convert date to timestamp $last_activation_email_ts = mysql2timestamp($last_activation_email_date); // get difference between local time and server time $time_difference = $Settings->get('time_difference'); // get last activation email local date and time $last_email_date = date(locale_datefmt(), $last_activation_email_ts + $time_difference); $last_email_time = date(locale_shorttimefmt(), $last_activation_email_ts + $time_difference); $user_email = $current_User->email; echo '<ol start="1" class="expanded">'; $instruction = sprintf(T_('Open your email account for %s and find a message we sent you on %s at %s with the following title:'), $user_email, $last_email_date, $last_email_time); echo '<li>' . $instruction . '<br /><b>' . sprintf(T_('Activate your account: %s'), $current_User->login) . '</b>'; $request_validation_url = 'href="' . regenerate_url('', 'force_request=1&validate_required=true&redirect_to=' . $params['redirect_to']) . '"'; echo '<p>' . sprintf(T_('NOTE: If you don\'t find it, check your "Junk", "Spam" or "Unsolicited email" folders. If you really can\'t find it, <a %s>request a new activation email</a>.'), $request_validation_url) . '</p></li>'; echo '<li>' . sprintf(T_('Add us (%s) to your contacts to make sure you receive future email notifications, especially when someone sends you a private message.'), '<b><span class="nowrap">' . $notification_email . '</span></b>') . '</li>'; echo '<li><b class="red">' . T_('Click on the activation link in the email.') . '</b>'; echo '<p>' . T_('If this does not work, please copy/paste that link into the address bar of your browser.') . '</p>'; echo '<p>' . sprintf(T_('If you need assistance, please send an email to %s'), '<b><a href="mailto:"' . $notification_email . '"><span class="nowrap">' . $notification_email . '</span></a></b>') . '</p></li>'; echo '</ol>'; if ((strpos($user_email, '@hotmail.') || strpos($user_email, '@live.') || strpos($user_email, '@msn.')) && file_exists($rsc_path . 'img/login_help/hotmail-validation.png')) { // The user is on hotmail and we have a help screen to show him: (needs to be localized and include correct site name) echo '<div class="center" style="margin: 2em auto"><img src="' . $rsc_url . 'img/login_help/hotmail-validation.png" /></div>'; } }
* @version $Id: _antispam_list.view.php 3328 2013-03-26 11:44:11Z yura $ */ if (!defined('EVO_MAIN_INIT')) { die('Please, do not access this page directly.'); } if (get_param('display_mode') == 'js') { // This is an Ajax response echo '<h2>' . T_('Antispam blacklist') . '</h2>'; } // ADD KEYWORD FORM: if ($current_User->check_perm('spamblacklist', 'edit')) { // add keyword or domain global $keyword; $Form = new Form(NULL, 'antispam_add', 'post', 'compact'); $Form->begin_form('fform', T_('Add a banned keyword')); $Form->add_crumb('antispam'); $Form->hidden_ctrl(); $Form->hidden('action', 'ban'); $Form->text('keyword', $keyword, 50, T_('Keyword/phrase to ban'), '', 80); // TODO: add note /* * TODO: explicitly add a domain? * $add_Form->text( 'domain', $domain, 30, T_('Add a banned domain'), 'note..', 80 ); // TODO: add note */ $Form->end_form(array(array('submit', 'submit', T_('Check & ban...'), 'SaveButton'))); } echo '<p class="center">' . T_('Any URL containing one of the following keywords will be banned from posts, comments and logs.'); if ($current_User->check_perm('spamblacklist', 'edit')) { echo '<br />' . T_('If a keyword restricts legitimate domains, click on the green tick to stop banning with this keyword.'); } echo '</p>';
break; } } } } } } $Form = new Form(NULL, 'group_checkchanges'); $Form->global_icon(T_('Cancel editing!'), 'close', regenerate_url('ctrl,grp_ID,action', 'ctrl=groups')); if ($edited_Group->ID == 0) { $Form->begin_form('fform', T_('Creating new group')); } else { $title = ($action == 'edit' ? T_('Editing group:') : T_('Viewing group:')) . ' ' . (isset($edited_grp_oldname) ? $edited_grp_oldname : $edited_Group->dget('name')) . ' (' . T_('ID') . ' ' . $edited_Group->ID . ')'; $Form->begin_form('fform', $title); } $Form->add_crumb('group'); $Form->hidden_ctrl(); $Form->hidden('action', 'update'); $Form->hidden('grp_ID', $edited_Group->ID); $perm_none_option = array('none', T_('No Access')); $perm_view_option = array('view', T_('View details')); $perm_edit_option = array('edit', T_('Edit/delete all')); $Form->begin_fieldset(T_('General') . get_manual_link('group_properties_general')); $Form->text('edited_grp_name', $edited_Group->name, 50, T_('Name'), '', 50, 'large'); $Form->text_input('edited_grp_level', $edited_Group->get('level'), 2, T_('Group level'), '[0 - 10]', array('required' => true)); display_pluggable_permissions($Form, 'core_general'); $Form->end_fieldset(); $Form->begin_fieldset(T_('Blogging permissions') . get_manual_link('group_properties_blogging')); $Form->radio('edited_grp_perm_blogs', $edited_Group->get('perm_blogs'), array(array('user', T_('Depending on each blog\'s permissions')), array('viewall', T_('View all blogs')), array('editall', T_('Full Access') . get_admin_badge('coll', '#', '#', T_('Select to give Collection Admin permission')))), T_('Collections'), false); $Form->radio('perm_xhtmlvalidation', $edited_Group->get('perm_xhtmlvalidation'), array(array('always', T_('Force valid XHTML + strong security'), T_('The security filters below will be strongly enforced.')), array('never', T_('Basic security checking'), T_('Security filters below will still be enforced but with potential lesser accuracy.'))), T_('XHTML validation'), true); $Form->radio('perm_xhtmlvalidation_xmlrpc', $edited_Group->get('perm_xhtmlvalidation_xmlrpc'), array(array('always', T_('Force valid XHTML + strong security'), T_('The security filters below will be strongly enforced.')), array('never', T_('Basic security checking'), T_('Security filters below will still be enforced but with potential lesser accuracy.'))), T_('XHTML validation on XML-RPC calls'), true);
* @copyright (c)2009-2015 by Francois Planque - {@link http://fplanque.com/} * Parts of this file are copyright (c)2009 by The Evo Factory - {@link http://www.evofactory.com/}. * * @package evocore */ if (!defined('EVO_MAIN_INIT')) { die('Please, do not access this page directly.'); } load_class('users/model/_userfieldgroup.class.php', 'UserfieldGroup'); /** * @var Userfield */ global $edited_UserfieldGroup; // Determine if we are creating or updating... global $action; $creating = is_create_action($action); $Form = new Form(NULL, 'userfieldgroup_checkchanges', 'post', 'compact'); $Form->global_icon(T_('Delete this user field group!'), 'delete', regenerate_url('action', 'action=delete&' . url_crumb('userfieldgroup'))); $Form->global_icon(T_('Cancel editing!'), 'close', '?ctrl=userfields'); $Form->begin_form('fform', $creating ? T_('New user field group') : T_('User field group')); $Form->add_crumb('userfieldgroup'); $Form->hiddens_by_key(get_memorized('action' . ($creating ? ',ufgp_ID' : ''))); // (this allows to come back to the right list order & page) $Form->hidden('ufgp_ID', $edited_UserfieldGroup->ID); $Form->text_input('ufgp_name', $edited_UserfieldGroup->name, 50, T_('Name'), '', array('maxlength' => 255, 'required' => true)); $Form->text_input('ufgp_order', $edited_UserfieldGroup->order, 50, T_('Order number'), '', array('maxlength' => 11, 'required' => 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'))); } else { $Form->end_form(array(array('submit', 'actionArray[update]', T_('Save Changes!'), 'SaveButton'))); }
if (!defined('EVO_MAIN_INIT')) { die('Please, do not access this page directly.'); } /** * @var User */ global $current_User; /** * @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('statssettings'); $Form->hidden('ctrl', 'stats'); $Form->hidden('tab', 'settings'); $Form->hidden('action', 'update_settings'); // -------------------------------------------- $Form->begin_fieldset(T_('Hit & session logging') . get_manual_link('hit_logging')); $Form->checklist(array(array('log_public_hits', 1, T_('on every public page'), $Settings->get('log_public_hits')), array('log_admin_hits', 1, T_('on every admin page'), $Settings->get('log_admin_hits'))), 'log_hits', T_('Log hits')); // TODO: draw a warning sign if set to off $Form->radio_input('auto_prune_stats_mode', $Settings->get('auto_prune_stats_mode'), array(array('value' => 'off', 'label' => T_('Off'), 'note' => T_('Not recommended! Your database will grow very large!'), 'onclick' => 'jQuery("#auto_prune_stats_container").hide();'), array('value' => 'page', 'label' => T_('On every page'), 'note' => T_('This is guaranteed to work but uses extra resources with every page displayed.'), 'onclick' => 'jQuery("#auto_prune_stats_container").show();'), array('value' => 'cron', 'label' => T_('With a scheduled job'), 'note' => T_('Recommended if you have your scheduled jobs properly set up.'), 'onclick' => 'jQuery("#auto_prune_stats_container").show();')), T_('Auto pruning'), array('note' => T_('Note: Even if you don\'t log hits, you still need to prune sessions!'), 'lines' => true)); echo '<div id="auto_prune_stats_container">'; $Form->text_input('auto_prune_stats', $Settings->get('auto_prune_stats'), 5, T_('Prune after'), T_('days. How many days of hits & sessions do you want to keep in the database for stats?')); echo '</div>'; if ($Settings->get('auto_prune_stats_mode') == 'off') { // hide the "days" input field, if mode set to off: echo '<script type="text/javascript">jQuery("#auto_prune_stats_container").hide();</script>'; }
function validateCommentForm(form) { if( form.p.value.replace(/^\s+|\s+$/g,"").length == 0 ) { alert("'.TS_('Please do not send empty comments.').'"); return false; } }/* ]]> * </script>';*/ $Form = new Form($samedomain_htsrv_url . 'comment_post.php', 'bComment_form_id_' . $Item->ID, 'post', NULL, 'multipart/form-data'); $Form->switch_template_parts($params['form_params']); $Form->begin_form('bComment', '', array('target' => '_self')); // TODO: dh> a plugin hook would be useful here to add something to the top of the Form. // Actually, the best would be, if the $Form object could be changed by a plugin // before display! $Form->add_crumb('comment'); $Form->hidden('comment_post_ID', $Item->ID); if (!empty($comment_reply_ID)) { $Form->hidden('reply_ID', $comment_reply_ID); // Link to scroll back up to replying comment echo '<a href="' . url_add_param($Item->get_permanent_url(), 'reply_ID=' . $comment_reply_ID . '&redir=no') . '#c' . $comment_reply_ID . '" class="comment_reply_current" rel="' . $comment_reply_ID . '">' . T_('You are currently replying to a specific comment') . '</a>'; } $Form->hidden('redirect_to', $Item->get_feedback_url($disp == 'feedback-popup', '&')); if (check_user_status('is_validated')) { // User is logged in and activated: $Form->info_field(T_('User'), '<strong>' . $current_User->get_identity_link(array('link_text' => $params['author_link_text'])) . '</strong> ' . get_user_profile_link(' [', ']', T_('Edit profile'))); } else { // User is not logged in or not activated: if (is_logged_in() && empty($comment_author) && empty($comment_author_email)) { $comment_author = $current_User->login; $comment_author_email = $current_User->email;
if (array_key_exists('note', $settings)) { $note = $settings['note']; } else { $note = get_affected_paths($settings['path']); } $Form->checkbox('bk_' . $name, $current_Backup->backup_paths[$name], $settings['label'], $note); } } $Form->end_fieldset(); // Backup settings for database tables $Form->begin_fieldset(T_('Database tables'), array('class' => 'fieldset clear')); // Display checkboxes foreach ($backup_tables as $name => $settings) { $note = ''; if (array_key_exists('note', $settings)) { $note = $settings['note']; } else { $note = get_affected_tables($settings['table']); } $Form->checkbox('bk_' . $name, $current_Backup->backup_tables[$name], $settings['label'], $note); } $Form->end_fieldset(); // Enable/Disable maintenance mode $Form->begin_fieldset(T_('General Options') . get_manual_link('set-system-lock-during-backup'), array('class' => 'fieldset clear')); $Form->radio('bk_lock_type', 'maintenance_mode', array(array('maintenance_mode', T_('Maintenance mode') . ' (' . T_('Recommended') . ')', T_('check this to completely lock b2evolution')), array('maintenance_lock', T_('Maintenance lock'), T_('check this to prevent login (except for admins), sending comments/messages and receiving DB updates (other than logging)')), array('open', T_('Leave the site open for modifications during backup. (Not recommended).'))), T_('Lock b2evolution while backing up'), true); if (function_exists('gzopen')) { $Form->checkbox('bk_pack_backup_files', $current_Backup->pack_backup_files, 'ZIP', T_('Compress backup files into ZIP archive.')); } $Form->add_crumb('backup'); $Form->end_fieldset(); $Form->end_form(array(array('submit', 'actionArray[backup]', T_('Backup'), 'SaveButton')));
* * @license GNU GPL v2 - {@link http://b2evolution.net/about/gnu-gpl-license} * * @copyright (c)2009-2015 by Francois Planque - {@link http://fplanque.com/} * Parts of this file are copyright (c)2009 by The Evo Factory - {@link http://www.evofactory.com/}. * * @package evocore */ if (!defined('EVO_MAIN_INIT')) { die('Please, do not access this page directly.'); } global $admin_url, $tab; global $users_numbers, $edited_EmailCampaign; $Form = new Form(NULL, 'campaign_form'); $Form->begin_form('fform'); $Form->add_crumb('campaign'); $Form->hidden('ctrl', 'campaigns'); $Form->hidden('current_tab', $tab); $Form->hidden('ecmp_ID', $edited_EmailCampaign->ID); $Form->begin_fieldset(T_('Campaign info') . get_manual_link('creating-an-email-campaign')); $Form->text_input('ecmp_name', $edited_EmailCampaign->get('name'), 60, T_('Name'), '', array('maxlength' => 255, 'required' => true)); $Form->text_input('ecmp_email_title', $edited_EmailCampaign->get('email_title'), 60, T_('Email title'), '', array('maxlength' => 255, 'required' => true)); $Form->info(T_('Campaign created'), mysql2localedatetime_spans($edited_EmailCampaign->get('date_ts'), 'M-d')); $Form->info(T_('Last sent'), $edited_EmailCampaign->get('sent_ts') ? mysql2localedatetime_spans($edited_EmailCampaign->get('sent_ts'), 'M-d') : T_('Not sent yet')); $Form->end_fieldset(); $Form->begin_fieldset(T_('Newsletter recipients')); if (!empty($users_numbers)) { // We know this data only one time after selecting users $Form->info(T_('Number of accounts in filterset'), $users_numbers['all']); $Form->info(T_('Number of active accounts in filterset'), $users_numbers['active']); }
/** * Display the widget! * * @param array MUST contain at least the basic display params */ function display($params) { global $Blog, $Settings, $Session, $redirect_to, $dummy_fields; if (is_logged_in()) { // No display when user is already registered return false; } if ($Settings->get('newusers_canregister') != 'yes' || !$Settings->get('quick_registration')) { // Display error message when quick registration is disabled echo '<p class="error">' . T_('Quick registration is currently disabled on this system.') . '</p>'; return false; } // Restore the typed in params from the redirected page: $widget_param_input_err_messages = $Session->get('param_input_err_messages_' . $this->ID); $widget_param_input_values = $Session->get('param_input_values_' . $this->ID); if (!empty($widget_param_input_err_messages)) { // Convert param errors to global $param_input_err_messages that is used to display an error text under input field global $param_input_err_messages; $param_input_err_messages = $widget_param_input_err_messages; } // Clear the temp session vars $Session->delete('param_input_err_messages_' . $this->ID); $Session->delete('param_input_values_' . $this->ID); $Session->dbsave(); $this->init_display($params); if (isset($this->BlockCache)) { // Do NOT cache some of these links are using a redirect_to param, which makes it page dependent. // Note: also beware of the source param. // so this will be cached by the PageCache; there is no added benefit to cache it in the BlockCache // (which could have been shared between several pages): $this->BlockCache->abort_collect(); } echo $this->disp_params['block_start']; $redirect_to = param('redirect_to', 'url', regenerate_url('', '', '', '&')); $this->disp_title(); echo $this->disp_params['block_body_start']; if (!empty($this->disp_params['intro'])) { // Intro text echo '<p>' . $this->disp_params['intro'] . '</p>'; } $Form = new Form(get_secure_htsrv_url() . 'register.php', 'register_form', 'post'); $Form->begin_form(); $Form->add_crumb('regform'); $Form->hidden('action', 'quick_register'); $Form->hidden('inskin', true); $Form->hidden('blog', $Blog->ID); $Form->hidden('widget', $this->ID); $Form->hidden('redirect_to', $redirect_to); // E-mail $email_value = isset($widget_param_input_values[$dummy_fields['email']]) ? $widget_param_input_values[$dummy_fields['email']] : ''; $Form->text_input($dummy_fields['email'], $email_value, 50, T_('Your email'), '', array('maxlength' => 255, 'class' => 'input_text', 'required' => true)); if ($this->disp_params['ask_firstname'] != 'no') { // First name $firstname_value = isset($widget_param_input_values['firstname']) ? $widget_param_input_values['firstname'] : ''; $Form->text_input('firstname', $firstname_value, 18, T_('First name'), '', array('maxlength' => 50, 'class' => 'input_text', 'required' => $this->disp_params['ask_firstname'] == 'required')); } if ($this->disp_params['ask_lastname'] != 'no') { // Last name $lastname_value = isset($widget_param_input_values['lastname']) ? $widget_param_input_values['lastname'] : ''; $Form->text_input('lastname', $lastname_value, 18, T_('Last name'), '', array('maxlength' => 50, 'class' => 'input_text', 'required' => $this->disp_params['ask_lastname'] == 'required')); } // Submit button $Form->begin_fieldset('', array('class' => 'fieldset field_register_btn')); $Form->button_input(array('value' => $this->disp_params['button'], 'class' => 'submit')); $Form->end_fieldset(); $Form->end_form(); echo $this->disp_params['block_body_end']; echo $this->disp_params['block_end']; if (!empty($widget_param_input_err_messages)) { // Clear param errors here because we already display them above // Don't display them twice on another widget form $param_input_err_messages = NULL; } return true; }
} $Results->cols[] = array('th' => T_('Groups'), 'th_class' => 'shrinkwrap', 'td_class' => 'left nowrap', 'td' => '%contacts_groups( #mct_to_user_ID# )%'); $Results->display($display_params); if (count($Results->rows) > 0) { // Display actions buttons global $module_contacts_list_params; modules_call_method('get_contacts_list_params'); $Form = new Form(get_dispctrl_url('contacts'), 'add_group_contacts'); echo '<div class="form_send_contacts">'; $multi_action_icon = get_icon('multi_action', 'imgtag', array('style' => 'margin:0 2px 0 14px;position:relative;top:-5px;')); $Form->button_input(array('type' => 'button', 'value' => $module_contacts_list_params['title_selected'], 'onclick' => 'location.href=\'' . $module_contacts_list_params['recipients_link'] . '\'', 'id' => 'send_selected_recipients', 'input_prefix' => $multi_action_icon)); echo '</div>'; $Form->switch_layout('none'); $Form->switch_template_parts(array('formstart' => '<div class="form_add_contacts">', 'labelstart' => '<span class="label">', 'labelend' => '</span> <span class="controls">', 'formend' => '</div>')); $Form->begin_form(); $Form->add_crumb('messaging_contacts'); $Form->hidden('users', ''); if (isset($module_contacts_list_params['form_hiddens']) && !empty($module_contacts_list_params['form_hiddens'])) { // Append the hidden input elements from module foreach ($module_contacts_list_params['form_hiddens'] as $hidden_input) { $Form->hidden($hidden_input['name'], $hidden_input['value']); } } $Form->combo_box('group', param('group_combo', 'string', ''), get_contacts_groups_options(param('group', 'string', '-1'), false), $multi_action_icon . T_('Add all selected contacts to this group'), array('new_field_size' => '8')); $Form->buttons(array(array('submit', 'actionArray[add_group]', T_('Add'), 'SaveButton btn-primary btn-sm'))); echo '</span>'; if (isset($group_filtered)) { // Contacts list is filtered by group echo '<div id="edit_group_contacts" style="white-space:normal">'; $Form->hidden('group_ID', $group_filtered->ID); echo '<p class="center">' . sprintf(T_('Selected group: <b>%s</b>'), $group_filtered->name) . '</p>';
die('Please, do not access this page directly.'); } /** * @var Organization */ global $edited_Organization; // Determine if we are creating or updating... global $action; $creating = is_create_action($action); $Form = new Form(NULL, 'organization_checkchanges', 'post', 'compact'); if (!$creating) { $Form->global_icon(T_('Delete this organization!'), 'delete', regenerate_url('action', 'action=delete&' . url_crumb('organization'))); } $Form->global_icon(T_('Cancel editing!'), 'close', regenerate_url('action,org_ID')); $Form->begin_form('fform', ($creating ? T_('New organization') : T_('Organization')) . get_manual_link('organization-form')); $Form->add_crumb('organization'); $Form->hiddens_by_key(get_memorized('action')); // (this allows to come back to the right list order & page) $Form->text_input('org_name', $edited_Organization->name, 32, T_('Name'), '', array('maxlength' => 255, 'required' => true)); $Form->text_input('org_url', $edited_Organization->url, 32, T_('Url'), '', array('maxlength' => 2000)); 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'))); } if ($edited_Organization->ID > 0) { // Display users of this organization users_results_block(array('org_ID' => $edited_Organization->ID, 'filterset_name' => 'orgusr_' . $edited_Organization->ID, 'results_param_prefix' => 'orgusr_', 'results_title' => T_('Users of this organization') . get_manual_link('users_and_groups'), 'results_order' => '/uorg_accepted/D', 'page_url' => get_dispctrl_url('organizations', 'action=edit&org_ID=' . $edited_Organization->ID), 'display_orgstatus' => true, 'display_ID' => false, 'display_btn_adduser' => false, 'display_btn_addgroup' => false, 'display_blogs' => false, 'display_source' => false, 'display_regdate' => false, 'display_regcountry' => false, 'display_update' => false, 'display_lastvisit' => false, 'display_contact' => false, 'display_reported' => false, 'display_group' => false, 'display_level' => false, 'display_status' => false, 'display_actions' => false, 'display_newsletter' => false)); } // AJAX changing of an accept status of organizations for each user echo_user_organization_js();
</p> <?php break; case 'utf8upgrade': // Upgrade DB to UTF-8 db_upgrade_to_utf8_ascii(); break; } $block_item_Widget->disp_template_raw('block_end'); } if ($current_User->check_perm('users', 'edit')) { // Setting to lock system global $Settings; $Form = new Form(NULL, 'settings_checkchanges'); $Form->begin_form('fform'); $Form->add_crumb('tools'); $Form->hidden('ctrl', 'tools'); $Form->hidden('action', 'update_tools'); $Form->begin_fieldset(T_('Locking down b2evolution for maintenance, upgrade or server switching...') . get_manual_link('system-lock')); $Form->checkbox_input('system_lock', $Settings->get('system_lock'), T_('Lock system'), array('note' => T_('check this to prevent login (except for admins) and sending comments/messages. This prevents the DB from receiving updates (other than logging)') . '<br />' . T_('Note: for a more complete lock down, rename the file /conf/_maintenance.html to /conf/maintenance.html (complete lock) or /conf/imaintenance.html (gives access to /install)'))); if ($current_User->check_perm('options', 'edit')) { $Form->buttons(array(array('submit', 'submit', T_('Save Changes!'), 'SaveButton'))); } $Form->end_fieldset(); $Form->end_form(); } // TODO: dh> this should really be a separate permission.. ("tools", "exec") or similar! if ($current_User->check_perm('options', 'edit')) { // default admin actions: global $Settings; $block_item_Widget->title = T_('Cache management');
*/ if (!defined('EVO_MAIN_INIT')) { die('Please, do not access this page directly.'); } /** * @global File */ global $edited_File, $selected_Filelist; global $blog, $filename_max_length; $edit_allowed_perm = $current_User->check_perm('files', 'edit_allowed', false, $selected_Filelist->get_FileRoot()); $Form = new Form(NULL, 'fm_properties_checkchanges'); if (get_param('mode') != 'modal') { $Form->global_icon(T_('Close properties!'), 'close', regenerate_url()); } $Form->begin_form('fform', get_param('mode') == 'modal' ? '' : T_('File properties')); $Form->add_crumb('file'); $Form->hidden_ctrl(); $Form->hidden('action', 'update_properties'); $Form->hiddens_by_key(get_memorized()); $Form->begin_fieldset(T_('Properties')); if ($edit_allowed_perm) { // User can edit: $Form->text('name', $edited_File->dget('name'), 32, T_('Filename'), T_('This is the name of the file on the server hard drive.'), $filename_max_length); } else { // User can view only: $Form->info(T_('Filename'), $edited_File->dget('name'), T_('This is the name of the file on the server hard drive.')); } $Form->info(T_('Type'), $edited_File->get_icon() . ' ' . $edited_File->get_type()); $Form->end_fieldset(); $Form->begin_fieldset(T_('Meta data')); if ($edit_allowed_perm) {
if (!defined('EVO_MAIN_INIT')) { die('Please, do not access this page directly.'); } /** * @var User */ global $current_User; /** * @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('globalsettings'); $Form->hidden('ctrl', 'gensettings'); $Form->hidden('action', 'update'); // -------------------------------------------- if ($current_User->check_perm('users', 'edit')) { $Form->begin_fieldset(T_('Locking down b2evolution for maintenance, upgrade or server switching...')); $Form->checkbox_input('system_lock', $Settings->get('system_lock'), T_('Lock system'), array('note' => T_('check this to prevent login (except for admins) and sending comments/messages. This prevents the DB from receiving updates (other than logging)') . '<br />' . T_('Note: for a more complete lock down, rename the file /conf/_maintenance.html to /conf/maintenance.html (complete lock) or /conf/imaintenance.html (gives access to /install)'))); $Form->end_fieldset(); } // -------------------------------------------- $Form->begin_fieldset(T_('Caching')); $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.'))); $Form->end_fieldset(); // -------------------------------------------- $Form->begin_fieldset(T_('Online Help') . get_manual_link('online help')); $Form->checkbox_input('webhelp_enabled', $Settings->get('webhelp_enabled'), T_('Online Help links'), array('note' => T_('Online help links provide context sensitive help to certain features.')));
* @package messaging * * {@internal Below is a list of authors who have contributed to design/coding of this file: }} * @author efy-asimo: Attila Simo. * * @version $Id: _msg_settings.form.php 3328 2013-03-26 11:44:11Z yura $ */ if (!defined('EVO_MAIN_INIT')) { die('Please, do not access this page directly.'); } $current_User->check_perm('options', 'edit', true); global $Settings; $BlogCache =& get_BlogCache(); $Form = new Form(NULL, 'msg_settings'); $Form->begin_form('fform', ''); $Form->add_crumb('msgsettings'); $Form->hidden('ctrl', 'msgsettings'); $Form->hidden('action', 'update'); $Form->begin_fieldset(T_('General settings')); // set link to options $messages_link_to = $Settings->get('messages_link_to'); $admin_selected = $messages_link_to == 'admin' ? 'selected="selected"' : ''; $link_to_options = '<option value="admin" ' . $admin_selected . '>admin</option>'; $link_to_options .= $BlogCache->get_option_list($messages_link_to); $Form->select_input_options('messages_link_to', $link_to_options, T_('Messaging emails link to')); $Form->end_fieldset(); $Form->begin_fieldset(T_('Welcome message after account activation')); $Form->checkbox_input('welcomepm_enabled', $Settings->get('welcomepm_enabled'), T_('Send Welcome PM'), array('note' => T_('Check to automatically send a welcome message to users when they activate their account.'))); $UserCache =& get_UserCache(); $User = $UserCache->get_by_login($Settings->get('welcomepm_from')); if (!$User) {