[UPDATE] disabled pages and showing popup
This commit is contained in:
parent
be3421fa3b
commit
07e7bf59c0
@ -3,9 +3,15 @@
|
||||
// Make sure we are called from index.php
|
||||
if (!defined('SECURITY')) die('Hacking attempt');
|
||||
|
||||
$aDonors = $transaction->getDonations();
|
||||
if ($setting->getValue('disable_donors')) {
|
||||
$_SESSION['POPUP'][] = array('CONTENT' => 'Donors are currently disabled. Please try again later.', 'TYPE' => 'errormsg');
|
||||
$smarty->assign("CONTENT", "disabled.tpl");
|
||||
} else {
|
||||
$aDonors = $transaction->getDonations();
|
||||
|
||||
// Tempalte specifics
|
||||
$smarty->assign("DONORS", $aDonors);
|
||||
$smarty->assign("CONTENT", "default.tpl");
|
||||
}
|
||||
|
||||
// Tempalte specifics
|
||||
$smarty->assign("DONORS", $aDonors);
|
||||
$smarty->assign("CONTENT", "default.tpl");
|
||||
?>
|
||||
|
||||
@ -4,6 +4,12 @@
|
||||
if (!defined('SECURITY'))
|
||||
die('Hacking attempt');
|
||||
|
||||
// Tempalte specifics
|
||||
$smarty->assign("CONTENT", "default.tpl");
|
||||
if ($setting->getValue('disable_about')) {
|
||||
$_SESSION['POPUP'][] = array('CONTENT' => 'Donors are currently disabled. Please try again later.', 'TYPE' => 'errormsg');
|
||||
$smarty->assign("CONTENT", "disabled.tpl");
|
||||
} else {
|
||||
// Tempalte specifics
|
||||
$smarty->assign("CONTENT", "default.tpl");
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
0
public/templates/mpos/about/donors/disabled.tpl
Normal file
0
public/templates/mpos/about/donors/disabled.tpl
Normal file
0
public/templates/mpos/about/pool/disabled.tpl
Normal file
0
public/templates/mpos/about/pool/disabled.tpl
Normal file
Loading…
Reference in New Issue
Block a user