<?php /** * 退出 * * @version $Id: exit.php 1 19:09 2010年7月12日Z tianya $ * @package DedeCMS.Administrator * @copyright Copyright (c) 2007 - 2010, DesDev, Inc. * @license http://help.dedecms.com/usersguide/license.html * @link http://www.dedecms.com */ //引入公共的显示文件 目录路径 域名/include/common.inc.php require_once(dirname(__FILE__).'/../include/common.inc.php'); //引入管理员登陆类 目录路径 域名/include/userlogin.class.php require_once(DEDEINC.'/userlogin.class.php'); //new一个用户登陆对象 $cuserLogin = new userLogin(); // exitUser() 结束用户的会话状态 $cuserLogin->exitUser(); //判断$needclose为空 if(empty($needclose)) { //跳转到登陆的首页index.php header('location:index.php'); } else { $msg = "<script language='javascript'> if(document.all) window.opener=true; window.close(); </script>"; echo $msg; }