Skip to content

Commit 1b44c70

Browse files
committed
撤销修改
1 parent 02f73f4 commit 1b44c70

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

trunk/web/login.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,10 @@
2727
foreach ($result as $row)
2828
$_SESSION[$OJ_NAME.'_'.$row['rightstr']]=true;
2929
echo "<script language='javascript'>\n";
30-
echo "history.go(-2);\n";
31-
//if($OJ_NEED_LOGIN)
32-
// echo "window.location.href='index.php';\n";
33-
//else
34-
// echo "history.go(-2);\n";
30+
if($OJ_NEED_LOGIN)
31+
echo "window.location.href='index.php';\n";
32+
else
33+
echo "history.go(-2);\n";
3534
echo "</script>";
3635
}else{
3736

0 commit comments

Comments
 (0)