Skip to content

Commit

Permalink
Update user_list.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zhblue authored Jan 23, 2025
1 parent 112427d commit ff3b9fb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions trunk/web/admin/user_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<td><?php echo $MSG_LAST_LOGIN?></td>
<td><?php echo $MSG_REGISTER?></td>
<td><?php echo $MSG_EXPIRY_DATE?></td>
<td><?php echo $MSG_STATUS?></td>
<td><?php echo $MSG_DELETE?></td>
<td><?php echo $MSG_SETPASSWORD?></td>
<td><?php echo $MSG_PRIVILEGE."-".$MSG_ADD ?></td>
</tr>
Expand Down Expand Up @@ -98,14 +98,15 @@
else if($edate>=$today) $color="blue";
echo "<td><span fd='expiry_date' user_id='".$row['user_id']."' class='".$color."' >".$row['expiry_date']."</span></td>";

if(isset($_SESSION[$OJ_NAME.'_'.'administrator']) && $row['user_id']!=$_SESSION[$OJ_NAME."_user_id"] ){
if(isset($_SESSION[$OJ_NAME.'_'.'administrator']) && $row['user_id']!=$_SESSION[$OJ_NAME."_user_id"]){
echo "<td><a href=user_df_change.php?cid=".$row['user_id']."&getkey=".$_SESSION[$OJ_NAME.'_'.'getkey'].">".
($row['defunct']=="N"?"<span class=green title='$MSG_CLICK_TO_DELETE'>$MSG_NORMAL</span>":"<span class=red title='$MSG_CLICK_TO_RECOVER'>$MSG_DELETED</span>")
($row['defunct']=="N"?"<span class=red title='$MSG_CLICK_TO_DELETE'>$MSG_CLICK_TO_DELETE</span>":"<span class=green title='$MSG_CLICK_TO_RECOVER'>$MSG_CLICK_TO_RECOVER</span>")
."</a></td>";
}
else {
echo "<td>".($row['defunct']=="N"?"<span>$MSG_NORMAL</span>":"<span>$MSG_DELETED</span>")."</td>";
echo "<td>".($row['defunct']=="N"?"<span class=green >$MSG_NORMAL</span>":"<span class=red>$MSG_DELETED</span>")."</td>";
}

echo "<td><a href=changepass.php?uid=".$row['user_id']."&getkey=".$_SESSION[$OJ_NAME.'_'.'getkey'].">"."Reset"."</a></td>";
echo "<td><a href=privilege_add.php?uid=".$row['user_id']."&getkey=".$_SESSION[$OJ_NAME.'_'.'getkey'].">"."Add"."</a></td>";
echo "</tr>";
Expand Down

0 comments on commit ff3b9fb

Please sign in to comment.