Merged changes in main branch up to v.2.1.2
[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 = 1;
13 $path_to_root="..";
14 include($path_to_root . "/includes/session.inc");
15 include_once($path_to_root . "/includes/ui/ui_view.inc");
16
17 page(_("Logout"), true, false, "", get_js_png_fix());
18
19 ?>
20
21 <table width="100%" border="0">
22   <tr>
23         <td align="center"><img src="<?php echo "$path_to_root/themes/default/images/logo_frontaccounting.png";?>" alt="FrontAccounting" width="250" height="50" onload="fixPNG(this)"></td>
24   </tr>
25   <tr>
26     <td>&nbsp;</td>
27   </tr>
28   <tr>
29     <td><div align="center"><font size=2>
30 <?php
31                 echo _("Thank you for using") . " ";
32
33                         echo "<strong>$app_title $version</strong>";
34 ?>
35          </font></div></td>
36   </tr>
37   <tr>
38     <td>&nbsp;</td>
39   </tr>
40   <tr>
41     <td><div align="center">
42         <?php
43      echo "<a href='$path_to_root/index.php'><b>" . _("Click here to Login Again.") . "</b></a>";
44 ?>
45       </div></td>
46   </tr>
47 </table>
48 <br>
49 <?php
50
51         end_page(false, true);
52         session_unset();
53         session_destroy();
54 ?>
55
56