docker-vulnerable-dvwa/dvwa/logout.php
2016-12-02 17:19:11 -02:00

18 lines
414 B
PHP

<?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' );
?>