# # Api_search setup page # // Do the include and authorization checking ritual -- don't change this section. include '../../../include/db.php'; include '../../../include/authenticate.php'; if (!checkperm('a')) { exit($lang['error-permissiondenied']); } include '../../../include/general.php'; include '../../../include/search_functions.php'; // Specify the name of this plugin and the heading to display for the page. $plugin_name = 'api_search'; $plugin_page_heading = $lang['api_search_configuration']; // Build the $page_def array of descriptions of each configuration variable the plugin uses. $result = do_search('', '', 'relevance', 0, 1); if (isset($result[0])) { $list = ""; foreach ($result[0] as $key => $value) { $list .= $key . ", "; } } $list = rtrim(trim($list), ","); $page_def[] = config_add_text_input('api_search_exclude_fields', $lang['api_search_exclude_fields']); $page_def[] = config_add_html($lang['api_search_excludable_fields'] . ": {$list}"); // Do the page generation ritual -- don't change this section. $upload_status = config_gen_setup_post($page_def, $plugin_name); include '../../../include/header.php'; config_gen_setup_html($page_def, $plugin_name, $upload_status, $plugin_page_heading); include '../../../include/footer.php';
$page_def[] = config_add_boolean_select('terms_login', $lang['systemconfig_terms_login_label'], $enable_disable_options, 300, '', true); $page_def[] = config_add_boolean_select('user_rating', $lang['systemconfig_user_rating_label'], $enable_disable_options, 300, '', true); $page_def[] = config_add_html('</div>'); // Security section $page_def[] = config_add_html('<h3 class="CollapsibleSectionHead collapsed">' . $lang['systemconfig_security'] . '</h3><div id="SystemConfigSecuritySection" class="CollapsibleSection">'); $page_def[] = config_add_single_select('password_min_length', $lang['systemconfig_password_min_length_label'], range(0, 30), false, 300, '', true); $page_def[] = config_add_single_select('password_min_alpha', $lang['systemconfig_password_min_alpha_label'], range(0, 30), false, 300, '', true); $page_def[] = config_add_single_select('password_min_numeric', $lang['systemconfig_password_min_numeric_label'], range(0, 30), false, 300, '', true); $page_def[] = config_add_single_select('password_min_uppercase', $lang['systemconfig_password_min_uppercase_label'], range(0, 30), false, 300, '', true); $page_def[] = config_add_single_select('password_min_special', $lang['systemconfig_password_min_special_label'], range(0, 30), false, 300, '', true); $page_def[] = config_add_single_select('password_expiry', $lang['systemconfig_password_expiry_label'], array_merge(array(0 => $lang['never']), range(1, 90)), true, 300, '', true); $page_def[] = config_add_single_select('max_login_attempts_per_ip', $lang['systemconfig_max_login_attempts_per_ip_label'], range(10, 50), false, 300, '', true); $page_def[] = config_add_single_select('max_login_attempts_per_username', $lang['systemconfig_max_login_attempts_per_username_label'], range(0, 30), false, 300, '', true); $page_def[] = config_add_single_select('max_login_attempts_wait_minutes', $lang['systemconfig_max_login_attempts_wait_minutes_label'], range(0, 30), false, 300, '', true); $page_def[] = config_add_single_select('password_brute_force_delay', $lang['systemconfig_password_brute_force_delay_label'], range(0, 30), false, 300, '', true); $page_def[] = config_add_html('</div>'); // Let plugins hook onto page definition and add their own configs if needed // or manipulate the list $plugin_specific_definition = hook('add_system_config_page_def', '', array($page_def)); if (is_array($plugin_specific_definition) && !empty($plugin_specific_definition)) { $page_def = $plugin_specific_definition; } config_generate_html($page_def); ?> </div> <script>registerCollapsibleSections(false);</script> <?php config_generate_AutoSaveConfigOption_function($baseurl . '/pages/admin/admin_system_config.php'); ?> </div> <?php
exit($lang['image_text_noim']); } $identcommand = $identify_fullpath . ' -list font | grep Font:'; $identoutput = run_command($identcommand); # Get a list of available fonts from IM $imfonts = explode("\n", $identoutput); $imfontcount = count($imfonts); for ($n = 0; $n < $imfontcount; $n++) { $imfonts[$n] = trim_spaces(str_replace("Font: ", "", $imfonts[$n])); } natsort($imfonts); // Specify the name of this plugin and the heading to display for the page. $plugin_name = 'image_text'; $plugin_page_heading = $lang['image_text_configuration']; // Build the $page_def array of descriptions of each configuration variable the plugin uses. $page_def[] = config_add_html($lang['image_text_summary']); $page_def[] = config_add_single_ftype_select('image_text_field_select', $lang['image_text_field_select']); $page_def[] = config_add_multi_rtype_select('image_text_restypes', $lang['image_text_restypes']); $page_def[] = config_add_text_list_input('image_text_filetypes', $lang['image_text_filetypes']); $page_def[] = config_add_multi_group_select('image_text_override_groups', $lang['image_text_override_groups']); $page_def[] = config_add_text_input('image_text_default_text', $lang['image_text_default_text']); $page_def[] = config_add_single_select('image_text_font', $lang['image_text_font'], array_filter($imfonts), false); $page_def[] = config_add_single_select('image_text_position', $lang['image_text_position'], $lang['image_text_position_list']); $page_def[] = config_add_single_select('image_text_banner_position', $lang['image_text_banner_position'], $lang['image_text_banner_position_list']); //$page_def[] = config_add_text_input('image_text_font',$lang['image_text_font']); $page_def[] = config_add_text_input('image_text_height_proportion', $lang['image_text_height_proportion']); $page_def[] = config_add_text_input('image_text_max_height', $lang['image_text_max_height']); $page_def[] = config_add_text_input('image_text_min_height', $lang['image_text_min_height']); // Do the page generation ritual -- don't change this section. $upload_status = config_gen_setup_post($page_def, $plugin_name); include '../../../include/header.php';