Exemplo n.º 1
0
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 = 'youtube_publish';
$plugin_page_heading = $lang['youtube_publish_configuration'];
// Build the $page_def array of descriptions of each configuration variable the plugin uses.
$page_def[] = config_add_section_header($lang['youtube_publish_oauth2_advice']);
$page_def[] = config_add_section_header($lang['youtube_publish_authentication']);
$page_def[] = config_add_text_input('youtube_publish_client_id', $lang['youtube_publish_oauth2_clientid']);
$page_def[] = config_add_text_input('youtube_publish_client_secret', $lang['youtube_publish_oauth2_clientsecret']);
$page_def[] = config_add_text_input('youtube_publish_developer_key', $lang['youtube_publish_developer_key']);
$page_def[] = config_add_section_header($lang['youtube_publish_mappings_title']);
$page_def[] = config_add_single_ftype_select('youtube_publish_title_field', $lang["youtube_publish_title_field"]);
$page_def[] = config_add_multi_ftype_select('youtube_publish_descriptionfields', $lang["youtube_publish_descriptionfields"]);
$page_def[] = config_add_multi_ftype_select('youtube_publish_keywords_fields', $lang["youtube_publish_keywords_fields"]);
$page_def[] = config_add_single_ftype_select('youtube_publish_url_field', $lang["youtube_publish_url_field"]);
$page_def[] = config_add_boolean_select('youtube_publish_add_anchor', $lang['youtube_publish_add_anchor']);
$page_def[] = config_add_boolean_select('youtube_publish_allow_multiple', $lang['youtube_publish_allow_multiple']);
$page_def[] = config_add_multi_rtype_select('youtube_publish_restypes', $lang['youtube_publish_resource_types_to_include']);
$page_def[] = config_add_text_input('youtube_chunk_size', $lang['youtube_chunk_size']);
// Do the page generation ritual -- don't change this section.
$upload_status = config_gen_setup_post($page_def, $plugin_name);
include '../../../include/header.php';
echo $lang["youtube_publish_base"] . ": " . $baseurl . "<br>";
echo $lang["youtube_publish_callback_url"] . ": " . $baseurl . "/plugins/youtube_publish/pages/youtube_upload.php";
config_gen_setup_html($page_def, $plugin_name, $upload_status, $plugin_page_heading);
include '../../../include/footer.php';
Exemplo n.º 2
0
    }
}
// Build configuration variable descriptions
$page_def[] = config_add_text_input("checkmail_imap_server", $lang["checkmail_imap_server"]);
$page_def[] = config_add_text_input("checkmail_email", $lang["checkmail_email"]);
$page_def[] = config_add_text_input("checkmail_password", $lang["checkmail_password"], true);
$page_def[] = config_add_multi_user_select("checkmail_users", $lang["checkmail_users"]);
$page_def[] = config_add_single_ftype_select("checkmail_subject_field", $lang["checkmail_subject_field"]);
$page_def[] = config_add_single_ftype_select("checkmail_body_field", $lang["checkmail_body_field"]);
$page_def[] = config_add_single_select("checkmail_default_access", $lang["checkmail_default_access"], array(2 => $lang["access2"], 1 => $lang["access1"], 0 => $lang["access0"]));
$page_def[] = config_add_single_select("checkmail_default_archive", $lang["checkmail_default_archive"], array(-2 => $lang["status-2"], -1 => $lang["status-1"], 0 => $lang["status0"], 1 => $lang["status1"], 2 => $lang["status2"], 3 => $lang["status3"]));
$page_def[] = config_add_boolean_select("checkmail_html", $lang["checkmail_html"]);
$page_def[] = config_add_boolean_select("checkmail_purge", $lang["checkmail_purge"]);
$page_def[] = config_add_boolean_select("checkmail_confirm", $lang["checkmail_confirm"]);
// extensions. This technique of dynamic config form generation (based on installation-specifics) might be generally useful.
$page_def[] = config_add_section_header($lang['checkmail_extension_mapping'], $lang['checkmail_extension_mapping_desc']);
$page_def[] = config_add_single_rtype_select("checkmail_default_resource_type", $lang['checkmail_default_resource_type']);
$resource_types = get_resource_types();
foreach ($resource_types as $resource_type) {
    $safe_varname = "resourcetype" . $resource_type['ref'];
    if (!isset(${$safe_varname})) {
        ${$safe_varname} = $resource_type['allowed_extensions'];
        if (${$safe_varname} == "") {
            $page_def[] = config_add_text_input($safe_varname, $resource_type['name']);
        } else {
            $page_def[] = config_add_text_input($safe_varname, $resource_type['name'] . " " . $lang['checkmail_resource_type_population']);
        }
    } else {
        $page_def[] = config_add_text_input($safe_varname, $resource_type['name']);
    }
}
Exemplo n.º 3
0
<?php

#
# action_dates setup page
#
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 = 'action_dates';
$plugin_page_heading = $lang['action_dates_configuration'];
// Build the $page_def array of descriptions of each configuration variable the plugin uses.
$page_def[] = config_add_section_header($lang['action_dates_deletesettings']);
$page_def[] = config_add_single_ftype_select('action_dates_deletefield', $lang['action_dates_delete']);
$page_def[] = config_add_boolean_select('action_dates_reallydelete', $lang['action_dates_reallydelete']);
$page_def[] = config_add_section_header($lang['action_dates_restrictsettings']);
$page_def[] = config_add_text_input('action_dates_email_admin_days', $lang['action_dates_email_admin_days']);
$page_def[] = config_add_single_ftype_select('action_dates_restrictfield', $lang['action_dates_restrict']);
// 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';
Exemplo n.º 4
0
<?php

// Do the include and authorization checking ritual
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 = 'flickr_theme_publish';
$page_heading = $lang['flickr_theme_publish'];
$page_intro = '';
// Build configuration variable descriptions
$page_def[] = config_add_section_header("General", "");
$page_def[] = config_add_single_ftype_select("flickr_caption_field", $lang["flickr_caption_field"]);
$page_def[] = config_add_single_ftype_select("flickr_keywords_field", $lang["flickr_keywords_field"]);
$page_def[] = config_add_boolean_select("flickr_prefix_id_title", $lang['flickr_prefix_id_title']);
$page_def[] = config_add_boolean_select("flickr_scale_up", $lang['flickr_scale_up']);
$page_def[] = config_add_boolean_select("flickr_nice_progress", $lang['flickr_nice_progress']);
$page_def[] = config_add_boolean_select("flickr_nice_progress_previews", $lang['flickr_nice_progress_previews']);
$page_def[] = config_add_boolean_select("flickr_nice_progress_metadata", $lang['flickr_nice_progress_metadata']);
$page_def[] = config_add_text_input("flickr_nice_progress_min_timeout", $lang['flickr_nice_progress_min_timeout']);
// 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, $page_intro);
include '../../../include/footer.php';