Files
Testing/batemin/admin_payment.php
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00

44 lines
1.0 KiB
PHP

<?php
$page = "admin_payment";
include "../admin/admin_header.php";
// ALLOW ACCESS TO SUPERADMIN ONLY
if( $admin->admin_super != 1) {
$page = "admin_payment_error";
include "admin_footer.php";
exit();
}
$task = semods::getpost('task', 'main');
// SET RESULT VARIABLE
$result = 0;
// SAVE CHANGES
if($task == "dosave") {
$setting_payment_currency = semods::post('setting_payment_currency', 'USD');
$setting_payment_tax = floatval(semods::post('setting_payment_tax', '0'));
// General Settings
$database->database_query("UPDATE se_semods_settings SET
setting_payment_currency = '$setting_payment_currency',
setting_payment_tax = '$setting_payment_tax'
");
$result = 1;
}
// ASSIGN VARIABLES AND SHOW GENERAL SETTINGS PAGE
$smarty->assign('result', $result);
$smarty->assign('error', $error);
$smarty->assign('setting_payment_currency', semods::get_setting('payment_currency'));
$smarty->assign('setting_payment_tax', semods::get_setting('payment_tax'));
include "admin_footer.php";
?>