X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_payouts.php;h=da87317ea191ff5021bf0fde925ec67a27897a72;hb=b7a1b50bec9d45efcf037db83b7e7c58ba2846dd;hp=3b3af308e05f0111ecdf1607c2f081fdb0fca651;hpb=963e55ca1ea79e255f235e359cde9f7862191dc5;p=mailer.git diff --git a/inc/modules/admin/what-config_payouts.php b/inc/modules/admin/what-config_payouts.php index 3b3af308e0..da87317ea1 100644 --- a/inc/modules/admin/what-config_payouts.php +++ b/inc/modules/admin/what-config_payouts.php @@ -38,9 +38,9 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) { } // Add description as navigation point -ADD_DESCR("admin", basename(__FILE__)); +ADD_DESCR("admin", __FILE__); -if (!empty($_POST['rate'])) $_POST['rate'] = str_replace(",", ".", $_POST['rate']); +if (!empty($_POST['rate'])) $_POST['rate'] = REVERT_COMMA($_POST['rate']); if ((isset($_POST['add'])) && (!empty($_POST['title'])) && ($_POST['rate'] > 0)) { @@ -52,7 +52,7 @@ if ((isset($_POST['add'])) && (!empty($_POST['title'])) && ($_POST['rate'] > 0)) // Add now $result = SQL_QUERY_ESC("INSERT INTO "._MYSQL_PREFIX."_payout_types (type, rate, min_points, from_account, from_pass, engine_url, engine_ret_ok, engine_ret_failed, pass_enc, allow_url) -VALUES ('%s', %d, %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s')", +VALUES ('%s', %d, %d,'%s','%s','%s','%s','%s','%s','%s')", array( $_POST['title'], bigintval($_POST['rate']), @@ -104,8 +104,8 @@ allow_url='%s' WHERE id='".$id."' LIMIT 1", array( $_POST['title'][$id], - bigintval(str_replace(",", ".", $_POST['rate'][$id])), - bigintval(str_replace(",", ".", $_POST['mpoi'][$id])), + bigintval(REVERT_COMMA($_POST['rate'][$id])), + bigintval(REVERT_COMMA($_POST['mpoi'][$id])), $_POST['allow'][$id], ),__FILE__, __LINE__); }