logoff.php 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. // Copyright (C) 2010 Combodo SARL
  3. //
  4. // This program is free software; you can redistribute it and/or modify
  5. // it under the terms of the GNU General Public License as published by
  6. // the Free Software Foundation; version 3 of the License.
  7. //
  8. // This program is distributed in the hope that it will be useful,
  9. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. // GNU General Public License for more details.
  12. //
  13. // You should have received a copy of the GNU General Public License
  14. // along with this program; if not, write to the Free Software
  15. // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  16. require_once('../application/application.inc.php');
  17. require_once('../application/itopwebpage.class.inc.php');
  18. require_once('../application/wizardhelper.class.inc.php');
  19. require_once('../application/startup.inc.php');
  20. $oAppContext = new ApplicationContext();
  21. $currentOrganization = utils::ReadParam('org_id', '');
  22. $operation = utils::ReadParam('operation', '');
  23. require_once('../application/loginwebpage.class.inc.php');
  24. session_start();
  25. LoginWebPage::ResetSession();
  26. $oPage = new LoginWebPage();
  27. $sVersionShort = Dict::Format('UI:iTopVersion:Short', ITOP_VERSION);
  28. $oPage->add("<div id=\"login-logo\"><a href=\"http://www.combodo.com/itop\"><img title=\"$sVersionShort\" src=\"../images/itop-logo.png\"></a></div>\n");
  29. $oPage->add("<div id=\"login\">\n");
  30. $oPage->add("<h1>".Dict::S('UI:LogOff:ThankYou')."</h1>\n");
  31. $bPortal = utils::ReadParam('portal', false);
  32. if ($bPortal)
  33. {
  34. $sUrl = '../portal/';
  35. }
  36. else
  37. {
  38. $sUrl = '../pages/UI.php';
  39. }
  40. $oPage->add("<p><a href=\"$sUrl\">".Dict::S('UI:LogOff:ClickHereToLoginAgain')."</a></p>");
  41. $oPage->add("</div>\n");
  42. $oPage->output();
  43. ?>