-VALUES ('%s', %d, %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s')",
- array(
- $_POST['title'],
- bigintval($_POST['rate']),
- bigintval($_POST['mpoi']),
- $_POST['yacc'],
- $_POST['ypass'],
- $_POST['yurl'],
- $_POST['yrdone'],
- $_POST['yrfailed'],
- $_POST['ytrans'],
- $_POST['allow_url'],
-), __FILE__, __LINE__);
- $msg = "<FONT class=\"admin_done\">".ADMIN_PAYOUT_TYPE_ADDED."</FONT>";
- }
- else
- {
+VALUES ('%s', %d, %d,'%s','%s','%s','%s','%s','%s','%s')",
+ array(
+ postRequestElement('title'),
+ bigintval(postRequestElement('rate')),
+ bigintval(postRequestElement('min_points')),
+ postRequestElement('yacc'),
+ postRequestElement('ypass'),
+ postRequestElement('yurl'),
+ postRequestElement('yrdone'),
+ postRequestElement('yrfailed'),
+ postRequestElement('ytrans'),
+ postRequestElement('allow_url'),
+ ), __FILE__, __LINE__);
+
+ // Get message
+ $message = getMessage('ADMIN_PAYOUT_TYPE_ADDED');
+ } else {