// Form sent or anything else? ;-)
if ((isFormSent()) && (isPostRequestElementSet('mid'))) {
// Make mail editable...
- $result = SQL_QUERY_ESC("SELECT
- `id`,`sender` AS `userid`,`subject`,`text`,`url`
+ $result = SQL_QUERY_ESC('SELECT
+ `id`,
+ `sender` AS `userid`,
+ `subject`,
+ `text`,
+ `url`
FROM
`{?_MYSQL_PREFIX?}_pool`
WHERE
`id`=%s
-LIMIT 1",
+LIMIT 1',
array(bigintval(postRequestElement('mid'))), __FILE__, __LINE__);
// Fetch row
SQL_FREERESULT($result);
// Load template
- loadTemplate('admin_edit_email', false, $content);
+ loadTemplate('admin_edit_email', FALSE, $content);
} elseif (isGetRequestElementSet('mid')) {
// Make also this email editable
- $result = SQL_QUERY_ESC("SELECT
- `id`,`sender` AS `userid`,`subject`,`text`,`url`
+ $result = SQL_QUERY_ESC('SELECT
+ `id`,
+ `sender` AS `userid`,
+ `subject`,
+ `text`,
+ `url`
FROM
`{?_MYSQL_PREFIX?}_pool`
WHERE
`id`=%s
-LIMIT 1",
+LIMIT 1',
array(bigintval(getRequestElement('mid'))), __FILE__, __LINE__);
// Fetch row
SQL_FREERESULT($result);
// Load template
- loadTemplate('admin_edit_email', false, $content);
+ loadTemplate('admin_edit_email', FALSE, $content);
} elseif (isGetRequestElementSet('bid')) {
// Make also this email editable
- $result = SQL_QUERY_ESC("SELECT
- `id`,`subject`,`text`,`url`
+ $result = SQL_QUERY_ESC('SELECT
+ `id`,
+ `subject`,
+ `text`,
+ `url`
FROM
`{?_MYSQL_PREFIX?}_bonus`
WHERE
`id`=%s
-LIMIT 1",
+LIMIT 1',
array(bigintval(getRequestElement('bid'))), __FILE__, __LINE__);
// Fetch row
SQL_FREERESULT($result);
// Load template
- loadTemplate('admin_edit_bonus_email', false, $content);
+ loadTemplate('admin_edit_bonus_email', FALSE, $content);
} elseif (isFormSent('save')) {
// Save changes
if (isPostRequestElementSet('mid')) {
} else {
// Query the pool
$result = SQL_QUERY('SELECT
- `id`,`sender` AS `userid`,`subject`,`payment_id`,`cat_id`
+ `id`,
+ `sender` AS `userid`,
+ `subject`,
+ `payment_id`,
+ `cat_id`
FROM
`{?_MYSQL_PREFIX?}_pool`
ORDER BY
$OUT = '';
while ($content = SQL_FETCHARRAY($result)) {
// Load row template and switch colors
- $OUT .= loadTemplate('admin_edit_email_row', true, $content);
+ $OUT .= loadTemplate('admin_edit_email_row', TRUE, $content);
} // END - while
// Free memory
SQL_FREERESULT($result);
// Load email template
- loadTemplate('admin_edit_email_select', false, $OUT);
+ loadTemplate('admin_edit_email_select', FALSE, $OUT);
} else {
// No mail orders left in pool
displayMessage('{--ADMIN_NO_MAILS_IN_POOL--}');