function bepro_admin_init()
{
    //admin startup
    bl_scd_redirect_dashboard();
    permalink_admin_init();
    bpl_nag_ignore();
    bpl_rate_ignore();
    //show options on various admin pages generated by wordpress
    $data = get_option("bepro_listings");
    add_meta_box("contact_general_meta", " ", "BL_Meta_Box_Listing_Images::contact_general_meta", "bepro_listings", "normal", "low");
    if ($data["show_cost"] == 1 || $data["show_cost"] == "on") {
        add_meta_box("cost_meta", "Cost \$", "BL_Meta_Box_Listing_Images::cost_meta", "bepro_listings", "side", "low");
    }
    if ($data["show_con"] == 1 || $data["show_con"] == "on") {
        add_meta_box("contact_details_meta", "Lisiting Details", "BL_Meta_Box_Listing_Images::contact_details_meta", "bepro_listings", "normal", "low");
    }
    if (is_numeric($data["show_geo"]) && $data["show_geo"] > 0 || $data["show_geo"] == "on") {
        add_meta_box("geographic_details_meta", "Geographic Details", "BL_Meta_Box_Listing_Images::geographic_details_meta", "bepro_listings", "normal", "low");
    }
    add_meta_box('bepro-listings-images', __('Listing Gallery', 'bepro-listings'), 'BL_Meta_Box_Listing_Images::gallery_images_meta', 'bepro_listings', 'side');
    //payment package meta
    if ($data["require_payment"] == 2) {
        add_meta_box("package_general_meta", "Package Details", "package_general_meta", "bpl_packages", "normal", "high");
    }
    if (!empty($data["require_payment"])) {
        add_meta_box("order_general_meta", "BePro Listings Details", "bl_order_general_meta", "bpl_orders", "normal", "high");
    }
}
function bepro_admin_init()
{
    $data = get_option("bepro_listings");
    add_meta_box("contact_general_meta", " ", "contact_general_meta", "bepro_listings", "normal", "low");
    if ($data["show_cost"] == (1 || "on")) {
        add_meta_box("cost_meta", "Cost \$", "cost_meta", "bepro_listings", "side", "low");
    }
    if ($data["show_con"] == (1 || "on")) {
        add_meta_box("contact_details_meta", "Lisiting Details", "contact_details_meta", "bepro_listings", "normal", "low");
    }
    if ($data["show_geo"] == (1 || "on")) {
        add_meta_box("geographic_details_meta", "Geographic Details", "geographic_details_meta", "bepro_listings", "normal", "low");
    }
    permalink_save_options();
    permalink_admin_init();
}