* *
* -------------------------------------------------------------------- *
* File : what-list_doubler.php *
* *
* -------------------------------------------------------------------- *
* File : what-list_doubler.php *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
* *
* 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 *
* *
* 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 *
case 'already': // Already payed out points
break;
case 'overview': // General overview page
// Prepare links
foreach (array('already_direct','already_ref','waiting_direct','waiting_ref') as $entry) {
case 'already': // Already payed out points
break;
case 'overview': // General overview page
// Prepare links
foreach (array('already_direct','already_ref','waiting_direct','waiting_ref') as $entry) {
- // 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'");
- $cnt = countSumTotalData('Y','doubler','id','completed',true, " AND `is_ref`='Y'");
+ $count = countSumTotalData('Y', 'doubler', 'id', 'completed', TRUE, " AND `is_ref`='Y'");
- // 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'");
- $cnt = countSumTotalData('N','doubler','id','completed',true, " AND `is_ref`='Y'");
+ $count = countSumTotalData('N', 'doubler', 'id', 'completed', TRUE, " AND `is_ref`='Y'");
- $content['already_all_link'] = "<a href=\"{?URL?}/modules.php?module=admin&what=list_doubler&mode=already&select=all\">".$sumAlready."</a>";
- $content['waiting_all_link'] = "<a href=\"{?URL?}/modules.php?module=admin&what=list_doubler&mode=waiting&select=all\">".$sumWaiting."</a>";
+ $content['already_all_link'] = '<a href="{%url=modules.php?module=admin&what=list_doubler&do=already&select=all%}">' . $sumAlready . '</a>';
+ $content['waiting_all_link'] = '<a href="{%url=modules.php?module=admin&what=list_doubler&do=waiting&select=all%}">' . $sumWaiting . '</a>';