} } //TC change fee anyway zbs_PaymentLog($user_login, '-' . $change_prices[$_POST['newtariff']], $tc_cashtypeid, "TCHANGE:" . $_POST['newtariff']); billing_addcash($user_login, '-' . $change_prices[$_POST['newtariff']]); //nm set tariff routine $nextMonthTc = true; if (isset($us_config['TC_RIGHTNOW'])) { if ($us_config['TC_RIGHTNOW']) { $nextMonthTc = false; } } if ($nextMonthTc) { billing_settariffnm($user_login, mysql_real_escape_string($_POST['newtariff'])); } else { billing_settariff($user_login, mysql_real_escape_string($_POST['newtariff'])); } rcms_redirect("index.php"); } else { // agreement check fail show_window(__('Sorry'), __('You must accept our policy')); } //die if tariff not allowed } else { die("oO"); } } // end of tariff change subroutine (POST processing) if (empty($user_tariffnm)) { show_window(__('Tariff change'), zbs_TariffChangeForm($user_login, $tc_tariffsallowed, $tc_priceup, $tc_pricedown, $tc_pricesimilar, $us_currency)); } else {
function settariff($login, $tariff) { $login = trim($login); $tariff = trim($tariff); billing_settariff($login, $tariff); }