switch($auth->group)
{
case "teacher":
header("LOCATING:teacher.php");
break;
case "student":
header("LOCATING:student.php");
break;
case "admin":
header("LOCATING:admin.php");
break;}
{
case "teacher":
header("LOCATING:teacher.php");
break;
case "student":
header("LOCATING:student.php");
break;
case "admin":
header("LOCATING:admin.php");
break;}
建议LZ把基础打好再搞东东.~