Esempio n. 1
0
function confirm_main()
{
    $oid = @$_GET['orderid'];
    if (order_dopayment($oid) == false) {
        confirm_error(_('Payment fail, please contact us for help'));
        return false;
    } else {
        $smarty->assign('url', "order_delivery.php?orderid={$oid}");
        $smarty->display('paypal_confirm.html');
        return true;
    }
}
Esempio n. 2
0
// We then print a nice welcome message.
// This depends on there being page definitions in metadata.php
// FUNCTIONS
// confirm_success()		Displays a page with a success confirmation message
// confirm_error()		Displays a page with an error message
// INITIALISATION
include_once "../../../includes/easyparliament/init.php";
include_once "../../../includes/easyparliament/member.php";
include_once INCLUDESPATH . '../../../phplib/crosssell.php';
// Instantiate an instance of ALERT
$ALERT = new ALERT();
$success = $ALERT->confirm(get_http_var('t'));
if ($success) {
    confirm_success($ALERT);
} else {
    confirm_error();
}
// FUNCTION:  confirm_success
function confirm_success($ALERT)
{
    global $PAGE, $this_page, $THEUSER;
    $this_page = 'alertconfirmsucceeded';
    $criteria = $ALERT->criteria_pretty(true);
    $email = $ALERT->email();
    $extra = null;
    $PAGE->page_start();
    $PAGE->stripe_start();
    ?>
	<p>Your alert has been confirmed.</p>
	<p>You will now receive email alerts for the following criteria:</p>
	<ul><?php