mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-31 10:31:37 +00:00
Empty commit
This commit is contained in:
parent
22b5e25cac
commit
5efc7fe4ee
@ -22,7 +22,7 @@
|
|||||||
}
|
}
|
||||||
if (!isset($Data) || !$Data) {
|
if (!isset($Data) || !$Data) {
|
||||||
$Cached = false;
|
$Cached = false;
|
||||||
|
|
||||||
$Data = @file_get_contents($URL, 0, stream_context_create(array('http' => array('timeout' => 15))));
|
$Data = @file_get_contents($URL, 0, stream_context_create(array('http' => array('timeout' => 15))));
|
||||||
if (!$Data || empty($Data)) {
|
if (!$Data || empty($Data)) {
|
||||||
img_error('timeout');
|
img_error('timeout');
|
||||||
@ -47,17 +47,17 @@ function reset_image($UserID, $Type, $AdminComment, $PrivMessage) {
|
|||||||
if ($Type === 'avatar') {
|
if ($Type === 'avatar') {
|
||||||
$CacheKey = "user_info_$UserID";
|
$CacheKey = "user_info_$UserID";
|
||||||
$DBTable = 'users_info';
|
$DBTable = 'users_info';
|
||||||
$DBColumn = "Avatar";
|
$DBColumn = 'Avatar';
|
||||||
$PMSubject = 'Your avatar has been automatically reset';
|
$PMSubject = 'Your avatar has been automatically reset';
|
||||||
} elseif ($Type === 'avatar2') {
|
} elseif ($Type === 'avatar2') {
|
||||||
$CacheKey = "donor_info_$UserID";
|
$CacheKey = "donor_info_$UserID";
|
||||||
$DBTable = 'donor_rewards';
|
$DBTable = 'donor_rewards';
|
||||||
$DBColumn = "SecondAvatar";
|
$DBColumn = 'SecondAvatar';
|
||||||
$PMSubject = 'Your second avatar has been automatically reset';
|
$PMSubject = 'Your second avatar has been automatically reset';
|
||||||
} elseif ($Type === 'donoricon') {
|
} elseif ($Type === 'donoricon') {
|
||||||
$CacheKey = "donor_info_$UserID";
|
$CacheKey = "donor_info_$UserID";
|
||||||
$DBTable = 'donor_rewards';
|
$DBTable = 'donor_rewards';
|
||||||
$DBColumn = "CustomIcon";
|
$DBColumn = 'CustomIcon';
|
||||||
$PMSubject = 'Your donor icon has been automatically reset';
|
$PMSubject = 'Your donor icon has been automatically reset';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user