";
// echo "window.location.replace(\"./home.html\")";
// echo "";
// }
$thisPage = "Admin";
if( !isset($_SESSION["cursession"]) ) {
echo "";
exit;
}
$thisDate = date_create();
$thisTimestamp = date_timestamp_get($thisDate);
if( isset($_SESSION["timestamp"]) ) {
$oldTimestamp=$_SESSION["timestamp"];
$diff = $thisTimestamp - $oldTimestamp;
if( $diff >= (60*5) ) {
echo "";
exit;
}
echo "diff=" . $diff . "
";
}
$_SESSION["timestamp"] = $thisTimestamp;
var_dump($_SESSION);
?>
This will deleted the currently existing website database, if it exists. This will create a new website database and all associated tables.
Be sure this is what you want to do, it is irreversible!