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`
+ `type`,`rate`,`min_points`,`from_account`,`from_pass`,`engine_url`,`engine_ret_ok`,`engine_ret_failed`,`pass_enc`,`allow_url`
) VALUES (
'%s', %s, %s,'%s','%s','%s','%s','%s','%s','%s'
)",
$OUT = '';
foreach (postRequestParameter('sel') as $id => $sel) {
// Load data
- $result = SQL_QUERY_ESC("SELECT `id`, `type`, `rate`, `min_points`, `allow_url` FROM `{?_MYSQL_PREFIX?}_payout_types` WHERE `id`=%s LIMIT 1",
+ $result = SQL_QUERY_ESC("SELECT `id`,`type`,`rate`,`min_points`,`allow_url` FROM `{?_MYSQL_PREFIX?}_payout_types` WHERE `id`=%s LIMIT 1",
array(bigintval($id)), __FILE__, __LINE__);
$content = SQL_FETCHARRAY($result);
SQL_FREERESULT($result);
// Load main template
loadTemplate('admin_edit_payouts', false, $OUT);
-} elseif ((isFormSent('change')) && (ifPostContainsSelections())) {
+} elseif ((isFormSent('do_edit')) && (ifPostContainsSelections())) {
// Change them now
// Init SQLs
initSqls();
$id = bigintval($id);
// Load data
- $result = SQL_QUERY_ESC("SELECT `id`, `type`, `rate`, `min_points` FROM `{?_MYSQL_PREFIX?}_payout_types` WHERE `id`=%s LIMIT 1",
+ $result = SQL_QUERY_ESC("SELECT `id`,`type`,`rate`,`min_points` FROM `{?_MYSQL_PREFIX?}_payout_types` WHERE `id`=%s LIMIT 1",
array($id), __FILE__, __LINE__);
$content = SQL_FETCHARRAY($result);
SQL_FREERESULT($result);
// Load main template
loadTemplate('admin_delete_payouts', false, $OUT);
-} elseif ((isFormSent('remove')) && (ifPostContainsSelections())) {
+} elseif ((isFormSent('do_delete')) && (ifPostContainsSelections())) {
// Init SQLs
initSqls();
// Payout types
$result_type = SQL_QUERY("SELECT
- `id`, `type`, `rate`, `min_points`, `from_account`
+ `id`,`type`,`rate`,`min_points`,`from_account`
FROM
`{?_MYSQL_PREFIX?}_payout_types`
ORDER BY