Skip to content

Commit

Permalink
Update swProfile.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zhblue authored Jan 24, 2025
1 parent 75bfa3f commit 649c3f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trunk/web/template/sweet/swProfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ function checkmail(){
}

if(isset($_SESSION[$OJ_NAME.'_'.'administrator'])||isset($_SESSION[$OJ_NAME.'_'.'contest_creator'])||isset($_SESSION[$OJ_NAME.'_'.'problem_editor'])){
$profile.= "<dd><a href=".$path_fix."swadmin/>$MSG_ADMIN</a></dd>";
$profile.= "<dd><a href=".$path_fix."admin/>$MSG_ADMIN</a></dd>";
}

//$profile.="</ul></li>";
?>
document.write("<?php echo ( $profile);?>");
document.getElementById("profile").innerHTML="<?php echo isset($sid)?$sid:$MSG_LOGIN ?>";
document.getElementById("profile").innerHTML="<?php echo isset($sid)?$sid:$MSG_LOGIN ?>";

0 comments on commit 649c3f6

Please sign in to comment.