Ejemplo n.º 1
0
<?php

#
# Annotate 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';
// Specify the name of this plugin and the heading to display for the page.
$plugin_name = 'annotate';
$plugin_page_heading = $lang['annotate_configuration'];
// Build the $page_def array of descriptions of each configuration variable the plugin uses.
$page_def[] = config_add_text_list_input('annotate_ext_exclude', $lang['extensions_to_exclude']);
$page_def[] = config_add_multi_rtype_select('annotate_rt_exclude', $lang['resource_types_to_exclude']);
$page_def[] = config_add_single_select('annotate_font', $lang['annotate_font'], array('helvetica', 'dejavusanscondensed'), false);
$page_def[] = config_add_boolean_select('annotate_debug', $lang['annotatedebug']);
$page_def[] = config_add_boolean_select('annotate_public_view', $lang['annotate_public_view']);
$page_def[] = config_add_boolean_select('annotate_show_author', $lang['annotate_show_author']);
$page_def[] = config_add_boolean_select('annotate_pdf_output', $lang["annotate_pdf_output"]);
$page_def[] = config_add_boolean_select('annotate_pdf_output_only_annotated', $lang["annotate_pdf_output_only_annotated"]);
// 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';
Ejemplo n.º 2
0
    exit($lang['error-permissiondenied']);
}
include '../../../include/general.php';
// Specify the name of this plugin, the heading to display for the page.
$plugin_name = 'transform';
$page_heading = $lang['transform_configuration'];
// Build the $page_def array of descriptions of each configuration variable the plugin uses.
#$page_def[] = config_add_text_input('cropper_default_target_format', 'Default Target Format');
$page_def[] = config_add_boolean_select('cropper_debug', $lang['cropper_debug']);
$page_def[] = config_add_text_list_input('cropper_formatarray', $lang['output_formats']);
$page_def[] = config_add_text_list_input('cropper_allowed_extensions', $lang['input_formats']);
#$page_def[] = config_add_text_input('cropper_default_target_format', 'Default Target Format');
#$page_def[] = config_add_boolean_select('cropper_cropsize', 'cropper_cropsize');
$page_def[] = config_add_boolean_select('cropper_custom_filename', $lang['custom_filename']);
#$page_def[] = config_add_boolean_select('cropper_use_filename_as_title', 'Use Filename as Title');
$page_def[] = config_add_boolean_select('cropper_allow_scale_up', 'cropper_allow_scale_up');
$page_def[] = config_add_boolean_select('cropper_rotation', $lang['allow_rotation']);
$page_def[] = config_add_boolean_select('cropper_transform_original', $lang['allow_transform_original']);
$page_def[] = config_add_boolean_select('cropper_use_repage', $lang['use_repage']);
#$page_def[] = config_add_boolean_select('cropper_jpeg_rgb', 'cropper_jpeg_rgb');
$page_def[] = config_add_boolean_select('cropper_enable_batch', $lang['enable_batch_transform']);
$page_def[] = config_add_boolean_select('cropper_enable_alternative_files', $lang['cropper_enable_alternative_files']);
$page_def[] = config_add_boolean_select('cropper_enable_replace_slideshow', $lang['enable_replace_slideshow']);
$page_def[] = config_add_multi_group_select("cropper_restricteduse_groups", $lang["cropper_restricteduse_groups"]);
$page_def[] = config_add_text_list_input('cropper_resolutions', $lang['cropper_resolutions']);
// Commented out lines above that either don't seem to work or I'm unsure how to test
// Do the page generation ritual
$upload_status = config_gen_setup_post($page_def, $plugin_name);
include '../../../include/header.php';
config_gen_setup_html($page_def, $plugin_name, $upload_status, $page_heading);
include '../../../include/footer.php';
Ejemplo n.º 3
0
<?php

include '../../../include/db.php';
include '../../../include/general.php';
include '../../../include/authenticate.php';
if (!checkperm('a')) {
    exit($lang['error-permissiondenied']);
}
// Specify the name of this plugin, the heading to display for the page.
$plugin_name = 'format_chooser';
$page_heading = $lang['format_chooser_configuration'];
// Build the config page
$page_def[] = config_add_text_list_input('format_chooser_input_formats', $lang['format_chooser_input_formats']);
$page_def[] = config_add_text_list_input('format_chooser_output_formats', $lang['format_chooser_output_formats']);
$upload_status = config_gen_setup_post($page_def, $plugin_name);
include '../../../include/header.php';
config_gen_setup_html($page_def, $plugin_name, $upload_status, $page_heading);
echo '<p>Please consult config.php directly in order to change the color profile settings.</p>';
include '../../../include/footer.php';
Ejemplo n.º 4
0
include '../../../include/db.php';
include '../../../include/general.php';
include '../../../include/authenticate.php';
if (!checkperm('a')) {
    exit($lang['error-permissiondenied']);
}
// Specify the name of this plugin and the heading to display for the page.
$plugin_name = 'magictouch';
$plugin_page_heading = $lang['magictouch_configuration'];
// Build the $page_def array of descriptions of each configuration variable the plugin uses.
// Each element of $page_def describes one configuration variable. Each description is
// created by one of the config_add_xxxx helper functions. See their definitions and
// descriptions in include/plugin_functions for more information.
$page_def[] = config_add_text_input('magictouch_account_id', $lang['magic_touch_key']);
$page_def[] = config_add_single_select('magictouch_secure', $lang['https'], array('https', 'http'), false);
$page_def[] = config_add_text_list_input('magictouch_ext_exclude', $lang['extensions_to_exclude']);
$page_def[] = config_add_multi_rtype_select('magictouch_rt_exclude', $lang['resource_types_to_exclude']);
$page_def[] = config_add_text_list_input('magictouch_view_page_sizes', $lang['view_page_sizes']);
$page_def[] = config_add_text_list_input('magictouch_preview_page_sizes', $lang['preview_page_sizes']);
// Do the page generation ritual.
$upload_status = config_gen_setup_post($page_def, $plugin_name);
include '../../../include/header.php';
$frontm = '';
if ($magictouch_account_id == '') {
    $frontm .= $lang['get-magictouch'];
    $frontm .= '<br /><br />';
    $frontm .= $lang['configure-account-id-and-register-domain'];
    $frontm .= '<br /><br />';
}
config_gen_setup_html($page_def, $plugin_name, $upload_status, $plugin_page_heading, $frontm);
include '../../../include/footer.php';
Ejemplo n.º 5
0
$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';
config_gen_setup_html($page_def, $plugin_name, $upload_status, $plugin_page_heading);
include '../../../include/footer.php';
Ejemplo n.º 6
0
<?php

#
# propose_changes setup page
#
include '../../../include/db.php';
include '../../../include/general.php';
include '../../../include/authenticate.php';
if (!checkperm('a')) {
    exit($lang['error-permissiondenied']);
}
global $baseurl;
// Specify the name of this plugin and the heading to display for the page.
$plugin_name = 'propose_changes';
$plugin_page_heading = $lang['propose_changes_configuration'];
// Build the $page_def array of descriptions of each configuration variable the plugin uses.
$page_def[] = config_add_boolean_select('propose_changes_always_allow', $lang['propose_changes_always_allow']);
$page_def[] = config_add_boolean_select('propose_changes_allow_open', $lang['propose_changes_allow_open']);
$page_def[] = config_add_boolean_select('propose_changes_notify_admin', $lang['propose_changes_notify_admin']);
$page_def[] = config_add_boolean_select('propose_changes_notify_contributor', $lang['propose_changes_notify_contributor']);
$page_def[] = config_add_text_list_input('propose_changes_notify_addresses', $lang['propose_changes_notify_addresses']);
// 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';
Ejemplo n.º 7
0
#

// Do the include and authorization checking ritual.
include '../../../include/db.php';
include '../../../include/authenticate.php'; if (!checkperm('a')) {exit ($lang['error-permissiondenied']);}
include '../../../include/general.php';

// Specify the name of this plugin, the heading to display for the page.
$plugin_name = 'transform';
$page_heading = $lang['transform_configuration'];

// Build the $page_def array of descriptions of each configuration variable the plugin uses.
#$page_def[] = config_add_text_input('cropper_default_target_format', 'Default Target Format');
$page_def[] = config_add_boolean_select('cropper_debug', $lang['cropper_debug']);
$page_def[] = config_add_text_list_input('cropper_formatarray', $lang['output_formats']);
$page_def[] = config_add_text_list_input('cropper_allowed_extensions', $lang['input_formats']);
#$page_def[] = config_add_text_input('cropper_default_target_format', 'Default Target Format');
#$page_def[] = config_add_boolean_select('cropper_cropsize', 'cropper_cropsize');
$page_def[] = config_add_boolean_select('cropper_custom_filename', $lang['custom_filename']);
#$page_def[] = config_add_boolean_select('cropper_use_filename_as_title', 'Use Filename as Title');
#$page_def[] = config_add_boolean_select('cropper_allow_scale_up', 'cropper_allow_scale_up');
$page_def[] = config_add_boolean_select('cropper_rotation', $lang['allow_rotation']);
$page_def[] = config_add_boolean_select('cropper_transform_original', $lang['allow_transform_original']);
$page_def[] = config_add_boolean_select('cropper_use_repage', $lang['use_repage']);
#$page_def[] = config_add_boolean_select('cropper_jpeg_rgb', 'cropper_jpeg_rgb');
$page_def[] = config_add_boolean_select('cropper_enable_batch', $lang['enable_batch_transform']);
// Commented out lines above that either don't seem to work or I'm unsure how to test

// Do the page generation ritual
$upload_status = config_gen_setup_post($page_def, $plugin_name);
include '../../../include/header.php';
Ejemplo n.º 8
0
<?php

# Setup page for track_field_history plugin
# Do the include and authorization checking ritual.
include '../../../include/db.php';
include '../../../include/authenticate.php';
if (!checkperm('a')) {
    exit($lang['error-permissiondenied']);
}
include '../../../include/general.php';
# Specify the name of this plugin, the heading to display for the page.
$plugin_name = 'track_field_history';
$page_heading = "Track Field History Configuration";
# Build the $page_def array of descriptions of each configuration variable the plugin uses.
$page_def[] = config_add_text_list_input('track_fields', $lang['track_fields']);
# Do the page generation ritual
$upload_status = config_gen_setup_post($page_def, $plugin_name);
include '../../../include/header.php';
config_gen_setup_html($page_def, $plugin_name, $upload_status, $page_heading);
include '../../../include/footer.php';