[0004212] Work Order Entry: fixed error when voided WO refence is reused.
[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
13 define("FA_LOGOUT_PHP_FILE","");
14
15 $page_security = 'SA_OPEN';
16 $path_to_root="..";
17 include($path_to_root . "/includes/session.inc");
18 add_js_file('login.js');
19
20 include($path_to_root . "/includes/page/header.inc");
21 page_header(_("Logout"), true, false, '');
22
23 echo "<table width='100%' border='0'>
24   <tr>
25         <td align='center'><img src='$path_to_root/themes/default/images/logo_frontaccounting.png' alt='FrontAccounting' width='250' height='50' onload='fixPNG(this)' ></td>
26   </tr>
27   <tr>
28     <td>&nbsp;</td>
29   </tr>
30   <tr>
31     <td><div align='center'><font size=2>";
32 echo _("Thank you for using") . " ";
33
34 echo "<strong>".$SysPrefs->app_title." $version</strong>";
35
36 echo "</font></div></td>
37   </tr>
38   <tr>
39     <td>&nbsp;</td>
40   </tr>
41   <tr>
42     <td><div align='center'>";
43 echo "<a href='$path_to_root/index.php'><b>" . _("Click here to Login Again.") . "</b></a>";
44 echo "</div></td>
45   </tr>
46 </table>
47 <br>\n";
48 end_page(false, true);
49 session_unset();
50 @session_destroy();