Added ttHttpRequest::isGet() convenience function.
authorNik Okuntseff <support@anuko.com>
Tue, 19 Jul 2016 19:23:13 +0000 (19:23 +0000)
committerNik Okuntseff <support@anuko.com>
Tue, 19 Jul 2016 19:23:13 +0000 (19:23 +0000)
WEB-INF/lib/html/HttpRequest.class.php
WEB-INF/templates/footer.tpl
dbinstall.php

index cea6122..cd66a8c 100644 (file)
@@ -32,7 +32,12 @@ class ttHttpRequest {
     return isset( $_SERVER['REQUEST_METHOD'] ) ? $_SERVER['REQUEST_METHOD'] : false;
   }
 
-  // The isPost function determines if a request method is POST.
+  // The isGet function determines if a request method is a GET.
+  function isGet() {
+    return ($this->getMethod() == 'GET');
+  }
+
+  // The isPost function determines if a request method is a POST.
   function isPost() {
     return ($this->getMethod() == 'POST');
   }
index e8f3520..f00c6c8 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.3504 | 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.3505 | 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 32540fd..a6aab22 100755 (executable)
@@ -42,8 +42,8 @@ function setChange($sql) {
     print "successful update<br>\n";
 }
 
-if (!$request->isPost()) {
-  echo('<h2>Environment check</h2>');
+if ($request->isGet()) {
+  echo('<h2>Environment Checks</h2>');
 
   // Check if WEB-INF/templates_c dir is writable.
   if (is_writable(APP_DIR.'/WEB-INF/templates_c/')) {