Skip to content

Commit

Permalink
Update privilege_add.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zhblue authored Sep 17, 2023
1 parent b378898 commit 393040e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trunk/web/admin/privilege_add.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

$sql = "insert into `privilege`(user_id,rightstr,valuestr,defunct) values(?,?,?,'N')";
$link= 'http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['REQUEST_URI']);
$msg = $_SESSION[$OJ_NAME.'_user_id']." add $rightstr [$valuestr] to $user_id at ".date('Y-m-d h:i:s a', time());
$msg = $_SESSION[$OJ_NAME.'_user_id']." $MSG_ADD $rightstr [$valuestr] $MSG_PRIVILEGE -> $user_id @ ".date('Y-m-d h:i:s a', time());
$msg .="\n\nmessage from site: $link";
$rows = pdo_query($sql,$user_id,$rightstr,$valuestr);
if ($OJ_ADMIN=="root@localhost"){
Expand Down

0 comments on commit 393040e

Please sign in to comment.