commented update.php

This commit is contained in:
Thies Mueller 2021-01-12 17:12:27 +01:00
parent a1d5cb2a67
commit ee804b16a3

View File

@ -1,10 +1,15 @@
<?php
include 'backgroundupdate.php';
echo "freshly updated the session data<br />";
if(isset($_GET['page'])) {
echo "Going to ".$_GET['page'];
echo '<meta http-equiv="refresh" content="0; URL='.$_GET['page'].'">';
} else {
die();
/*
This is just a little helper script if you dont want to include a whole backgroundupdate in the page, but after the action you want to go over the update path.
example: update.php?page=start.php does an update of your session and then redirects you directly to start.php
*/
include 'backgroundupdate.php'; //getting the real update script in the background
echo "freshly updated the session data<br />"; //printing a short message
if(isset($_GET['page'])) { //checks if "?page=" is set in the url
echo "Going to ".$_GET['page']; //printing the next hop
echo '<meta http-equiv="refresh" content="0; URL='.$_GET['page'].'">'; //going to the page specified in the url.
} else { //if there isn't anything in the header, just die already!
die();
}
?>