コード例 #1
0
<?php

#
# grant_edit setup page
#
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 = 'grant_edit';
$plugin_page_heading = $lang['grant_edit_configuration'];
// Build the $page_def array of descriptions of each configuration variable the plugin uses.
$page_def[] = config_add_multi_group_select("grant_edit_groups", $lang["grant_edit_groups"]);
// 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';
コード例 #2
0
ファイル: setup.php プロジェクト: claytondaley/resourcespace
$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';
コード例 #3
0
ファイル: setup.php プロジェクト: chandradrupal/resourcespace
    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';
コード例 #4
0
<?php

#
# Annotate setup page
#
// Do the include and authorization checking ritual -- don't change this section.
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 = '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"]);
$page_def[] = config_add_multi_group_select('annotate_admin_edit_access', $lang["annotate_admin_edit_access"]);
// 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';