- array(
- postRequestParameter('title', $id),
- convertCommaToDot(postRequestParameter('rate', $id)),
- convertCommaToDot(postRequestParameter('min_points' , $id)),
- postRequestParameter('allow', $id),
- bigintval($id)
- ),__FILE__, __LINE__, false));
- }
- }
-
- // Run all SQLs
- runFilterChain('run_sqls');
-
- // Get message
- $message = '{--ADMIN_PAYOUT_ENTRIES_CHANGED--}';
- } else {
- $display = false; //Suppress any other outputs
- $OUT = ''; $SW = 2;
- foreach (postRequestParameter('sel') as $id => $sel) {
- // Load data
- $result = SQL_QUERY_ESC("SELECT type, rate, min_points, allow_url FROM `{?_MYSQL_PREFIX?}_payout_types` WHERE `id`=%s LIMIT 1",
- array(bigintval($id)), __FILE__, __LINE__);
- list($title, $rate, $min_points, $allow) = SQL_FETCHROW($result);
- SQL_FREERESULT($result);
-
- // Prepare data for the row template
- $content = array(
- 'sw' => $SW,
- 'id' => $id,
- 'title' => $title,
- 'rate' => translateComma($rate),
- 'min_points' => translateComma($min_points),
- 'allow' => addSelectionBox('yn', $allow, 'allow[' . $id . ']'),
- );
-
- // Load row template and switch color
- $OUT .= loadTemplate('admin_config_payouts_edit_row', true, $content);
- $SW = 3 - $SW;
+ array(
+ postRequestElement('type', $id),
+ convertCommaToDot(postRequestElement('rate', $id)),
+ convertCommaToDot(postRequestElement('min_points' , $id)),
+ postRequestElement('allow_url', $id),
+ $id
+ ),__FILE__, __LINE__, false));