viewing paste Unknown #10049 | C

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
if (!defined('FLUX_ROOT')) exit;
 
$this->loginRequired(Flux::message('LoginToDonate'));
 
$title = 'Make a Donation';
 
$donationAmount = false;
 
 
 
if (count($_POST) && $params->get('setamount')) {
    $minimum = Flux::config('MinDonationAmount');
    $amount  = (float)$params->get('amount');
    
    if (!$amount || $amount < $minimum) {
        $errorMessage = sprintf('Donation amount must be greater than or equal to %s %s!',
            $this->formatCurrency($minimum), Flux::config('DonationCurrency'));
    }
    else {
        $donationAmount = $amount;
    }
}
 
 
if (!$params->get('setamount') && $params->get('resetamount')) {
    $this->redirect($this->url);
}
?>
Viewed 1013 times, submitted by Guest.