Allocate Customer Payment or Credit Note, Allocate Supplier Payment or Credit Note...
[fa-stable.git] / access / logout.php
index ee526fda188e0f9c82fa6cc517329c5f56bd6747..3a8831a198b6d3ca6415f2dde26bde6c605192ba 100644 (file)
 $page_security = 'SA_OPEN';
 $path_to_root="..";
 include($path_to_root . "/includes/session.inc");
-include_once($path_to_root . "/includes/ui/ui_view.inc");
+add_js_file('login.js');
 
-page(_("Logout"), true, false, "", get_js_png_fix());
+include($path_to_root . "/includes/page/header.inc");
+page_header(_("Logout"), true, false, '');
 
 echo "<table width='100%' border='0'>
   <tr>
@@ -43,7 +44,7 @@ echo "</div></td>
 <br>\n";
 end_page(false, true);
 session_unset();
-session_destroy();
+@session_destroy();
 ?>