/** * 重定向登陆 **/ function redirect($lg) { if (!$lg) { return false; } include_once 'lu_compile.php'; include_once 'tm_user.php'; $tm_use_obj = new tm_user(); $obj = new lu_compile(); $username = current($obj->turn_arr($obj->decrypt($lg))); $tm_use_obj->tm_login($username); }