-if ((isFormSent()) && (postRequestParameterSet('mid'))) {
- // Make mail editable...
- $result = SQL_QUERY_ESC("SELECT
- `id`,`sender` AS `userid`,`subject`,`text`,`url`
-FROM
- `{?_MYSQL_PREFIX?}_pool`
-WHERE
- `id`=%s
-LIMIT 1",
- array(bigintval(postRequestParameter('mid'))), __FILE__, __LINE__);
-
- // Fetch row
- $content = SQL_FETCHARRAY($result);
-
- // Free result
- SQL_FREERESULT($result);
-
- // Load template
- loadTemplate('admin_edit_email', false, $content);
-} elseif (isGetRequestParameterSet('mid')) {
- // Make also this email editable
- $result = SQL_QUERY_ESC("SELECT
- `id`,`sender` AS `userid`,`subject`,`text`,`url`
-FROM
- `{?_MYSQL_PREFIX?}_pool`
-WHERE
- `id`=%s
-LIMIT 1",
- array(bigintval(getRequestParameter('mid'))), __FILE__, __LINE__);
-
- // Fetch row
- $content = SQL_FETCHARRAY($result);
-
- // Free result
- SQL_FREERESULT($result);