includedialogconfig.php
//检验用户登录状态

$cuserLogin = new userLogin();
if($cuserLogin->getUserID()==-1)
{
if($cuserLogin->adminDir=='')
{
exit('Request Error!');
}
$gurl = "../../{$cuserLogin->adminDir}/login.php?gotopage=".urlencode($dedeNowurl);
echo "";
exit();
}

作者:
http://www.0x80c.com/?p=38