Exemplo n.º 1
0
function photoplog_partial_date($datearray)
{
    return !photoplog_checkdate($datearray) && $datearray['month'] + $datearray['day'] + $datearray['year'] + $datearray['minute'] + $datearray['hour'] > 0;
}
Exemplo n.º 2
0
                } else {
                    construct_hidden_code($photoplog_input_key, $_REQUEST[$photoplog_input_key]);
                }
            }
            print_table_header($vbphrase['photoplog_warning_changes_permanent'], 2);
            print_label_row($photoplog_phrase_number . $photoplog_fileid_totalcount);
            print_submit_row($photoplog_phrase_action, '', 2, $vbphrase['photoplog_goback']);
        } else {
            print_table_header($vbphrase['photoplog_no_files_matched'], 2);
            print_submit_row($vbphrase['photoplog_reset'], '', 2, $vbphrase['photoplog_goback']);
        }
    } else {
        if ($photoplog_include_subcategories && $photoplog_make_subcategories && $photoplog_move_categories) {
            photoplog_massmove_make_subcats_as_necessary($photoplog_fileids, $photoplog_destination_list_categories, $photoplog_parent_list_categories, $photoplog_source_list_categories, $photoplog_ds_catopts);
        }
        $photoplog_destination_posted_on_dateline = $photoplog_move_action && photoplog_checkdate($photoplog_destination_posted_on) ? photoplog_get_dateline($photoplog_destination_posted_on) : -1;
        if ($photoplog_move_action) {
            // make update set strings
            $photoplog_update_set_fileuploads_string = photoplog_massmove_make_update_set_fileuploads($photoplog_multi_wheres, $photoplog_move_categories, $photoplog_destination_list_categories, $photoplog_destination_posted_by, $photoplog_new_username, $photoplog_destination_posted_on_dateline);
            $photoplog_update_set_ratecomment_string = photoplog_massmove_make_update_set_ratecomment($photoplog_multi_wheres, $photoplog_move_categories, $photoplog_destination_list_categories);
            // update the tables
            photoplog_massmove_do_move_update($photoplog_update_set_fileuploads_string, $photoplog_update_set_ratecomment_string, $photoplog_fileids, $photoplog_fileinfo, $photoplog_movefiles, $photoplog_destination_posted_by);
        } else {
            photoplog_massmove_do_delete_update($photoplog_fileids, $photoplog_fileinfo);
        }
        photoplog_maintain_counts(0, 50, 0, $photoplog_header, 'photoplog_massmove.php');
        // print_cp_redirect("photoplog_massmove.php?".$vbulletin->session->vars['sessionurl']."do=view", 1);
    }
}
print_cp_footer();
// ################### PHOTOPLOG MASS MOVE FUNCTIONS ######################