Commit 8da504bb authored by Ryan Wade's avatar Ryan Wade

Bug fix: fixed problem with infinite redirect when admin.php?id=-2 was called....

Bug fix: fixed problem with infinite redirect when admin.php?id=-2 was called.  because the admin requires authentication, the page would continuously redirect even though it was the login screen.  only index.php?id=-2 is supposed to be used so this was changed in the link definitions.  admin.php?id=-2 now also redirects to index.php?id=-2 which ends the look.

The fix was to add ./ infront of ?id=-2 to make ./?id=-2 as just putting ?id=-2 performs a get request on the current file
parent 93873782
<?php
include "./viewpage.php";
$pageview = new ViewPage(true, "?id=-2", "admin.php", 2, "Admin Panel");
$pageview = new ViewPage(true, "./?id=-2", "./admin.php", 2, "Admin Panel");
$pageview->render();
?>
\ No newline at end of file
<?php
include "./viewpage.php";
$pageview = new ViewPage(false, "?id=-2", "", 0, null);
$pageview = new ViewPage(false, "./?id=-2", "./", 0, null);
$pageview->render();
?>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment