Esempio n. 1
0
        if (count($threads) > 0) {
            $db->add_member_threads($member_id, $threads);
            $db->delete_guest_threads($guest_id);
        }
        $db->delete_guest($guest_id);
    }
}
###############################################################################
##
##                             M  A  I  N
##
###############################################################################
$t =& new_smarty();
$error = '';
$vars =& get_input_vars();
plugin_display_signup_form();
$error = array();
unset($member_id);
if ($vars['continue_signup']) {
    $u = $db->get_user($vars['member_id']);
    if (!$u['member_id']) {
        fatal_error(_SIGNUP_INCORRECT_LINK, 1);
    }
    $md5 = md5($u['login'] . $u['pass'] . $vars['member_id']);
    if ($md5 != $vars['md5']) {
        fatal_error(_SIGNUP_INCORRECT_LINK, 1);
    }
    $u['email_verified'] = 1;
    $db->update_user($u['member_id'], $u);
    auto_login_and_move_subscriptions($u['member_id']);
    header("Location: " . $config['root_url'] . "/thanks.php");
Esempio n. 2
0
            $db->delete_user($member_id);
        }
        show_payment_form();
    }
}
###############################################################################
##
##                             M  A  I  N
##
###############################################################################
unset($GLOBALS['_trial_days']);
// trial handling
$t =& new_smarty();
$error = '';
$vars =& get_input_vars();
plugin_display_signup_form($vars);
$error = array();
unset($member_id);
$coupon = null;
if (!empty($vars['product_id'])) {
    $vars['product_id'] = is_array($vars['product_id']) ? array_filter(array_map('intval', $vars['product_id'])) : intval($vars['product_id']);
}
if ($vars['cs']) {
    list($payment_id, $code) = explode("-", $vars['cs']);
    $payment = $db->get_payment($payment_id);
    if (!$payment['payment_id']) {
        fatal_error(_SIGNUP_INCORRECT_LINK, 1);
    }
    $member_id = $payment['member_id'];
    $email_confirm_code = $payment['data']['email_confirm']['code'];
    $email_confirm_time = $payment['data']['email_confirm']['time'];