mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-02-22 05:09:02 +00:00
Empty commit
This commit is contained in:
parent
b4191a958c
commit
e7f3af4802
@ -1042,6 +1042,7 @@ CREATE TABLE `users_freeleeches` (
|
|||||||
`Time` datetime NOT NULL,
|
`Time` datetime NOT NULL,
|
||||||
`Expired` tinyint(1) NOT NULL DEFAULT '0',
|
`Expired` tinyint(1) NOT NULL DEFAULT '0',
|
||||||
`Downloaded` bigint(20) NOT NULL DEFAULT '0',
|
`Downloaded` bigint(20) NOT NULL DEFAULT '0',
|
||||||
|
`Uses` int(10) NOT NULL DEFAULT '1',
|
||||||
PRIMARY KEY (`UserID`,`TorrentID`)
|
PRIMARY KEY (`UserID`,`TorrentID`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
@ -1433,7 +1434,7 @@ CREATE TABLE `xbt_files_users` (
|
|||||||
`uid` int(11) NOT NULL,
|
`uid` int(11) NOT NULL,
|
||||||
`active` tinyint(1) NOT NULL,
|
`active` tinyint(1) NOT NULL,
|
||||||
`announced` int(11) NOT NULL,
|
`announced` int(11) NOT NULL,
|
||||||
`completed` int(11) NOT NULL,
|
`completed` tinyint(1) NOT NULL DEFAULT '0',
|
||||||
`downloaded` bigint(20) NOT NULL,
|
`downloaded` bigint(20) NOT NULL,
|
||||||
`remaining` bigint(20) NOT NULL,
|
`remaining` bigint(20) NOT NULL,
|
||||||
`uploaded` bigint(20) NOT NULL,
|
`uploaded` bigint(20) NOT NULL,
|
||||||
@ -1445,16 +1446,13 @@ CREATE TABLE `xbt_files_users` (
|
|||||||
`connectable` tinyint(4) NOT NULL DEFAULT '1',
|
`connectable` tinyint(4) NOT NULL DEFAULT '1',
|
||||||
`peer_id` binary(20) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0',
|
`peer_id` binary(20) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0',
|
||||||
`fid` int(11) NOT NULL,
|
`fid` int(11) NOT NULL,
|
||||||
`ipa` int(12) unsigned NOT NULL,
|
|
||||||
`mtime` int(11) NOT NULL,
|
`mtime` int(11) NOT NULL,
|
||||||
`ip` varchar(15) NOT NULL DEFAULT '',
|
`ip` varchar(15) NOT NULL DEFAULT '',
|
||||||
PRIMARY KEY (`peer_id`,`fid`),
|
PRIMARY KEY (`peer_id`,`fid`),
|
||||||
KEY `remaining_idx` (`remaining`),
|
KEY `remaining_idx` (`remaining`),
|
||||||
KEY `fid_idx` (`fid`),
|
KEY `fid_idx` (`fid`),
|
||||||
KEY `mtime_idx` (`mtime`),
|
KEY `mtime_idx` (`mtime`),
|
||||||
KEY `uid` (`uid`),
|
KEY `uid_active` (`uid`,`active`)
|
||||||
KEY `downloaded` (`downloaded`),
|
|
||||||
KEY `active` (`active`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
CREATE TABLE `xbt_scrape_log` (
|
CREATE TABLE `xbt_scrape_log` (
|
||||||
|
@ -298,7 +298,7 @@ function compare($X, $Y){
|
|||||||
}
|
}
|
||||||
$DisplayName .= $GroupName;
|
$DisplayName .= $GroupName;
|
||||||
if($GroupYear>0) { $DisplayName = $DisplayName. ' ['. $GroupYear .']';}
|
if($GroupYear>0) { $DisplayName = $DisplayName. ' ['. $GroupYear .']';}
|
||||||
if($GroupVanityHouse) { $DisplayName .= ' [<abbr title="This is a vanity house release">VH</abbr>]'; }
|
//if($GroupVanityHouse) { $DisplayName .= ' [<abbr title="This is a vanity house release">VH</abbr>]'; }
|
||||||
?>
|
?>
|
||||||
<td>
|
<td>
|
||||||
<a href="#group_<?=$GroupID?>">
|
<a href="#group_<?=$GroupID?>">
|
||||||
|
@ -107,7 +107,7 @@
|
|||||||
|
|
||||||
if (!in_array($TorrentID, $TokenTorrents)) {
|
if (!in_array($TorrentID, $TokenTorrents)) {
|
||||||
$DB->query("INSERT INTO users_freeleeches (UserID, TorrentID, Time) VALUES ($UserID, $TorrentID, NOW())
|
$DB->query("INSERT INTO users_freeleeches (UserID, TorrentID, Time) VALUES ($UserID, $TorrentID, NOW())
|
||||||
ON DUPLICATE KEY UPDATE Time=VALUES(Time), Expired=FALSE");
|
ON DUPLICATE KEY UPDATE Time=VALUES(Time), Expired=FALSE, Uses=Uses+1");
|
||||||
$DB->query("UPDATE users_main SET FLTokens = FLTokens - 1 WHERE ID=$UserID");
|
$DB->query("UPDATE users_main SET FLTokens = FLTokens - 1 WHERE ID=$UserID");
|
||||||
|
|
||||||
// Fix for downloadthemall messing with the cached token count
|
// Fix for downloadthemall messing with the cached token count
|
||||||
|
@ -512,11 +512,11 @@ function check_paranoia_here($Setting) {
|
|||||||
<?
|
<?
|
||||||
|
|
||||||
if (check_paranoia_here('seeding+')) {
|
if (check_paranoia_here('seeding+')) {
|
||||||
$DB->query("SELECT COUNT(x.uid) FROM xbt_files_users AS x INNER JOIN torrents AS t ON t.ID=x.fid WHERE x.uid='$UserID' AND x.remaining=0");
|
$DB->query("SELECT COUNT(x.uid) FROM xbt_files_users AS x INNER JOIN torrents AS t ON t.ID=x.fid WHERE x.uid='$UserID' AND x.active=1 AND x.remaining=0");
|
||||||
list($Seeding) = $DB->next_record();
|
list($Seeding) = $DB->next_record();
|
||||||
}
|
}
|
||||||
if (check_paranoia_here('leeching+')) {
|
if (check_paranoia_here('leeching+')) {
|
||||||
$DB->query("SELECT COUNT(x.uid) FROM xbt_files_users AS x INNER JOIN torrents AS t ON t.ID=x.fid WHERE x.uid='$UserID' AND x.remaining>0");
|
$DB->query("SELECT COUNT(x.uid) FROM xbt_files_users AS x INNER JOIN torrents AS t ON t.ID=x.fid WHERE x.uid='$UserID' AND x.active=1 AND x.remaining>0");
|
||||||
list($Leeching) = $DB->next_record();
|
list($Leeching) = $DB->next_record();
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
@ -48,6 +48,7 @@
|
|||||||
f.Time,
|
f.Time,
|
||||||
f.Expired,
|
f.Expired,
|
||||||
f.Downloaded,
|
f.Downloaded,
|
||||||
|
f.Uses,
|
||||||
g.Name,
|
g.Name,
|
||||||
t.Format,
|
t.Format,
|
||||||
t.Encoding
|
t.Encoding
|
||||||
@ -74,6 +75,7 @@
|
|||||||
<td>Expired</td>
|
<td>Expired</td>
|
||||||
<? if (check_perms('users_mod')) { ?>
|
<? if (check_perms('users_mod')) { ?>
|
||||||
<td>Downloaded</td>
|
<td>Downloaded</td>
|
||||||
|
<td>Tokens Used</td>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
</tr>
|
</tr>
|
||||||
<?
|
<?
|
||||||
@ -85,7 +87,7 @@
|
|||||||
$i = true;
|
$i = true;
|
||||||
foreach ($Tokens as $Token) {
|
foreach ($Tokens as $Token) {
|
||||||
$i = !$i;
|
$i = !$i;
|
||||||
list($TorrentID, $GroupID, $Time, $Expired, $Downloaded, $Name, $Format, $Encoding) = $Token;
|
list($TorrentID, $GroupID, $Time, $Expired, $Downloaded, $Uses, $Name, $Format, $Encoding) = $Token;
|
||||||
$Name = "<a href=\"torrents.php?torrentid=$TorrentID\">$Name</a>";
|
$Name = "<a href=\"torrents.php?torrentid=$TorrentID\">$Name</a>";
|
||||||
$ArtistName = display_artists($Artists[$GroupID]);
|
$ArtistName = display_artists($Artists[$GroupID]);
|
||||||
if($ArtistName) {
|
if($ArtistName) {
|
||||||
@ -102,6 +104,7 @@
|
|||||||
</td>
|
</td>
|
||||||
<? if (check_perms('users_mod')) { ?>
|
<? if (check_perms('users_mod')) { ?>
|
||||||
<td><?=get_size($Downloaded)?></td>
|
<td><?=get_size($Downloaded)?></td>
|
||||||
|
<td><?=$Uses?></td>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
</tr>
|
</tr>
|
||||||
<? }
|
<? }
|
||||||
|
Loading…
Reference in New Issue
Block a user