X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-order.php;h=f891d0609fa8f7d36799e234691f702d188df50f;hb=1c62a6c2a4ed2bb170e0f1888899625e67a27947;hp=853bffc391760a175b6a3fe0c7dd8ae9f94ae6d3;hpb=4b2090a4cedf39aafa708025c493685fab1036b5;p=mailer.git diff --git a/inc/modules/member/what-order.php b/inc/modules/member/what-order.php index 853bffc391..f891d0609f 100644 --- a/inc/modules/member/what-order.php +++ b/inc/modules/member/what-order.php @@ -14,8 +14,6 @@ * $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 * @@ -389,11 +387,11 @@ LIMIT 1", // No enougth points left! $url = 'modules.php?module=login&what=order&code=' . getCode('MORE_POINTS'); } - } else { + } else { // Ordered more mails than he can send in this category $url = 'modules.php?module=login&what=order&code=' . getCode('NO_RECS_LEFT'); } - } + } // END - if } elseif (postRequestParameter('receiver') == '0') { // Not enougth receivers selected $url = 'modules.php?module=login&what=order&code=' . getCode('MORE_RECEIVERS1'); @@ -467,7 +465,7 @@ LIMIT 1", array(bigintval($ucat)), __FILE__, __LINE__); // Fetch entry - list($cnt) = SQL_FETCHROW($result); + list($cnt) = SQL_FETCHROW($result_holiday); // Free memory SQL_FREERESULT($result_holiday); @@ -528,7 +526,7 @@ LIMIT 1", SQL_FREERESULT($result); // Output user's points - $content['total'] = translateComma($total); + $content['total'] = $total; // Check how many mail orders he has placed today and how many he's allowed to send switch (getConfig('order_max_full')) { @@ -581,7 +579,7 @@ LIMIT 1", } else { // Default output for that your members don't forget it... $content['url'] = 'http://'; - $content['target_send'] = getConfig('order_min'); + $content['target_send'] = '{?order_min?}'; $content['subject'] = '{--ORDER_DEFAULT_SUBJECT--}'; $content['text'] = '{--ORDER_DEFAULT_TEXT--}'; } @@ -601,12 +599,11 @@ LIMIT 1", // Mail type $content['type_selection'] = ''; foreach ($types as $key => $value) { - $P = translateComma($types[$key][1]); if (is_array($value)) { // Output option line $content['type_selection'] .= ' '; } // END - if } // END - foreach @@ -662,15 +659,15 @@ LIMIT 1", } } else { // No mail types defined - loadTemplate('admin_settings_saved', false, '{--MEMBER_NO_PAYMENTS--}'); + loadTemplate('admin_settings_saved', false, '{--MEMBER_NO_PAYMENTS--}'); } } else { // No points left - loadTemplate('admin_settings_saved', false, '{--MEMBER_NO_POINTS--}'); + loadTemplate('admin_settings_saved', false, '{--MEMBER_NO_POINTS--}'); } } else { // No cateogries are defined yet - loadTemplate('admin_settings_saved', false, '{--MEMBER_NO_CATEGORIES--}'); + loadTemplate('admin_settings_saved', false, '{--MEMBER_NO_CATEGORIES--}'); } } else { // Please confirm some mails first