mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-02 18:44:21 +00:00
Some last fix for logs!
This commit is contained in:
@@ -80,7 +80,12 @@ $database->query(
|
||||
// ---------------------------------------------------------------------------
|
||||
$adminId = (int)$_SESSION['id'];
|
||||
$time = time();
|
||||
$logText = "Edited profile for user <a href='admin.php?p=player&uid=$id'>$id</a>";
|
||||
|
||||
// FIX: username + ID formatat
|
||||
$targetName = $database->getUserField($id, 'username', 0) ?: 'UID '.$id;
|
||||
$targetNameSafe = htmlspecialchars($targetName, ENT_QUOTES, 'UTF-8');
|
||||
|
||||
$logText = "Edited profile for user <a href='admin.php?p=player&uid=$id'>$targetNameSafe</a>";
|
||||
$logEsc = $database->escape($logText);
|
||||
|
||||
$database->query(
|
||||
|
||||
Reference in New Issue
Block a user