mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-06-07 00:47:00 +03:00
Implement auth-autodetection
This commit is contained in:
parent
3097b63e91
commit
b7b62d1c9c
3 changed files with 33 additions and 3 deletions
|
@ -4,6 +4,8 @@ include_once('includes/config.inc.php');
|
|||
include_once('includes/session.inc.php');
|
||||
include_once('includes/misc.inc.php');
|
||||
|
||||
global $errormsg, $blocklogin;
|
||||
|
||||
if (isset($_GET['logout']) or isset($_POST['logout'])) {
|
||||
logout();
|
||||
header("Location: index.php");
|
||||
|
@ -71,7 +73,7 @@ if (!is_logged_in()) {
|
|||
?>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td><input type="submit" name="submit" value="Log me in!"></td>
|
||||
<td><input type="submit" name="submit" value="Log me in!" <?php if ($blocklogin === TRUE)) { echo "disabled"; }; ?>></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" name="formname" value="loginform">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue