A tumblelog CMS built on AJAX, PHP and MySQL.

close.php 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?php
  2. /* ===========================
  3. gelato CMS - A PHP based tumblelog CMS
  4. development version
  5. http://www.gelatocms.com/
  6. gelato CMS is a free software licensed under GPL (General public license)
  7. =========================== */
  8. ?>
  9. <?php
  10. require_once('../config.php');
  11. include("../classes/functions.php");
  12. include("../classes/user.class.php");
  13. require_once("../classes/configuration.class.php");
  14. session_start();
  15. $user = new user();
  16. $conf = new configuration();
  17. $user->closeSession()
  18. ?>
  19. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  20. <html xmlns="http://www.w3.org/1999/xhtml">
  21. <head>
  22. <title>gelato :: logout</title>
  23. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  24. <meta name="generator" content="gelato cms <?php echo version();?>" />
  25. <meta http-equiv="Refresh" content="3;URL=../login.php" />
  26. <link rel="shortcut icon" href="<?php echo $conf->urlGelato;?>/images/favicon.ico" />
  27. <style type="text/css" media="screen">
  28. @import "<?php echo $conf->urlGelato;?>/admin/css/style.css";
  29. </style>
  30. </head>
  31. <body>
  32. <div id="cont">
  33. <div id="head">
  34. <h1><a href="<?php echo $conf->urlGelato;?>/" title="gelato :: home">gelato cms</a></h1>
  35. <ul id="nav">
  36. <li><a href="<?php echo $conf->urlGelato;?>/" title="Take me to the tumblelog">Back to the Tumblelog</a></li>
  37. </ul>
  38. </div>
  39. <div id="main">
  40. <div class="box">
  41. <ul class="menu manage">
  42. <h3>Closing session</h3>
  43. <li class="selected"><a>logoff</a></li>
  44. </ul>
  45. <div class="tabla">
  46. <p>
  47. <?php
  48. if (@session_destroy()) {
  49. ?>
  50. <h2>Ending session...</h2>
  51. <?php
  52. } else {
  53. ?>
  54. <h2>Has happened an error when closing the session.</h2>
  55. <?php
  56. }
  57. ?>
  58. </p>
  59. </div>
  60. <div class="footer-box">&nbsp;</div>
  61. </div>
  62. </div>
  63. <div id="foot">
  64. <a href="http://www.gelatocms.com/" title="gelato CMS">gelato CMS</a> :: PHP/MySQL Tumblelog Content Management System.
  65. </div>
  66. </div>
  67. </body>
  68. </html>