X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fmodules%2Fadmin%2Fwhat-list_doubler.php;h=b031b6ff0dcf049b32b0b304abd9d6fd7b3c19b1;hb=fb573d4c3d981d52fd969a6d7167d8dc839be688;hp=03041609c3d15aa78e1961f087190b5a7481e328;hpb=c8d76610eb94093d4eed4fcd8a6cb72e74c8f6d8;p=mailer.git
diff --git a/inc/modules/admin/what-list_doubler.php b/inc/modules/admin/what-list_doubler.php
index 03041609c3..b031b6ff0d 100644
--- a/inc/modules/admin/what-list_doubler.php
+++ b/inc/modules/admin/what-list_doubler.php
@@ -16,8 +16,8 @@
* $Author:: $ *
* -------------------------------------------------------------------- *
* 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 - 2011 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 *
@@ -41,23 +41,23 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
} // END - if
// Add description as navigation point
-addMenuDescription('admin', __FILE__);
+addYouAreHereLink('admin', __FILE__);
-if (!isGetRequestParameterSet('mode')) {
+if (!isGetRequestElementSet('mode')) {
// Chosse the overview page as default
- setGetRequestParameter('mode', 'overview');
+ setGetRequestElement('mode', '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'))] = strtoupper('{--ADMIN_DOUBLER_LIST_' . getRequestParameter('mode') . '_' . getRequestParameter('select') . '--}');
+ $content['list_' . strtolower(getRequestElement('mode'))] = strtoupper('{--ADMIN_DOUBLER_LIST_' . getRequestElement('mode') . '_' . getRequestElement('select') . '--}');
}
// Load data for the template
-switch (getRequestParameter('mode')) {
+switch (getRequestElement('mode')) {
case 'already': // Already payed out points
break;
@@ -71,37 +71,37 @@ switch (getRequestParameter('mode')) {
$sumAlready = '0'; $sumWaiting = '0';
// Number of direct already payouts and referal
- $cnt = countSumTotalData('Y','doubler','id','completed',true, " AND `is_ref`='N'");
+ $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'");
+ $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
@@ -113,7 +113,7 @@ switch (getRequestParameter('mode')) {
} // END - switch
// Load mode template
-loadTemplate('admin_list_doubler_' . getRequestParameter('mode'), false, $content);
+loadTemplate('admin_list_doubler_' . getRequestElement('mode'), false, $content);
// [EOF]
?>