A tumblelog CMS built on AJAX, PHP and MySQL.

close.php 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. /* ===========================
  3. gelato CMS development version
  4. http://www.gelatocms.com/
  5. gelato CMS is a free software licensed under GPL (General public license)
  6. =========================== */
  7. ?>
  8. <?php
  9. require_once('../config.php');
  10. include("../classes/user.class.php");
  11. session_start();
  12. $user = new user();
  13. $user->closeSession()
  14. ?>
  15. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  16. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  17. <head>
  18. <title>gelato</title>
  19. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  20. <link rel="shortcut icon" href="../images/favicon.ico" />
  21. <meta http-equiv="Refresh" content="3;URL=../login.php" />
  22. <style type="text/css" media="screen">
  23. @import "css/style-codice.css";
  24. </style>
  25. </head>
  26. <body>
  27. <div id="titulo">
  28. <img src="../images/logo.jpg" alt="gelato CMS" title="gelato CMS" />
  29. </div>
  30. <div id="contenido">
  31. <div class="piccola">
  32. <div class="ventana">
  33. <p class="titulo"><span class="handle" style="cursor:move;">Closing session</span></p>
  34. <p>
  35. <?php
  36. if (@session_destroy()) {
  37. ?>
  38. </p>
  39. <h3>Ending session...</h3>
  40. <?php
  41. } else {
  42. ?>
  43. <h3>Has happened an error when closing the session.</h3>
  44. <?php
  45. }
  46. ?>
  47. </p>
  48. </div>
  49. </div>
  50. <div id="pie">
  51. <p>
  52. <a href="http://www.gelatocms.com/" title="gelato CMS">gelato CMS</a> :: PHP/MySQL Tumblelog Content Management System.
  53. </p>
  54. </div>
  55. </div>
  56. </div>
  57. </body>
  58. </html>