Added php info route

This commit is contained in:
SteamPixel 2020-01-10 23:13:53 +01:00
parent d241420287
commit 8e5fb1157a

View File

@ -1,4 +1,5 @@
<?php
function navi() {
echo <<<EOD
Navigation:
@ -11,6 +12,7 @@ function navi() {
<li><a href="/contact-form">contact form</a></li>
<li><a href="/get-post-sample">get+post example</a></li>
<li><a href="/test.html">test.html</a></li>
<li><a href="/phpinfo">PHP Info</a></li>
<li><a href="/aTrailingSlashDoesNotMatter">aTrailingSlashDoesNotMatter</a></li>
<li><a href="/aTrailingSlashDoesNotMatter/">aTrailingSlashDoesNotMatter/</a></li>
<li><a href="/theCaseDoesNotMatter">theCaseDoesNotMatter</a></li>
@ -43,6 +45,14 @@ Route::add('/test.html', function() {
echo 'Hello from test.html';
});
// This route is for debugging only
// It simply prints out some php infos
// Do not use this route on production systems!
Route::add('/phpinfo', function() {
navi();
phpinfo();
});
// Post route example
Route::add('/contact-form', function() {
navi();