/exit.php
PHP | 33 lines | 24 code | 9 blank | 0 comment | 10 complexity | 5d0f00ac10df45a81894fe256b8e2b69 MD5 | raw file
- <?php
- include("conf/defconf.inc.php");
- $tmp_myhost = $myhost;
- $tmp_do=isset($_GET['do']) ? $_GET['do'] :'';
- if ($tmp_do == "exit")
- {
- if ($out_see == "yes" && $userauth != "xoops")
- {
- include("auth_by_ezf123.php");
- }
- else
- {
- if ($use_sql_session == "yes")
- include ("inc/sessions.inc.php");
- session_start();
- if ($use_sql_session == "yes")
- include ("inc/del_session.php");
- }
- session_destroy();
- }
- $myhost = $tmp_myhost;
- header("Location: $myhost/index.php");
- exit;
- ?>