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');
}
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.9.26.3504 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.9.26.3505 | Copyright © <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>
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/')) {