YaWK  24.1
Yet another WebKit
logout.php
Go to the documentation of this file.
1 <?php
2 /* logout.php
3  * call logout method and tell em goodbye
4  */
5 
6 use YAWK\alert;
7 use YAWK\backend;
8 use YAWK\db;
9 use YAWK\language;
10 use YAWK\user;
11 
12 /** @var $db db */
13 /** @var $lang language */
14 if (!isset($user))
15 {
16  $user = new user($db);
17 }
18  $user->logout($db);
19  backend::drawContentWrapper();
20  alert::draw("success", "$lang[THANK_YOU]&nbsp;&nbsp;$_SESSION[username]! ","$lang[LOGOUT_MSG]", "","8000");
21  backend::setTimeout("index.php","1600");
Throws a fancy Bootstrap Alert (success, info, warning or danger)
Definition: alert.php:19
Backend class serves a few useful functions for the admin backend.
Definition: backend.php:27
Mysqli database class; returns db connection object.
Definition: db.php:16
The language class - support multilingual backend.
Definition: language.php:17
The default user class. Provide all functions to handle the user object.
Definition: user.php:17