Refactoring - renamed some defines.
authorNik Okuntseff <support@anuko.com>
Mon, 18 Jul 2016 18:54:49 +0000 (18:54 +0000)
committerNik Okuntseff <support@anuko.com>
Mon, 18 Jul 2016 18:54:49 +0000 (18:54 +0000)
WEB-INF/config.php.dist
WEB-INF/templates/footer.tpl
cf_monthly_quota.php

index cc3d0cd..b0fb342 100644 (file)
@@ -215,9 +215,10 @@ define('AUTH_MODULE', 'db');
 
 // define('AUTH_DEBUG', false); // Note: enabling AUTH_DEBUG breaks redirects as debug output is printed before setting redirect header. Do not enable on production systems.
 
-// team manager can set monthly quota for years between these values:
-define('MONTHLY_QUOTA_YEARS_START', 2010); // if nothing is specified, it falls back to 2010
-define('MONTHLY_QUOTA_YEARS_END', 2031); // if nothing is specified it falls back to 2030
+
+// Team managers can set monthly work hour quota for years between the following  values.
+// define('MONTHLY_QUOTA_YEAR_START', 2010); // If nothing is specified, it falls back to 2015.
+// define('MONTHLY_QUOTA_YEAR_END', 2025); // if nothing is specified it falls back to 2030.
 
 // note input height in time.php
 define('NOTE_INPUT_HEIGHT', '40');
index 5905435..e8f3520 100644 (file)
@@ -12,7 +12,7 @@
       <br>
       <table cellspacing="0" cellpadding="4" width="100%" border="0">
         <tr>
-          <td align="center">&nbsp;Anuko Time Tracker 1.9.26.3503 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+          <td align="center">&nbsp;Anuko Time Tracker 1.9.26.3504 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
             <a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
             <a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
             <a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>
index 19b43bf..9f0f7df 100644 (file)
@@ -12,19 +12,19 @@ if (!ttAccessCheck(right_manage_team)) {
 }
 
 // fallback values
-$yearStart = 2010;
+$yearStart = 2015;
 $yearEnd = 2030;
 
-if (defined('MONTHLY_QUOTA_YEARS_START')){
-  $yearStart = (int)MONTHLY_QUOTA_YEARS_START;
+if (defined('MONTHLY_QUOTA_YEAR_START')){
+  $yearStart = (int)MONTHLY_QUOTA_YEAR_START;
 }
-if (defined('MONTHLY_QUOTA_YEARS_END')){
-  $yearEnd = (int)MONTHLY_QUOTA_YEARS_END;
+if (defined('MONTHLY_QUOTA_YEAR_END')){
+  $yearEnd = (int)MONTHLY_QUOTA_YEAR_END;
 }
 
 // create values for dropdown
 $years = array();
-for ($i=$yearStart; $i < $yearEnd; $i++) { 
+for ($i=$yearStart; $i <= $yearEnd; $i++) {
   array_push($years, array('id'=>$i, 'name'=>$i));
 }