Fixed continuation after authorization timeout.
[fa-stable.git] / access / logout.php
1 <?php
2 /**********************************************************************
3     Copyright (C) FrontAccounting, LLC.
4         Released under the terms of the GNU General Public License, GPL, 
5         as published by the Free Software Foundation, either version 3 
6         of the License, or (at your option) any later version.
7     This program is distributed in the hope that it will be useful,
8     but WITHOUT ANY WARRANTY; without even the implied warranty of
9     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
10     See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
11 ***********************************************************************/
12 $page_security = 'SA_OPEN';
13 $path_to_root="..";
14 include($path_to_root . "/includes/session.inc");
15
16 include($path_to_root . "/includes/page/header.inc");
17 page_header(_("Logout"), true, false, '', get_js_png_fix());
18
19 echo "<table width='100%' border='0'>
20   <tr>
21         <td align='center'><img src='$path_to_root/themes/default/images/logo_frontaccounting.png' alt='FrontAccounting' width='250' height='50' onload='fixPNG(this)' /></td>
22   </tr>
23   <tr>
24     <td>&nbsp;</td>
25   </tr>
26   <tr>
27     <td><div align='center'><font size=2>";
28 echo _("Thank you for using") . " ";
29
30 echo "<strong>$app_title $version</strong>";
31
32 echo "</font></div></td>
33   </tr>
34   <tr>
35     <td>&nbsp;</td>
36   </tr>
37   <tr>
38     <td><div align='center'>";
39 echo "<a href='$path_to_root/index.php'><b>" . _("Click here to Login Again.") . "</b></a>";
40 echo "</div></td>
41   </tr>
42 </table>
43 <br>\n";
44 end_page(false, true);
45 session_unset();
46 session_destroy();
47 ?>
48
49