Example #1
0
function idf_registered()
{
    idf_idcf_delivery();
    idf_fh_delivery();
    update_option('idf_registered', 1);
    exit;
}
Example #2
0
function idf_main_menu()
{
    $idf_registered = get_option('idf_registered');
    $platform = idf_platform();
    $plugins_path = plugin_dir_path(dirname(__FILE__));
    if (isset($_POST['commerce_submit'])) {
        $platform = esc_attr($_POST['commerce_selection']);
        update_option('idf_commerce_platform', $platform);
    }
    if (isset($_POST['update_idcf'])) {
        if (file_exists($plugins_path . 'ignitiondeck-crowdfunding')) {
            deactivate_plugins($plugins_path . 'ignitiondeck-crowdfunding/ignitiondeck.php');
            $dir = $plugins_path . 'ignitiondeck-crowdfunding';
            rrmdir($dir);
        }
        idf_idcf_delivery();
        echo '<script>location.href="' . site_url('/wp-admin/admin.php?page=idf') . '";</script>';
    }
    include_once 'templates/admin/_idfMenu.php';
}
Example #3
0
function idf_registered()
{
    idf_idcf_delivery();
    idf_fh_delivery();
    update_option('idf_registered', 1);
    if (isset($_POST['Email'])) {
        $email = esc_attr($_POST['Email']);
        update_option('id_account', $email);
    }
    exit;
}