diff --git a/template/logout.php b/template/logout.php index 2b4e4df..a6ae166 100644 --- a/template/logout.php +++ b/template/logout.php @@ -1,32 +1,37 @@ . /* * This is the template for the logout page * * Called from * logout.php + * + * Parameters: + * $please (boolean) If true, will show the "Please confirm logout" warning. */ // unuseful when load directly defined( 'BOZ_PHP' ) or die; ?> -

-
+ +

+ +
diff --git a/template/sidebar.php b/template/sidebar.php index bbf6b1d..83a9077 100644 --- a/template/sidebar.php +++ b/template/sidebar.php @@ -1,38 +1,40 @@ . /* * This is the template for the website sidebar * * Called from: * template/footer.php */ // unuseful when load directly defined( 'BOZ_PHP' ) or die; ?>

-

+ false, + ] ) ?> diff --git a/www/logout.php b/www/logout.php index 283bc89..de602df 100644 --- a/www/logout.php +++ b/www/logout.php @@ -1,42 +1,44 @@ . /* * This is the logout page */ // load framework require '../load.php'; // spawn header Header::spawn( [ 'title' => __( "Please confirm logout" ), ] ); // check login if( is_action( 'logout' ) ) { logout(); } // require to be logged, but do not redirect again here otherwise require_permission( 'read', false ); // spawn the logout template -template( 'logout' ); +template( 'logout', [ + 'please' => true, +] ); // spawn footer Footer::spawn();