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"; ?>