コード例 #1
0
ファイル: photoplog_field.php プロジェクト: holandacz/nb4
function photoplog_request_category($nextdo = 'view')
{
    global $vbulletin, $vbphrase, $photoplog_header;
    print_form_header('photoplog_field', $nextdo);
    construct_hidden_code('s', $vbulletin->session->vars['sessionhash']);
    print_table_header($photoplog_header, 2);
    $photoplog_list_categories = array();
    photoplog_list_categories($photoplog_list_categories, -1, $vbphrase['photoplog_all_categories']);
    print_select_row(photoplog_row_info('photoplog_category', 'photoplog_not_editable'), 'catid', $photoplog_list_categories, "-1", true, 0, false);
    print_submit_row($vbphrase['photoplog_continue'], '', 2, $vbphrase['go_back']);
}
コード例 #2
0
ファイル: photoplog_category.php プロジェクト: holandacz/nb4
$specialtemplates = array();
// ########################## REQUIRE BACK-END ############################
require_once './global.php';
require_once DIR . '/includes/photoplog_prefix.php';
require_once DIR . '/' . $vbulletin->config['Misc']['admincpdir'] . '/photoplog_functions.php';
// ######################## CHECK ADMIN PERMISSIONS #######################
if (!can_administer('canadminforums')) {
    print_cp_no_permission();
}
// ############################# LOG ACTION ###############################
log_admin_action();
// ########################################################################
// ######################### START MAIN SCRIPT ############################
// ########################################################################
$photoplog_list_categories = array();
photoplog_list_categories($photoplog_list_categories, -1, $vbphrase['photoplog_no_one']);
$photoplog_categoryoptions = array('allowhtml' => 1, 'allowsmilies' => 2, 'allowbbcode' => 4, 'allowimgcode' => 8, 'allowparseurl' => 16, 'allowcomments' => 32, 'issearchable' => 64, 'ismembersfolder' => 128, 'actasdivider' => 256, 'allowdeschtml' => 512, 'openforsubcats' => 1024);
$photoplog_ds_catopts = photoplog_fetch_ds_cat();
print_cp_header($vbphrase['photoplog_category_manager']);
if (empty($_REQUEST['do'])) {
    $_REQUEST['do'] = 'modify';
}
if ($_REQUEST['do'] == 'decline') {
    $vbulletin->input->clean_array_gpc('r', array('suggestid' => TYPE_UINT));
    print_form_header('photoplog_category', 'dodecline');
    construct_hidden_code('s', $vbulletin->session->vars['sessionhash']);
    construct_hidden_code('suggestid', $vbulletin->GPC['suggestid']);
    print_table_header($vbphrase['photoplog_confirm_decline']);
    print_description_row($vbphrase['photoplog_you_are_about_to_decline'] . ' ' . $vbphrase['photoplog_are_you_sure']);
    print_submit_row($vbphrase['photoplog_yes'], '', 2, $vbphrase['photoplog_no']);
}
コード例 #3
0
ファイル: photoplog_massmove.php プロジェクト: holandacz/nb4
    print_input_row($vbphrase['photoplog_height_at_least'], 'photoplog_height_at_least');
    print_input_row($vbphrase['photoplog_height_at_most'], 'photoplog_height_at_most');
    print_input_row($vbphrase['photoplog_number_views_at_least'], 'photoplog_number_views_at_least');
    print_input_row($vbphrase['photoplog_number_views_at_most'], 'photoplog_number_views_at_most');
    print_time_row($vbphrase['photoplog_last_comment_after'], 'photoplog_last_comment_after');
    print_time_row($vbphrase['photoplog_last_comment_before'], 'photoplog_last_comment_before');
    print_input_row($vbphrase['photoplog_number_comments_at_least'], 'photoplog_number_comments_at_least');
    print_input_row($vbphrase['photoplog_number_comments_at_most'], 'photoplog_number_comments_at_most');
    print_input_row($vbphrase['photoplog_number_ratings_at_least'], 'photoplog_number_ratings_at_least');
    print_input_row($vbphrase['photoplog_number_ratings_at_most'], 'photoplog_number_ratings_at_most');
    $photoplog_rating_array = array("-1" => $vbphrase['photoplog_ignore'], "1" => $vbphrase['photoplog_terrible'], "2" => $vbphrase['photoplog_bad'], "3" => $vbphrase['photoplog_average'], "4" => $vbphrase['photoplog_good'], "5" => $vbphrase['photoplog_excellent']);
    print_select_row($vbphrase['photoplog_average_rating_at_least'], 'photoplog_average_rating_ge', $photoplog_rating_array, "-1");
    print_select_row($vbphrase['photoplog_average_rating_at_most'], 'photoplog_average_rating_le', $photoplog_rating_array, "-1");
    print_table_header($vbphrase['photoplog_move_destination']);
    $photoplog_destination_list_categories = array();
    photoplog_list_categories($photoplog_destination_list_categories);
    print_select_row($vbphrase['photoplog_category'], 'photoplog_destination_category', $photoplog_destination_list_categories, "-1", true, 0, false);
    print_yes_no_row($vbphrase['photoplog_make_subcategories'], 'photoplog_make_subcategories', "0");
    print_input_row($vbphrase['photoplog_destination_posted_by_id'], 'photoplog_destination_posted_by');
    print_time_row($vbphrase['photoplog_destination_posted_on'], 'photoplog_destination_posted_on');
    print_submit_row($vbphrase['photoplog_preview']);
}
if ($_REQUEST['do'] == 'domassmove' || $_REQUEST['do'] == 'preview') {
    $photoplog_input_names = array('photoplog_md' => TYPE_INT, 'photoplog_source_category' => TYPE_INT, 'photoplog_include_subcategories' => TYPE_UINT, 'photoplog_posted_by' => TYPE_STR, 'photoplog_title' => TYPE_STR, 'photoplog_description' => TYPE_STR, 'photoplog_posted_after' => TYPE_ARRAY_UINT, 'photoplog_posted_before' => TYPE_ARRAY_UINT, 'photoplog_filesize_at_least' => TYPE_UINT, 'photoplog_filesize_at_most' => TYPE_UINT, 'photoplog_width_at_least' => TYPE_UINT, 'photoplog_width_at_most' => TYPE_UINT, 'photoplog_height_at_least' => TYPE_UINT, 'photoplog_height_at_most' => TYPE_UINT, 'photoplog_number_views_at_least' => TYPE_UINT, 'photoplog_number_views_at_most' => TYPE_UINT, 'photoplog_last_comment_after' => TYPE_ARRAY_UINT, 'photoplog_last_comment_before' => TYPE_ARRAY_UINT, 'photoplog_number_comments_at_least' => TYPE_UINT, 'photoplog_number_comments_at_most' => TYPE_UINT, 'photoplog_number_ratings_at_least' => TYPE_UINT, 'photoplog_number_ratings_at_most' => TYPE_UINT, 'photoplog_average_rating_ge' => TYPE_INT, 'photoplog_average_rating_le' => TYPE_INT, 'photoplog_destination_category' => TYPE_INT, 'photoplog_make_subcategories' => TYPE_UINT, 'photoplog_destination_posted_by' => TYPE_UINT, 'photoplog_destination_posted_on' => TYPE_ARRAY_UINT);
    $photoplog_input_okay_info = array('photoplog_md' => array('photoplog_bad_input', 1, 2), 'photoplog_source_category' => array('photoplog_bad_source_category', 1, 2), 'photoplog_include_subcategories' => array('photoplog_bad_input', 1, 2), 'photoplog_posted_by' => array('photoplog_bad_posted_by_id', 1, 2), 'photoplog_title' => array('photoplog_bad_input', 1, 2), 'photoplog_description' => array('photoplog_bad_input', 1, 2), 'photoplog_posted_after' => array('photoplog_bad_date', 1, 2), 'photoplog_posted_before' => array('photoplog_bad_date', 1, 2), 'photoplog_filesize_at_least' => array('photoplog_bad_filesize', 1, 2), 'photoplog_filesize_at_most' => array('photoplog_bad_filesize', 1, 2), 'photoplog_width_at_least' => array('photoplog_bad_width', 1, 2), 'photoplog_width_at_most' => array('photoplog_bad_width', 1, 2), 'photoplog_height_at_least' => array('photoplog_bad_height', 1, 2), 'photoplog_height_at_most' => array('photoplog_bad_height', 1, 2), 'photoplog_number_views_at_least' => array('photoplog_bad_number_views', 1, 2), 'photoplog_number_views_at_most' => array('photoplog_bad_number_views', 1, 2), 'photoplog_last_comment_after' => array('photoplog_bad_date', 1, 2), 'photoplog_last_comment_before' => array('photoplog_bad_date', 1, 2), 'photoplog_number_comments_at_least' => array('photoplog_bad_number_comments', 1, 2), 'photoplog_number_comments_at_most' => array('photoplog_bad_number_comments', 1, 2), 'photoplog_number_ratings_at_least' => array('photoplog_bad_number_ratings', 1, 2), 'photoplog_number_ratings_at_most' => array('photoplog_bad_number_ratings', 1, 2), 'photoplog_average_rating_ge' => array('photoplog_bad_average_rating', 1, 2), 'photoplog_average_rating_le' => array('photoplog_bad_average_rating', 1, 2), 'photoplog_destination_category' => array('photoplog_bad_destination_category', 1), 'photoplog_make_subcategories' => array('photoplog_bad_input', 1), 'photoplog_destination_posted_by' => array('photoplog_bad_posted_by_id', 1), 'photoplog_destination_posted_on' => array('photoplog_bad_date', 1));
    $vbulletin->input->clean_array_gpc('p', $photoplog_input_names);
    $photoplog_blank_to_minus_one = array('photoplog_filesize_at_most', 'photoplog_filesize_at_least', 'photoplog_width_at_most', 'photoplog_width_at_least', 'photoplog_height_at_most', 'photoplog_height_at_least', 'photoplog_number_views_at_most', 'photoplog_number_views_at_least', 'photoplog_number_comments_at_most', 'photoplog_number_comments_at_least', 'photoplog_number_ratings_at_most', 'photoplog_number_ratings_at_least', 'photoplog_destination_posted_by');
    $photoplog_input_okay = array();
    foreach ($photoplog_input_names as $photoplog_key => $photoplog_value) {
        ${$photoplog_key} = $vbulletin->GPC[$photoplog_key];
        $photoplog_input_okay[$photoplog_key] = true;