docker-vulnerable-dvwa/dvwa/logout.php

18 lines
414 B
PHP
Raw Normal View History

2016-12-02 19:19:11 +00:00
<?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' );
?>