PageRenderTime 48ms CodeModel.GetById 23ms RepoModel.GetById 1ms app.codeStats 0ms

/exit.php

https://bitbucket.org/nansenat16/ann
PHP | 33 lines | 24 code | 9 blank | 0 comment | 10 complexity | 5d0f00ac10df45a81894fe256b8e2b69 MD5 | raw file
  1. <?php
  2. include("conf/defconf.inc.php");
  3. $tmp_myhost = $myhost;
  4. $tmp_do=isset($_GET['do']) ? $_GET['do'] :'';
  5. if ($tmp_do == "exit")
  6. {
  7. if ($out_see == "yes" && $userauth != "xoops")
  8. {
  9. include("auth_by_ezf123.php");
  10. }
  11. else
  12. {
  13. if ($use_sql_session == "yes")
  14. include ("inc/sessions.inc.php");
  15. session_start();
  16. if ($use_sql_session == "yes")
  17. include ("inc/del_session.php");
  18. }
  19. session_destroy();
  20. }
  21. $myhost = $tmp_myhost;
  22. header("Location: $myhost/index.php");
  23. exit;
  24. ?>