X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fmodules%2Fmember%2Fwhat-stats.php;h=6f740bf7f212efdee773fdef491cd765d136897d;hb=f97a999e0737c0007ae9c3c26dfef49f75a175ac;hp=a5bd35b6e8f2c0c265fd80a9364bc6cf1af72727;hpb=414570c5081d337bb6c28dcf521bd8bca02f69e7;p=mailer.git diff --git a/inc/modules/member/what-stats.php b/inc/modules/member/what-stats.php index a5bd35b6e8..6f740bf7f2 100644 --- a/inc/modules/member/what-stats.php +++ b/inc/modules/member/what-stats.php @@ -10,10 +10,10 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Statistik ueber gesendete Mails * * -------------------------------------------------------------------- * - * $Revision:: 856 $ * - * $Date:: 2009-03-06 20:24:32 +0100 (Fr, 06. Mär 2009) $ * + * $Revision:: $ * + * $Date:: $ * * $Tag:: 0.2.1-FINAL $ * - * $Author:: stelzi $ * + * $Author:: $ * * Needs to be in all Files and every File needs "svn propset * * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * @@ -38,14 +38,14 @@ // Some security stuff... if (!defined('__SECURITY')) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php'; require($INC); } elseif (!IS_MEMBER()) { - LOAD_URL("modules.php?module=index"); + LOAD_URL('modules.php?module=index'); } // Add description as navigation point -ADD_DESCR("member", __FILE__); +ADD_DESCR('member', __FILE__); // Init output $main_content = array(); @@ -55,12 +55,12 @@ $result = SQL_QUERY_ESC("SELECT id, cat_id, payment_id, subject, url, timestamp, FROM `{!_MYSQL_PREFIX!}_pool` WHERE sender=%s AND data_type != 'SEND' ORDER BY timestamp DESC", - array($GLOBALS['userid']), __FILE__, __LINE__); + array(getUserId()), __FILE__, __LINE__); // Are there mails left in pool? if (SQL_NUMROWS($result) > 0) { // Load all orders - $OUT = ""; $SW = 2; + $OUT = ''; $SW = 2; while ($data = SQL_FETCHARRAY($result)) { // Is the ZIP code set? If not, set dashes if (empty($data['zip'])) $data['zip'] = "---"; @@ -90,7 +90,7 @@ if (SQL_NUMROWS($result) > 0) { $main_content['pool'] = LOAD_TEMPLATE("member_pool_table", true, $OUT); } else { // No mails in pool! - $main_content['pool'] = LOAD_TEMPLATE("admin_settings_saved", true, getMessage('MEMBER_NO_MAILS_IN_POOL')); + $main_content['pool'] = LOAD_TEMPLATE('admin_settings_saved', true, getMessage('MEMBER_NO_MAILS_IN_POOL')); } // Free result @@ -102,11 +102,11 @@ $result = SQL_QUERY_ESC("SELECT id, cat_id, payment_id, subject, url, timestamp_ FROM `{!_MYSQL_PREFIX!}_user_stats` WHERE userid=%s ORDER BY timestamp_ordered DESC", - array($GLOBALS['userid']), __FILE__, __LINE__); + array(getUserId()), __FILE__, __LINE__); if (SQL_NUMROWS($result) > 0) { // Mail orders are in pool so we can display them - $OUT = ""; $SW = 2; + $OUT = ''; $SW = 2; while ($data = SQL_FETCHROW($result)) { // Prepare data for the template $content = array( @@ -131,7 +131,7 @@ if (SQL_NUMROWS($result) > 0) { $main_content['stats'] = LOAD_TEMPLATE("member_stats_table", true, $OUT); } else { // No mail orders fond - $main_content['stats'] = LOAD_TEMPLATE("admin_settings_saved", true, getMessage('MEMBER_NO_MAILS_IN_STATS')); + $main_content['stats'] = LOAD_TEMPLATE('admin_settings_saved', true, getMessage('MEMBER_NO_MAILS_IN_STATS')); } // Free result