A tumblelog CMS built on AJAX, PHP and MySQL.

close.php 2.1KB

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