X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_doubler.php;h=b56224f2cb28ec504f3c0f78195242fc2ec68b22;hb=97c3c45dafd1b10de0e9ec26c889b45a454b2623;hp=ecd2457b4720fdbfdd8f0b68b0a64e83d1e3324a;hpb=4cf9e7903e3d0528650b2c8871b9b9f68e473807;p=mailer.git diff --git a/inc/modules/admin/what-list_doubler.php b/inc/modules/admin/what-list_doubler.php index ecd2457b47..b56224f2cb 100644 --- a/inc/modules/admin/what-list_doubler.php +++ b/inc/modules/admin/what-list_doubler.php @@ -18,6 +18,7 @@ * 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 * * * * This program is free software; you can redistribute it and/or modify * @@ -44,19 +45,19 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { // Add description as navigation point addMenuDescription('admin', __FILE__); -if (!isGetRequestElementSet('mode')) { +if (!isGetRequestParameterSet('mode')) { // Chosse the overview page as default - setRequestGetElement('mode', 'overview'); + setGetRequestParameter('mode', 'overview'); } else { // Set table title automatically - if (!isGetRequestElementSet('select')) setRequestGetElement('select', 'all'); + if (!isGetRequestParameterSet('select')) setGetRequestParameter('select', 'all'); // Prepare header - $content['list_' . strtolower(getRequestElement('mode'))] = getMessage('ADMIN_DOUBLER_LIST_' . strtoupper(getRequestElement('mode')) . '_' . strtoupper(getRequestElement('select')).''); + $content['list_' . strtolower(getRequestParameter('mode'))] = getMessage('ADMIN_DOUBLER_LIST_' . strtoupper(getRequestParameter('mode')) . '_' . strtoupper(getRequestParameter('select')).''); } // Load data for the template -switch (getRequestElement('mode')) { +switch (getRequestParameter('mode')) { case 'already': // Already payed out points break; @@ -75,7 +76,7 @@ switch (getRequestElement('mode')) { if ($cnt > 0) { // Something was payed out $sumAlready += $cnt; - $content['already_direct_link'] = "".$cnt.""; + $content['already_direct_link'] = '' . $cnt . ''; } // END - if $cnt = countSumTotalData('Y','doubler','id','completed',true, " AND `is_ref`='Y'"); @@ -83,7 +84,7 @@ switch (getRequestElement('mode')) { if ($cnt > 0) { // Something was payed out $sumAlready += $cnt; - $content['already_ref_link'] = "".$cnt.""; + $content['already_ref_link'] = '' . $cnt . ''; } // END - if // And the same for waiting pouts (direct and referal) @@ -92,7 +93,7 @@ switch (getRequestElement('mode')) { if ($cnt > 0) { // Something was payed out $sumWaiting += $cnt; - $content['waiting_direct_link'] = "".$cnt.""; + $content['waiting_direct_link'] = '' . $cnt . ''; } // END - if $cnt = countSumTotalData('N','doubler','id','completed',true, " AND `is_ref`='Y'"); @@ -100,19 +101,19 @@ switch (getRequestElement('mode')) { if ($cnt > 0) { // Something was payed out $sumWaiting += $cnt; - $content['waiting_ref_link'] = "".$cnt.""; + $content['waiting_ref_link'] = '' . $cnt . ''; } // 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_' . getRequestElement('mode'), false, $content); +loadTemplate('admin_list_doubler_' . getRequestParameter('mode'), false, $content); // [EOF] ?>