A tumblelog CMS built on AJAX, PHP and MySQL.

close.php 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?php
  2. if (!defined('entry')) {
  3. define('entry', true);
  4. }
  5. /* ===========================
  6. Sorbet CMS - A PHP based tumblelog CMS forked from Gelato CMS
  7. Sorbet CMS is a free software licensed under the GPL 3.0
  8. =========================== */
  9. ?>
  10. <?php
  11. require '../entry.php';
  12. global $user, $util;
  13. $closed = $user->closeSession();
  14. ?>
  15. <!DOCTYPE html>
  16. <html>
  17. <head>
  18. <title><?= __("logout")?> - Sorbet CMS</title>
  19. <meta charset="utf-8" />
  20. <meta name="generator" content="Sorbet CMS <?= $util->version();?>" />
  21. <meta http-equiv="Refresh" content="3;URL=../login.php" />
  22. <link rel="shortcut icon" href="<?php echo $conf->urlSorbet;?>/images/favicon.ico" />
  23. <style type="text/css" media="screen">
  24. @import "<?php echo $conf->urlSorbet;?>/admin/css/style.css";
  25. </style>
  26. </head>
  27. <body>
  28. <div id="cont">
  29. <div id="head">
  30. <h1><a href="<?php echo $conf->urlSorbet;?>/" title="<?= __("home")?> - Sorbet CMS">Sorbet CMS</a></h1>
  31. <ul id="nav">
  32. <li><a href="<?php echo $conf->urlSorbet;?>/" title="<?php echo __("Take me to the tumblelog")?>"><?php echo __("Back to the Tumblelog")?></a></li>
  33. </ul>
  34. </div>
  35. <div id="main">
  36. <div class="box">
  37. <ul class="menu manage">
  38. <h3><?php echo __("Closing session")?></h3>
  39. <li class="selected"><a><?php echo __("logoff")?></a></li>
  40. </ul>
  41. <div class="tabla">
  42. <p>
  43. <?php
  44. if ($closed) {
  45. ?>
  46. <h2><?php echo __("Ending session&hellip;")?></h2>
  47. <?php
  48. } else {
  49. ?>
  50. <h2><?php echo __("Has happened an error when closing the session.")?></h2>
  51. <?php
  52. }
  53. ?>
  54. </p>
  55. </div>
  56. <div class="footer-box">&nbsp;</div>
  57. </div>
  58. </div>
  59. <div id="foot">
  60. Sorbet CMS - PHP Tumblelog Content Management System.
  61. </div>
  62. </div>
  63. </body>
  64. </html>