Automad
 All Classes Functions Variables Pages
logout.php
1 <?php
2 /*
3  * ....
4  * .: '':.
5  * :::: ':..
6  * ::. ''..
7  * .:'.. ..':.:::' . :. '':.
8  * :. '' '' '. ::::.. ..:
9  * ::::. ..':.. .'''::::: .
10  * :::::::.. '..:::: :. :::: :
11  * ::'':::::::. ':::.'':.:::: :
12  * :.. ''::::::....': '':: :
13  * :::::. '::::: : .. '' .
14  * .''::::::::... ':::.'' ..'' :.''''.
15  * :..:::''::::: :::::...:'' :..:
16  * ::::::. ':::: :::::::: ..:: .
17  * ::::::::.:::: :::::::: :'':.:: .''
18  * ::: '::::::::.' ''::::: :.' '': :
19  * ::: :::::::::..' :::: ::...' .
20  * ::: .:::::::::: :::: :::: .:'
21  * '::' ''::::::: :::: : :: :
22  * ':::: :::: :'' .:
23  * :::: :::: ..''
24  * :::: ..:::: .:''
25  * '''' '''''
26  *
27  *
28  * AUTOMAD
29  *
30  * Copyright (c) 2014 by Marc Anton Dahmen
31  * http://marcdahmen.de
32  *
33  * Licensed under the MIT license.
34  * http://automad.org/license
35  */
36 
37 
38 defined('AUTOMAD') or die('Direct access not permitted!');
39 
40 
41 /*
42  * The GUI Log Out Page. As part of the GUI, this file is only to be included via GUI::context().
43  */
44 
45 
46 unset($_SESSION);
47 session_destroy();
48 
49 
50 $this->guiTitle = $this->guiTitle . ' / ' . $this->tb['log_out_title'];
51 $this->element('header');
52 
53 
54 ?>
55 
56  <div class="column content">
57  <div class="inner">
58  <div class="alert alert-success"><?php echo $this->tb['success_log_out']; ?></div>
59  <a href="<?php echo AM_BASE_URL . AM_INDEX . AM_PAGE_GUI; ?>" class="btn btn-default"><?php echo $this->tb['btn_login']; ?></a>
60  </div>
61  </div>
62 
63 <?php
64 
65 
66 $this->element('footer');
67 
68 
69 ?>