mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-18 04:01:35 +00:00
Empty commit
This commit is contained in:
parent
aedb32c7d0
commit
ebf316c74f
@ -801,7 +801,7 @@ public static function get_push_enabled_users() {
|
||||
SELECT UserID
|
||||
FROM users_push_notifications
|
||||
WHERE PushService != 0
|
||||
AND UserID != '$LoggedUser[ID]'");
|
||||
AND UserID != '" . G::$LoggedUser['ID']. "'");
|
||||
$PushUsers = G::$DB->collect("UserID");
|
||||
G::$DB->set_query_id($QueryID);
|
||||
return $PushUsers;
|
||||
|
@ -53,9 +53,7 @@ private static function render_push_settings() {
|
||||
|
||||
public static function render_settings($Settings) {
|
||||
self::$Settings = $Settings;
|
||||
if (check_perms("users_mod") || G::$LoggedUser['ExtraClasses'][DELTA_TEAM]) {
|
||||
self::render_push_settings();
|
||||
}
|
||||
self::render_push_settings();
|
||||
?>
|
||||
<tr>
|
||||
<td class="label">
|
||||
@ -143,7 +141,7 @@ private static function render_checkbox($Name, $Traditional = false, $Push = tru
|
||||
Traditional
|
||||
</label>
|
||||
<? }
|
||||
if ($Push && (check_perms("users_mod") || G::$LoggedUser['ExtraClasses'][DELTA_TEAM])) { ?>
|
||||
if ($Push) { ?>
|
||||
<label>
|
||||
<input type="checkbox" name="notifications_<?=$Name?>_push" id="notifications_<?=$Name?>_push"<?=$PushChecked?> />
|
||||
Push
|
||||
|
@ -494,7 +494,7 @@ function next_hour() {
|
||||
|
||||
if (count($Users) > 0) {
|
||||
$Subject = 'Leeching Disabled';
|
||||
$Message = 'You have downloaded more than 10 GiB while on Ratio Watch. Your leeching privileges have been disabled. Please reread the rules and refer to this guide on how to improve your ratio ' . site_url() . 'wiki.php?action=article&id=110';
|
||||
$Message = 'You have downloaded more than 10 GB while on Ratio Watch. Your leeching privileges have been disabled. Please reread the rules and refer to this guide on how to improve your ratio ' . site_url() . 'wiki.php?action=article&id=110';
|
||||
foreach ($Users as $TorrentPass => $UserID) {
|
||||
Misc::send_pm($UserID, 0, $Subject, $Message);
|
||||
Tracker::update_tracker('update_user', array('passkey' => $TorrentPass, 'can_leech' => '0'));
|
||||
@ -710,7 +710,7 @@ function next_hour() {
|
||||
|
||||
// Put user on ratio watch if he doesn't meet the standards
|
||||
sleep(10);
|
||||
/*$DB->query("
|
||||
$DB->query("
|
||||
SELECT m.ID, m.Downloaded
|
||||
FROM users_info AS i
|
||||
JOIN users_main AS m ON m.ID = i.UserID
|
||||
@ -736,7 +736,7 @@ function next_hour() {
|
||||
$Cache->commit_transaction(0);
|
||||
Misc::send_pm($UserID, 0, 'You have been put on Ratio Watch', "This happens when your ratio falls below the requirements we have outlined in the rules located [url=".site_url()."rules.php?p=ratio]here[/url].\n For information about ratio watch, click the link above.");
|
||||
echo "Ratio watch on: $UserID\n";
|
||||
}*/
|
||||
}
|
||||
|
||||
sleep(5);
|
||||
|
||||
|
@ -490,6 +490,7 @@ function header_link($SortKey, $DefaultWay = 'DESC') {
|
||||
</td>
|
||||
</tr>
|
||||
<?
|
||||
$PageSize = 0;
|
||||
foreach ($TorrentsInfo as $TorrentID => $Info) {
|
||||
list($GroupID, , $Time) = array_values($Info);
|
||||
|
||||
@ -537,7 +538,7 @@ function header_link($SortKey, $DefaultWay = 'DESC') {
|
||||
| <a href="reportsv2.php?action=report&id=<?=$TorrentID?>" class="tooltip" title="Report">RP</a> ]
|
||||
</span>
|
||||
<? echo "$DisplayName\n"; ?>
|
||||
<? Votes::vote_link($GroupID, $UserVotes[$GroupID]['Type']); ?>
|
||||
<? Votes::vote_link($GroupID, isset($UserVotes[$GroupID]) ? $UserVotes[$GroupID]['Type'] : ''); ?>
|
||||
<div class="tags"><?=$TorrentTags->format('torrents.php?type='.$Action.'&userid='.$UserID.'&tags=')?></div>
|
||||
</div>
|
||||
</td>
|
||||
|
Loading…
Reference in New Issue
Block a user