Merge pull request #82 from narspt/patch-1

don't use location.reload() if there is a 'do' GET request
pull/85/head
LX1IQ 8 years ago committed by GitHub
commit 4b4658f8c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -98,7 +98,7 @@ else {
var PageRefresh; var PageRefresh;
function ReloadPage() {'; function ReloadPage() {';
if ($_SERVER['REQUEST_METHOD'] === 'POST') { if (($_SERVER['REQUEST_METHOD'] === 'POST') || isset($_GET['do'])) {
echo ' echo '
document.location.href = "./index.php'; document.location.href = "./index.php';
if (isset($_GET['show'])) { if (isset($_GET['show'])) {

@ -110,7 +110,7 @@ if ($CallingHome['Active']) {
var PageRefresh; var PageRefresh;
function ReloadPage() {'; function ReloadPage() {';
if ($_SERVER['REQUEST_METHOD'] === 'POST') { if (($_SERVER['REQUEST_METHOD'] === 'POST') || isset($_GET['do'])) {
echo ' echo '
document.location.href = "./index.php'; document.location.href = "./index.php';
if (isset($_GET['show'])) { if (isset($_GET['show'])) {

Loading…
Cancel
Save

Powered by TurnKey Linux.