first commit
This commit is contained in:
parent
985a5c928c
commit
f40a84879c
551 changed files with 72374 additions and 24 deletions
17
dvwa/logout.php
Normal file
17
dvwa/logout.php
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
define( 'DVWA_WEB_PAGE_TO_ROOT', '' );
|
||||
require_once DVWA_WEB_PAGE_TO_ROOT . 'dvwa/includes/dvwaPage.inc.php';
|
||||
|
||||
dvwaPageStartup( array( 'phpids' ) );
|
||||
|
||||
if( !dvwaIsLoggedIn() ) { // The user shouldn't even be on this page
|
||||
// dvwaMessagePush( "You were not logged in" );
|
||||
dvwaRedirect( 'login.php' );
|
||||
}
|
||||
|
||||
dvwaLogout();
|
||||
dvwaMessagePush( "You have logged out" );
|
||||
dvwaRedirect( 'login.php' );
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue