X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_doubler.php;h=9cb700c4d89963bd331c517c73e2a0812455f09e;hp=0bf30c0e8ed3e1d8df59b61fb5e6bc56681cce7c;hb=cd7d344ea7007cfa20413acd3e03e50f0ab86d86;hpb=f2aeaab0cd313b2eeb151642455ed558f6b186dc
diff --git a/inc/modules/admin/what-list_doubler.php b/inc/modules/admin/what-list_doubler.php
index 0bf30c0e8e..9cb700c4d8 100644
--- a/inc/modules/admin/what-list_doubler.php
+++ b/inc/modules/admin/what-list_doubler.php
@@ -14,12 +14,10 @@
* $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 *
- * For more information visit: http://www.mxchange.org *
+ * Copyright (c) 2009 - 2013 by Mailer Developer Team *
+ * For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
@@ -43,21 +41,23 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
} // END - if
// Add description as navigation point
-addMenuDescription('admin', __FILE__);
+addYouAreHereLink('admin', __FILE__);
-if (!isGetRequestParameterSet('mode')) {
+if (!isGetRequestElementSet('do')) {
// Chosse the overview page as default
- setGetRequestParameter('mode', 'overview');
+ setGetRequestElement('do', 'overview');
} else {
// Set table title automatically
- if (!isGetRequestParameterSet('select')) setGetRequestParameter('select', 'all');
+ if (!isGetRequestElementSet('select')) {
+ setGetRequestElement('select', 'all');
+ } // END - if
// Prepare header
- $content['list_' . strtolower(getRequestParameter('mode'))] = '{--ADMIN_DOUBLER_LIST_' . strtoupper(getRequestParameter('mode')) . '_' . strtoupper(getRequestParameter('select')) . '--}';
+ $content['list_' . strtolower(getRequestElement('do'))] = strtoupper('{--ADMIN_DOUBLER_LIST_' . getRequestElement('do') . '_' . getRequestElement('select') . '--}');
}
// Load data for the template
-switch (getRequestParameter('mode')) {
+switch (getRequestElement('do')) {
case 'already': // Already payed out points
break;
@@ -70,50 +70,50 @@ switch (getRequestParameter('mode')) {
// Init sums
$sumAlready = '0'; $sumWaiting = '0';
- // Number of direct already payouts and referal
- $cnt = countSumTotalData('Y','doubler','id','completed',true, " AND `is_ref`='N'");
+ // Number of direct already payouts and referral
+ $count = countSumTotalData('Y', 'doubler', 'id', 'completed', TRUE, " AND `is_ref`='N'");
- if ($cnt > 0) {
+ if ($count > 0) {
// Something was payed out
- $sumAlready += $cnt;
- $content['already_direct_link'] = '' . $cnt . '';
+ $sumAlready += $count;
+ $content['already_direct_link'] = '' . $count . '';
} // END - if
- $cnt = countSumTotalData('Y','doubler','id','completed',true, " AND `is_ref`='Y'");
+ $count = countSumTotalData('Y', 'doubler', 'id', 'completed', TRUE, " AND `is_ref`='Y'");
- if ($cnt > 0) {
+ if ($count > 0) {
// Something was payed out
- $sumAlready += $cnt;
- $content['already_ref_link'] = '' . $cnt . '';
+ $sumAlready += $count;
+ $content['already_ref_link'] = '' . $count . '';
} // END - if
- // And the same for waiting pouts (direct and referal)
- $cnt = countSumTotalData('N','doubler','id','completed',true, " AND `is_ref`='N'");
+ // And the same for waiting pouts (direct and referral)
+ $count = countSumTotalData('N', 'doubler', 'id', 'completed', TRUE, " AND `is_ref`='N'");
- if ($cnt > 0) {
+ if ($count > 0) {
// Something was payed out
- $sumWaiting += $cnt;
- $content['waiting_direct_link'] = '' . $cnt . '';
+ $sumWaiting += $count;
+ $content['waiting_direct_link'] = '' . $count . '';
} // END - if
- $cnt = countSumTotalData('N','doubler','id','completed',true, " AND `is_ref`='Y'");
+ $count = countSumTotalData('N', 'doubler', 'id', 'completed', TRUE, " AND `is_ref`='Y'");
- if ($cnt > 0) {
+ if ($count > 0) {
// Something was payed out
- $sumWaiting += $cnt;
- $content['waiting_ref_link'] = '' . $cnt . '';
+ $sumWaiting += $count;
+ $content['waiting_ref_link'] = '' . $count . '';
} // END - if
// Links for all
- $content['already_all_link'] = '' . $sumAlready . '';
- $content['waiting_all_link'] = '' . $sumWaiting . '';
+ $content['already_all_link'] = '' . $sumAlready . '';
+ $content['waiting_all_link'] = '' . $sumWaiting . '';
// All data is loaded here...
break;
} // END - switch
// Load mode template
-loadTemplate('admin_list_doubler_' . getRequestParameter('mode'), false, $content);
+loadTemplate('admin_list_doubler_' . getRequestElement('do'), FALSE, $content);
// [EOF]
?>