Only run authdb check when user is logged in

This commit is contained in:
Marvin Gaube 2020-03-01 20:15:14 +01:00
parent 059c679193
commit 6ba23a85b8

View file

@ -36,6 +36,9 @@ if (is_logged_in() and isset($_POST['formname']) and $_POST['formname'] === "cha
<html>
<head>
<title>NSEdit!</title>
<?php
if (is_logged_in()) {
?>
<script type="text/javascript">
var reader = new XMLHttpRequest();
var checkFor = "<?php echo $testurl; ?>";
@ -54,6 +57,9 @@ if (is_logged_in() and isset($_POST['formname']) and $_POST['formname'] === "cha
}
reader.send(null);
</script>
<?php
}
?>
<link href="jquery-ui/themes/base/all.css" rel="stylesheet" type="text/css"/>
<link href="jtable/lib/themes/metro/blue/jtable.min.css" rel="stylesheet" type="text/css"/>
<link href="css/base.css" rel="stylesheet" type="text/css"/>