]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_bonus.php
Performance hacks, encapsulation and more EL code usage:
[mailer.git] / inc / modules / admin / what-config_bonus.php
index 8e95c3aaacf065efeed1b74eabd8370a9625a339..e7b44c3eb760618595d46870db939f14e5482d56 100644 (file)
@@ -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                    *
@@ -43,7 +41,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 } // END - if
 
 // Add description as navigation point
-addMenuDescription('admin', __FILE__);
+addYouAreHereLink('admin', __FILE__);
 
 if (isFormSent()) {
        // Replace german decimal commas to computer decimal dots
@@ -85,21 +83,21 @@ if (isFormSent()) {
 
        // Generate list
        $OUT = '<ol start="2">';
-       $cnt = '0';
+       $count = '0';
        foreach ($RANKS as $k => $rate) {
                if (!empty($rate)) {
                        // Print only when something is in
                        $OUT .= '<li><input type="text" name="rate[' . ($k + 2) . ']" class="form_field" size="4" maxlength="7" value="' . $rate . '" /> <div class="notice">({?POINTS?})</div></li>';
                } // END - if
-               $cnt++;
+               $count++;
        } // END - foreach
 
        // Maxmium entries
        $max = 10;
-       if ($cnt >= 8) $max = $cnt+3;
+       if ($count >= 8) $max = $count+3;
 
        // Add more empty fields
-       for ($i = $cnt; $i < $max; $i++) {
+       for ($i = $count; $i < $max; $i++) {
                $OUT .= '  <li><input type="text" name="rate[' . ($i+2) . ']" class="form_field" size="4" maxlength="7" /> <div class="notice">({?POINTS?})</div></li>';
        } // END - for
        $OUT .= '</ol>';