mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-05 22:10:11 +00:00
Empty commit
This commit is contained in:
parent
35e88914c8
commit
d130d4ff8d
@ -1235,7 +1235,7 @@ function warn_user($UserID, $Duration, $Reason) {
|
|||||||
$Cache->update_row(false, array('Warned' => $WarnTime));
|
$Cache->update_row(false, array('Warned' => $WarnTime));
|
||||||
$Cache->commit_transaction(0);
|
$Cache->commit_transaction(0);
|
||||||
|
|
||||||
$AdminComment = "\n".date("Y-m-d").' - Warned until '.$WarnTime.' by '.$LoggedUser['Username']."\nReason: $Reason\n\n";
|
$AdminComment = date("Y-m-d").' - Warned until '.$WarnTime.' by '.$LoggedUser['Username']."\nReason: $Reason\n\n";
|
||||||
|
|
||||||
$DB->query('UPDATE users_info SET
|
$DB->query('UPDATE users_info SET
|
||||||
Warned=\''.db_string($WarnTime).'\',
|
Warned=\''.db_string($WarnTime).'\',
|
||||||
|
@ -197,7 +197,7 @@
|
|||||||
|
|
||||||
if($Warning > 0) {
|
if($Warning > 0) {
|
||||||
$WarnLength = $Warning * (7*24*60*60);
|
$WarnLength = $Warning * (7*24*60*60);
|
||||||
$Reason = "Uploader of torrent (".$TorrentID.") ".db_string($RawName)." which was resolved with the preset: ".$ResolveType['title'].".";
|
$Reason = "Uploader of torrent (".$TorrentID.") ".$RawName." which was resolved with the preset: ".$ResolveType['title'].".";
|
||||||
if($Escaped['admin_message']) {
|
if($Escaped['admin_message']) {
|
||||||
$Reason .= " (".$Escaped['admin_message'].").";
|
$Reason .= " (".$Escaped['admin_message'].").";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user