]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/what-mediadata.php
mailer project continued:
[mailer.git] / inc / modules / guest / what-mediadata.php
index fea217d32f8276b7d95057b8e0ee0264bb35fa04..f008903b9ed00273546bd0d497d1e5c9cb109010 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();
 } // END - if
 
 // Add description as navigation point
@@ -59,13 +59,13 @@ $content['user_locked']      = getTotalLockedUser();
 $content['user_count']       = ($content['user_confirmed'] + $content['user_unconfirmed'] + $content['user_locked']);
 
 // Start of this exchange
-$content['mt_start'] = generateDateTime(getConfig('mt_start'), 3);
+$content['mt_start'] = generateDateTime(getMtStart(), '3');
 
 // Project timestamp when number of members are reached
 $PROJECTED = '0';
 if ($content['user_count'] > 0) {
        // @TODO Find a better formular than this one
-       $PROJECTED = round((time() - getConfig('mt_start')) / $content['user_count'] * getConfig('mt_stage') + getConfig('mt_start'));
+       $PROJECTED = round((time() - getMtStart()) / $content['user_count'] * getConfig('mt_stage') + getMtStart());
 } // END - if
 
 // Generate timestamp
@@ -90,7 +90,11 @@ $content['max'] = countSumTotalData('CONFIRMED', 'user_data', 'max_mails', 'stat
 $content['rec'] = countSumTotalData('CONFIRMED', 'user_data', 'receive_mails', 'status', false, " AND `receive_mails` > 0");
 
 // Initial lots of variables
-$bmails = '0'; $sent = '0'; $max = '0'; $rec = '0'; $clicks = '0';
+$bmails = '0';
+$sent   = '0';
+$max    = '0';
+$rec    = '0';
+$clicks = '0';
 
 // Mail orders (only current)
 $nmails = getMediadataEntry('normal_orders');