mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-04-18 19:59:30 +03:00
Only run authdb check when user is logged in
This commit is contained in:
parent
059c679193
commit
6ba23a85b8
1 changed files with 6 additions and 0 deletions
|
@ -36,6 +36,9 @@ if (is_logged_in() and isset($_POST['formname']) and $_POST['formname'] === "cha
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>NSEdit!</title>
|
<title>NSEdit!</title>
|
||||||
|
<?php
|
||||||
|
if (is_logged_in()) {
|
||||||
|
?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var reader = new XMLHttpRequest();
|
var reader = new XMLHttpRequest();
|
||||||
var checkFor = "<?php echo $testurl; ?>";
|
var checkFor = "<?php echo $testurl; ?>";
|
||||||
|
@ -54,6 +57,9 @@ if (is_logged_in() and isset($_POST['formname']) and $_POST['formname'] === "cha
|
||||||
}
|
}
|
||||||
reader.send(null);
|
reader.send(null);
|
||||||
</script>
|
</script>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
<link href="jquery-ui/themes/base/all.css" rel="stylesheet" type="text/css"/>
|
<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="jtable/lib/themes/metro/blue/jtable.min.css" rel="stylesheet" type="text/css"/>
|
||||||
<link href="css/base.css" rel="stylesheet" type="text/css"/>
|
<link href="css/base.css" rel="stylesheet" type="text/css"/>
|
||||||
|
|
Loading…
Add table
Reference in a new issue