-$result_main = SQL_QUERY("SELECT `id`,`sender`,`subject`,`payment_id` AS `payment`,`timestamp`,`url`,`target_send`,`cat_id` AS `category`
-FROM `{!_MYSQL_PREFIX!}_pool`
-WHERE `data_type`='ADMIN'
-ORDER BY `timestamp` ASC", __FILE__, __LINE__);
-
-if ((SQL_NUMROWS($result_main) > 0) || (REQUEST_ISSET_POST('lock'))) {
- // Count checked checkboxes
- $SEL = 0;
- if (REQUEST_ISSET_POST('sel')) {
- // Are there checked boxes?
- if (count(REQUEST_POST('sel')) > 0) {
- // Count now... We use an own function for now
- $SEL = countPostSelection();
- } // END - if
- } // END - if
-
- if (REQUEST_ISSET_POST('accept')) {
- if ($SEL > 0) {
- // Accept mail orders
- foreach (REQUEST_POST('sel') as $id => $value) {
- // Secure ID number
- $id = bigintval($id);
-
- // Order placed in queue...
- $result = SQL_QUERY_ESC("SELECT
- po.url, po.subject, po.sender, pay.payment, po.payment_id