]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-stats.php
Mailer project continued:
[mailer.git] / inc / modules / member / what-stats.php
index eda45cfd227d8058ff4dcd9014284a5db6dd5ee0..51b82ba7e5d51aaea674924aed7e0844dd59f4bc 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -37,7 +37,7 @@
 
 // Some security stuff...
 if (!defined('__SECURITY')) {
-       die();
+       exit();
 } elseif (!isMember()) {
        redirectToIndexMemberOnlyModule();
 }
@@ -50,7 +50,15 @@ $main_content = array();
 
 // Load waiting/pending orders
 $result = SQL_QUERY_ESC("SELECT
-       `id`,`cat_id`,`payment_id`,`subject`,`url`,`timestamp`,`target_send`,`data_type`,`zip`
+       `id`,
+       `cat_id`,
+       `payment_id`,
+       `subject`,
+       `url`,
+       `timestamp`,
+       `target_send`,
+       `data_type`,
+       `zip`
 FROM
        `{?_MYSQL_PREFIX?}_pool`
 WHERE
@@ -83,14 +91,22 @@ if (!SQL_HASZERONUMS($result)) {
 SQL_FREERESULT($result);
 
 // Load sent orders
-$result = SQL_QUERY_ESC("SELECT
-       `id`,`cat_id`,`payment_id`,`subject`,`url`,`timestamp_ordered`,`max_rec`,`timestamp_send`,`clicks`
+$result = SQL_QUERY_ESC('SELECT
+       `id`,
+       `cat_id`,
+       `payment_id`,
+       `subject`,
+       `url`,
+       `timestamp_ordered`,
+       `max_rec`,
+       `timestamp_send`,
+       `clicks`
 FROM
        `{?_MYSQL_PREFIX?}_user_stats`
 WHERE
        `userid`=%s
 ORDER BY
-       `timestamp_ordered` DESC",
+       `timestamp_ordered` DESC',
        array(getMemberId()), __FILE__, __LINE__);
 
 if (!SQL_HASZERONUMS($result)) {