]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/what-mediadata.php
New wrapper functions introduced, TODOs.txt updated
[mailer.git] / inc / modules / guest / what-mediadata.php
index 733327beeba47653b71eaaceb1b70f322d2a8cdc..25ef23425dfc6bf629b0949a8738e7fe4b9d16f9 100644 (file)
  * $Date::                                                            $ *
  * $Tag:: 0.2.1-FINAL                                                 $ *
  * $Author::                                                          $ *
- * Needs to be in all Files and every File needs "svn propset           *
- * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -48,10 +46,10 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 // Add description as navigation point
-addMenuDescription('guest', __FILE__);
+addYouAreHereLink('guest', __FILE__);
 
 if ((!isExtensionActive('mediadata')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('mediadata'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('mediadata'));
        return;
 } // END - if
 
@@ -126,14 +124,14 @@ $content['user_links'] = abs($sent - $clicks);
 
 $clr = '0.00000';
 if ($sent > 0) $clr = $clicks / $sent * 100;
-$content['_clr'] = translateComma($clr) . '%';
+$content['_clr'] = $clr;
 
 // Load jackpot
 $jackpot = '0';
 if (isExtensionActive('jackpot')) $jackpot = getJackpotPoints();
 
 if (empty($jackpot)) $jackpot = '0';
-$content['jackpot'] = translateComma($jackpot);
+$content['jackpot'] = $jackpot;
 
 // Total referal link clicks, total logins
 $result = SQL_QUERY('SELECT
@@ -150,7 +148,7 @@ if (empty($points)) $points = '0';
 if (empty($ref))    $ref    = '0';
 if (empty($logins)) $logins = '0';
 
-$content['total_points']    = translateComma($points);
+$content['total_points']    = $points;
 $content['total_refclicks'] = $ref;
 $content['total_logins']    = $logins;
 
@@ -188,7 +186,7 @@ if (isExtensionActive('beg')) {
                'value' => countSumTotalData('0', 'user_data', 'beg_clicks', 'userid', false, ' AND `beg_clicks` > 0')
        );
        $OUT_EXTRA .= loadTemplate('mediadata_extra_row', true, $data);
-}
+} // END - if
 
 if (isExtensionActive('doubler')) {
        // Add header
@@ -217,7 +215,7 @@ if (isExtensionActive('doubler')) {
                'value' => countSumTotalData('N','doubler','id','completed', false, ' AND `points` > 0')
        );
        $OUT_SPECIAL .= loadTemplate('mediadata_extra_row', true, $data);
-}
+} // END - if
 
 if (isExtensionActive('holiday')) {
        // Total holiday requests
@@ -240,7 +238,7 @@ WHERE
                'value' => $holiday
        );
        $OUT_USER .= loadTemplate('mediadata_extra_row', true, $data);
-}
+} // END - if
 
 if (isExtensionActive('transfer')) {
        // Statistics for points transfers