mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-18 20:21:37 +00:00
Empty commit
This commit is contained in:
parent
b04d5b36ca
commit
5083111449
@ -1447,10 +1447,13 @@ CREATE TABLE `xbt_files_users` (
|
||||
`ipa` int(12) unsigned NOT NULL,
|
||||
`mtime` int(11) NOT NULL,
|
||||
`ip` varchar(15) NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (`uid`,`fid`,`peer_id`),
|
||||
PRIMARY KEY (`peer_id`,`fid`),
|
||||
KEY `remaining_idx` (`remaining`),
|
||||
KEY `fid_idx` (`fid`),
|
||||
KEY `mtime_idx` (`mtime`)
|
||||
KEY `mtime_idx` (`mtime`),
|
||||
KEY `uid` (`uid`),
|
||||
KEY `downloaded` (`downloaded`),
|
||||
KEY `active` (`active`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
CREATE TABLE `xbt_scrape_log` (
|
||||
|
@ -110,6 +110,10 @@
|
||||
ON DUPLICATE KEY UPDATE Time=VALUES(Time), Expired=FALSE");
|
||||
$DB->query("UPDATE users_main SET FLTokens = FLTokens - 1 WHERE ID=$UserID");
|
||||
|
||||
// Fix for downloadthemall messing with the cached token count
|
||||
$UInfo = user_heavy_info($UserID);
|
||||
$FLTokens = $UInfo['FLTokens'];
|
||||
|
||||
$Cache->begin_transaction('user_info_heavy_'.$UserID);
|
||||
$Cache->update_row(false, array('FLTokens'=>($FLTokens - 1)));
|
||||
$Cache->commit_transaction(0);
|
||||
|
Loading…
Reference in New Issue
Block a user