From 78393da97b09a124e45b785bc9821470f57bd0eb Mon Sep 17 00:00:00 2001 From: Git Date: Thu, 31 May 2012 08:00:14 +0000 Subject: [PATCH] Empty commit --- classes/class_torrent_form.php | 9 +- classes/script_start.php | 1 + gazelle.sql | 559 ++++++++++++++++---------------- sections/reportsv2/array.php | 94 +++--- sections/schedule/index.php | 4 +- sections/torrents/details.php | 5 +- sections/torrents/edit.php | 4 +- sections/torrents/functions.php | 4 +- sections/torrents/takeedit.php | 10 + sections/upload/upload.php | 2 +- 10 files changed, 361 insertions(+), 331 deletions(-) diff --git a/classes/class_torrent_form.php b/classes/class_torrent_form.php index 43037f0d..574f0d36 100644 --- a/classes/class_torrent_form.php +++ b/classes/class_torrent_form.php @@ -190,6 +190,7 @@ function music_form($GenreTags) { $BadFiles = $Torrent['BadFiles']; $CassetteApproved = $Torrent['CassetteApproved']; $LossymasterApproved = $Torrent['LossymasterApproved']; + $LossywebApproved = $Torrent['LossywebApproved']; global $ReleaseTypes; ?> @@ -559,11 +560,17 @@ function show() { - + + + + + NewTorrent) { ?> diff --git a/classes/script_start.php b/classes/script_start.php index c7dbf127..d0bfb2ce 100644 --- a/classes/script_start.php +++ b/classes/script_start.php @@ -1314,6 +1314,7 @@ function delete_torrent($ID, $GroupID=0) { $DB->query("DELETE FROM torrents_bad_files WHERE TorrentID = ".$ID); $DB->query("DELETE FROM torrents_cassette_approved WHERE TorrentID = ".$ID); $DB->query("DELETE FROM torrents_lossymaster_approved WHERE TorrentID = ".$ID); + $DB->query("DELETE FROM torrents_lossyweb_approved WHERE TorrentID = ".$ID); $Cache->delete_value('torrent_download_'.$ID); $Cache->delete_value('torrent_group_'.$GroupID); $Cache->delete_value('torrents_details_'.$GroupID); diff --git a/gazelle.sql b/gazelle.sql index 35ac8930..6c631ee8 100644 --- a/gazelle.sql +++ b/gazelle.sql @@ -8,8 +8,8 @@ CREATE TABLE `api_applications` ( `Token` char(32) COLLATE utf8_bin NOT NULL, `Name` varchar(50) COLLATE utf8_bin NOT NULL, PRIMARY KEY (`ID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `api_users` ( `UserID` int(10) NOT NULL, `AppID` int(10) NOT NULL, @@ -19,8 +19,8 @@ CREATE TABLE `api_users` ( `Access` text, PRIMARY KEY (`UserID`,`AppID`), KEY `UserID` (`UserID`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; - +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + CREATE TABLE `artists_alias` ( `AliasID` int(10) NOT NULL AUTO_INCREMENT, `ArtistID` int(10) NOT NULL, @@ -30,8 +30,8 @@ CREATE TABLE `artists_alias` ( PRIMARY KEY (`AliasID`), KEY `ArtistID` (`ArtistID`), KEY `Name` (`Name`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `artists_group` ( `ArtistID` int(10) NOT NULL AUTO_INCREMENT, `Name` varchar(200) CHARACTER SET utf8 COLLATE utf8_swedish_ci DEFAULT NULL, @@ -40,30 +40,30 @@ CREATE TABLE `artists_group` ( PRIMARY KEY (`ArtistID`), KEY `Name` (`Name`), KEY `RevisionID` (`RevisionID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `artists_similar` ( `ArtistID` int(10) NOT NULL DEFAULT '0', `SimilarID` int(12) NOT NULL DEFAULT '0', PRIMARY KEY (`ArtistID`,`SimilarID`), KEY `ArtistID` (`ArtistID`), KEY `SimilarID` (`SimilarID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `artists_similar_scores` ( `SimilarID` int(12) NOT NULL AUTO_INCREMENT, `Score` int(10) NOT NULL DEFAULT '0', PRIMARY KEY (`SimilarID`), KEY `Score` (`Score`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `artists_similar_votes` ( `SimilarID` int(12) NOT NULL, `UserID` int(10) NOT NULL, `Way` enum('up','down') COLLATE utf8_bin NOT NULL DEFAULT 'up', PRIMARY KEY (`SimilarID`,`UserID`,`Way`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `artists_tags` ( `TagID` int(10) NOT NULL DEFAULT '0', `ArtistID` int(10) NOT NULL DEFAULT '0', @@ -76,12 +76,12 @@ CREATE TABLE `artists_tags` ( KEY `PositiveVotes` (`PositiveVotes`), KEY `NegativeVotes` (`NegativeVotes`), KEY `UserID` (`UserID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `bad_passwords` ( `Password` char(32) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=latin1; - +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + CREATE TABLE `blog` ( `ID` int(10) unsigned NOT NULL AUTO_INCREMENT, `UserID` int(10) unsigned NOT NULL, @@ -93,40 +93,40 @@ CREATE TABLE `blog` ( PRIMARY KEY (`ID`), KEY `UserID` (`UserID`), KEY `Time` (`Time`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `bookmarks_artists` ( `UserID` int(10) NOT NULL, `ArtistID` int(10) NOT NULL, `Time` datetime NOT NULL, KEY `UserID` (`UserID`), KEY `ArtistID` (`ArtistID`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; - +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + CREATE TABLE `bookmarks_collages` ( `UserID` int(10) NOT NULL, `CollageID` int(10) NOT NULL, `Time` datetime NOT NULL, KEY `UserID` (`UserID`), KEY `CollageID` (`CollageID`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; - +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + CREATE TABLE `bookmarks_requests` ( `UserID` int(10) NOT NULL, `RequestID` int(10) NOT NULL, `Time` datetime NOT NULL, KEY `UserID` (`UserID`), KEY `RequestID` (`RequestID`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; - +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + CREATE TABLE `bookmarks_torrents` ( `UserID` int(10) NOT NULL, `GroupID` int(10) NOT NULL, `Time` datetime NOT NULL, KEY `UserID` (`UserID`), KEY `GroupID` (`GroupID`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; - +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + CREATE TABLE `collages` ( `ID` int(10) NOT NULL AUTO_INCREMENT, `Name` varchar(100) CHARACTER SET utf8 COLLATE utf8_swedish_ci NOT NULL DEFAULT '', @@ -144,8 +144,8 @@ CREATE TABLE `collages` ( UNIQUE KEY `Name` (`Name`), KEY `UserID` (`UserID`), KEY `CategoryID` (`CategoryID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `collages_comments` ( `ID` int(10) NOT NULL AUTO_INCREMENT, `CollageID` int(10) NOT NULL, @@ -155,8 +155,8 @@ CREATE TABLE `collages_comments` ( PRIMARY KEY (`ID`), KEY `CollageID` (`CollageID`), KEY `UserID` (`UserID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `collages_torrents` ( `CollageID` int(10) NOT NULL, `GroupID` int(10) NOT NULL, @@ -166,8 +166,8 @@ CREATE TABLE `collages_torrents` ( PRIMARY KEY (`CollageID`,`GroupID`), KEY `UserID` (`UserID`), KEY `Sort` (`Sort`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `comments_edits` ( `Page` enum('forums','collages','requests','torrents') DEFAULT NULL, `PostID` int(10) DEFAULT NULL, @@ -176,8 +176,8 @@ CREATE TABLE `comments_edits` ( `Body` mediumtext, KEY `EditUser` (`EditUser`), KEY `PostHistory` (`Page`,`PostID`,`EditTime`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; - +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + CREATE TABLE `do_not_upload` ( `ID` int(10) NOT NULL AUTO_INCREMENT, `Name` varchar(255) COLLATE utf8_bin NOT NULL, @@ -186,8 +186,8 @@ CREATE TABLE `do_not_upload` ( `Time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`ID`), KEY `Time` (`Time`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `donations` ( `UserID` int(10) NOT NULL, `Amount` decimal(6,2) NOT NULL, @@ -197,22 +197,22 @@ CREATE TABLE `donations` ( KEY `UserID` (`UserID`), KEY `Time` (`Time`), KEY `Amount` (`Amount`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `drives` ( `DriveID` int(10) NOT NULL AUTO_INCREMENT, `Name` varchar(50) COLLATE utf8_bin NOT NULL, `Offset` varchar(10) COLLATE utf8_bin NOT NULL, PRIMARY KEY (`DriveID`), KEY `Name` (`Name`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `dupe_groups` ( `ID` int(10) unsigned NOT NULL AUTO_INCREMENT, `Comments` text COLLATE utf8_bin, PRIMARY KEY (`ID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `email_blacklist` ( `ID` int(10) NOT NULL AUTO_INCREMENT, `UserID` int(10) NOT NULL, @@ -220,16 +220,16 @@ CREATE TABLE `email_blacklist` ( `Time` datetime NOT NULL, `Comment` text NOT NULL, PRIMARY KEY (`ID`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; - +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + CREATE TABLE `featured_albums` ( `GroupID` int(10) NOT NULL DEFAULT '0', `ThreadID` int(10) NOT NULL DEFAULT '0', `Title` varchar(35) NOT NULL DEFAULT '', `Started` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `Ended` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + CREATE TABLE `forums` ( `ID` int(6) unsigned NOT NULL AUTO_INCREMENT, `CategoryID` tinyint(2) NOT NULL DEFAULT '0', @@ -249,16 +249,16 @@ CREATE TABLE `forums` ( PRIMARY KEY (`ID`), KEY `Sort` (`Sort`), KEY `MinClassRead` (`MinClassRead`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `forums_categories` ( `ID` tinyint(2) NOT NULL AUTO_INCREMENT, `Name` varchar(40) COLLATE utf8_bin NOT NULL DEFAULT '', `Sort` int(6) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`ID`), KEY `Sort` (`Sort`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `forums_last_read_topics` ( `UserID` int(10) NOT NULL, `TopicID` int(10) NOT NULL, @@ -267,8 +267,8 @@ CREATE TABLE `forums_last_read_topics` ( KEY `TopicID` (`TopicID`), KEY `UserID` (`UserID`), KEY `TopicID_2` (`TopicID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `forums_polls` ( `TopicID` int(10) unsigned NOT NULL, `Question` varchar(255) COLLATE utf8_bin NOT NULL, @@ -276,15 +276,15 @@ CREATE TABLE `forums_polls` ( `Featured` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `Closed` enum('0','1') COLLATE utf8_bin NOT NULL DEFAULT '0', PRIMARY KEY (`TopicID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `forums_polls_votes` ( `TopicID` int(10) unsigned NOT NULL, `UserID` int(10) unsigned NOT NULL, `Vote` tinyint(3) unsigned NOT NULL, PRIMARY KEY (`TopicID`,`UserID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `forums_posts` ( `ID` int(10) NOT NULL AUTO_INCREMENT, `TopicID` int(10) NOT NULL, @@ -296,13 +296,13 @@ CREATE TABLE `forums_posts` ( PRIMARY KEY (`ID`), KEY `TopicID` (`TopicID`), KEY `AuthorID` (`AuthorID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci; + CREATE TABLE `forums_specific_rules` ( `ForumID` int(6) unsigned DEFAULT NULL, `ThreadID` int(10) DEFAULT NULL -) ENGINE=InnoDB DEFAULT CHARSET=latin1; - +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + CREATE TABLE `forums_topics` ( `ID` int(10) NOT NULL AUTO_INCREMENT, `Title` varchar(150) COLLATE utf8_swedish_ci NOT NULL, @@ -321,8 +321,8 @@ CREATE TABLE `forums_topics` ( KEY `IsSticky` (`IsSticky`), KEY `LastPostID` (`LastPostID`), KEY `Title` (`Title`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci; + CREATE TABLE `friends` ( `UserID` int(10) unsigned NOT NULL, `FriendID` int(10) unsigned NOT NULL, @@ -330,15 +330,15 @@ CREATE TABLE `friends` ( PRIMARY KEY (`UserID`,`FriendID`), KEY `UserID` (`UserID`), KEY `FriendID` (`FriendID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `geoip_country` ( `StartIP` int(11) unsigned NOT NULL, `EndIP` int(11) unsigned NOT NULL, `Code` varchar(2) NOT NULL, PRIMARY KEY (`StartIP`,`EndIP`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; - +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + CREATE TABLE `group_log` ( `ID` int(10) NOT NULL AUTO_INCREMENT, `GroupID` int(10) NOT NULL, @@ -351,8 +351,8 @@ CREATE TABLE `group_log` ( KEY `GroupID` (`GroupID`), KEY `TorrentID` (`TorrentID`), KEY `UserID` (`UserID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `invite_tree` ( `UserID` int(10) NOT NULL DEFAULT '0', `InviterID` int(10) NOT NULL DEFAULT '0', @@ -364,8 +364,8 @@ CREATE TABLE `invite_tree` ( KEY `TreePosition` (`TreePosition`), KEY `TreeID` (`TreeID`), KEY `TreeLevel` (`TreeLevel`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `invites` ( `InviterID` int(10) NOT NULL DEFAULT '0', `InviteKey` char(32) COLLATE utf8_bin NOT NULL, @@ -374,8 +374,8 @@ CREATE TABLE `invites` ( PRIMARY KEY (`InviteKey`), KEY `Expires` (`Expires`), KEY `InviterID` (`InviterID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `ip_bans` ( `ID` int(10) unsigned NOT NULL AUTO_INCREMENT, `FromIP` int(11) unsigned NOT NULL, @@ -385,15 +385,15 @@ CREATE TABLE `ip_bans` ( UNIQUE KEY `FromIP_2` (`FromIP`,`ToIP`), KEY `FromIP` (`FromIP`,`ToIP`), KEY `ToIP` (`ToIP`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; - +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + CREATE TABLE `library_contest` ( `UserID` int(10) NOT NULL, `TorrentID` int(10) NOT NULL, `Points` int(10) NOT NULL DEFAULT '0', PRIMARY KEY (`UserID`,`TorrentID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `log` ( `ID` int(10) unsigned NOT NULL AUTO_INCREMENT, `Message` varchar(400) COLLATE utf8_swedish_ci NOT NULL, @@ -401,8 +401,8 @@ CREATE TABLE `log` ( PRIMARY KEY (`ID`), KEY `Message` (`Message`(255)), KEY `Time` (`Time`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci; + CREATE TABLE `login_attempts` ( `ID` int(10) unsigned NOT NULL AUTO_INCREMENT, `UserID` int(10) unsigned NOT NULL, @@ -414,8 +414,8 @@ CREATE TABLE `login_attempts` ( PRIMARY KEY (`ID`), KEY `UserID` (`UserID`), KEY `IP` (`IP`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `news` ( `ID` int(10) unsigned NOT NULL AUTO_INCREMENT, `UserID` int(10) unsigned NOT NULL, @@ -425,8 +425,8 @@ CREATE TABLE `news` ( PRIMARY KEY (`ID`), KEY `UserID` (`UserID`), KEY `Time` (`Time`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `ocelot_query_times` ( `buffer` enum('users','torrents','snatches','peers') NOT NULL, `starttime` datetime NOT NULL, @@ -434,8 +434,8 @@ CREATE TABLE `ocelot_query_times` ( `querylength` int(11) NOT NULL, `timespent` int(11) NOT NULL, UNIQUE KEY `starttime` (`starttime`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; - +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + CREATE TABLE `permissions` ( `ID` int(10) unsigned NOT NULL AUTO_INCREMENT, `Level` int(10) unsigned NOT NULL, @@ -447,14 +447,14 @@ CREATE TABLE `permissions` ( PRIMARY KEY (`ID`), UNIQUE KEY `Level` (`Level`), KEY `DisplayStaff` (`DisplayStaff`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `pm_conversations` ( `ID` int(12) NOT NULL AUTO_INCREMENT, `Subject` varchar(255) COLLATE utf8_bin DEFAULT NULL, PRIMARY KEY (`ID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `pm_conversations_users` ( `UserID` int(10) NOT NULL DEFAULT '0', `ConvID` int(12) NOT NULL DEFAULT '0', @@ -474,8 +474,8 @@ CREATE TABLE `pm_conversations_users` ( KEY `ReceivedDate` (`ReceivedDate`), KEY `Sticky` (`Sticky`), KEY `ForwardedTo` (`ForwardedTo`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `pm_messages` ( `ID` int(12) NOT NULL AUTO_INCREMENT, `ConvID` int(12) NOT NULL DEFAULT '0', @@ -484,8 +484,8 @@ CREATE TABLE `pm_messages` ( `Body` text COLLATE utf8_bin, PRIMARY KEY (`ID`), KEY `ConvID` (`ConvID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `reports` ( `ID` int(10) unsigned NOT NULL AUTO_INCREMENT, `UserID` int(10) unsigned NOT NULL DEFAULT '0', @@ -502,8 +502,8 @@ CREATE TABLE `reports` ( KEY `Type` (`Type`), KEY `ResolvedTime` (`ResolvedTime`), KEY `ResolverID` (`ResolverID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `reportsv2` ( `ID` int(10) unsigned NOT NULL AUTO_INCREMENT, `ReporterID` int(10) unsigned NOT NULL DEFAULT '0', @@ -526,8 +526,8 @@ CREATE TABLE `reportsv2` ( KEY `LastChangeTime` (`LastChangeTime`), KEY `TorrentID` (`TorrentID`), KEY `ResolverID` (`ResolverID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + CREATE TABLE `requests` ( `ID` int(10) unsigned NOT NULL AUTO_INCREMENT, `UserID` int(10) unsigned NOT NULL DEFAULT '0', @@ -560,16 +560,16 @@ CREATE TABLE `requests` ( KEY `TimeFilled` (`TimeFilled`), KEY `LastVote` (`LastVote`), KEY `GroupID` (`GroupID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `requests_artists` ( `RequestID` int(10) unsigned NOT NULL, `ArtistID` int(10) NOT NULL, `AliasID` int(10) NOT NULL, `Importance` enum('1','2','3','4','5','6','7') COLLATE utf8_bin DEFAULT NULL, PRIMARY KEY (`RequestID`,`AliasID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `requests_comments` ( `ID` int(10) NOT NULL AUTO_INCREMENT, `RequestID` int(10) NOT NULL, @@ -579,16 +579,16 @@ CREATE TABLE `requests_comments` ( `EditedUserID` int(10) DEFAULT NULL, `EditedTime` datetime DEFAULT NULL, PRIMARY KEY (`ID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + CREATE TABLE `requests_tags` ( `TagID` int(10) NOT NULL DEFAULT '0', `RequestID` int(10) NOT NULL DEFAULT '0', PRIMARY KEY (`TagID`,`RequestID`), KEY `TagID` (`TagID`), KEY `RequestID` (`RequestID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `requests_votes` ( `RequestID` int(10) NOT NULL DEFAULT '0', `UserID` int(10) NOT NULL DEFAULT '0', @@ -597,14 +597,14 @@ CREATE TABLE `requests_votes` ( KEY `RequestID` (`RequestID`), KEY `UserID` (`UserID`), KEY `Bounty` (`Bounty`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `schedule` ( `NextHour` int(2) NOT NULL DEFAULT '0', `NextDay` int(2) NOT NULL DEFAULT '0', `NextBiWeekly` int(2) NOT NULL DEFAULT '0' -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `sphinx_delta` ( `ID` int(10) NOT NULL, `GroupName` varchar(255) DEFAULT NULL, @@ -635,8 +635,8 @@ CREATE TABLE `sphinx_delta` ( `RemasterCatalogueNumber` varchar(50) DEFAULT NULL, `FileList` mediumtext, PRIMARY KEY (`ID`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + CREATE TABLE `sphinx_hash` ( `ID` int(10) NOT NULL, `GroupName` varchar(255) DEFAULT NULL, @@ -667,8 +667,8 @@ CREATE TABLE `sphinx_hash` ( `RemasterCatalogueNumber` varchar(50) DEFAULT NULL, `FileList` mediumtext, PRIMARY KEY (`ID`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + CREATE TABLE `sphinx_requests` ( `ID` int(10) unsigned NOT NULL, `UserID` int(10) unsigned NOT NULL DEFAULT '0', @@ -700,8 +700,8 @@ CREATE TABLE `sphinx_requests` ( KEY `Year` (`Year`), KEY `TimeFilled` (`TimeFilled`), KEY `LastVote` (`LastVote`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + CREATE TABLE `sphinx_requests_delta` ( `ID` int(10) unsigned NOT NULL, `UserID` int(10) unsigned NOT NULL DEFAULT '0', @@ -733,8 +733,8 @@ CREATE TABLE `sphinx_requests_delta` ( KEY `Year` (`Year`), KEY `TimeFilled` (`TimeFilled`), KEY `LastVote` (`LastVote`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + CREATE TABLE `staff_blog` ( `ID` int(10) unsigned NOT NULL AUTO_INCREMENT, `UserID` int(10) unsigned NOT NULL, @@ -744,15 +744,15 @@ CREATE TABLE `staff_blog` ( PRIMARY KEY (`ID`), KEY `UserID` (`UserID`), KEY `Time` (`Time`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `staff_blog_visits` ( `UserID` int(10) unsigned NOT NULL, `Time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', UNIQUE KEY `UserID` (`UserID`), CONSTRAINT `staff_blog_visits_ibfk_1` FOREIGN KEY (`UserID`) REFERENCES `users_main` (`ID`) ON DELETE CASCADE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `staff_pm_conversations` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `Subject` text, @@ -764,8 +764,8 @@ CREATE TABLE `staff_pm_conversations` ( `Unread` tinyint(1) DEFAULT NULL, `ResolverID` int(11) DEFAULT NULL, PRIMARY KEY (`ID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + CREATE TABLE `staff_pm_messages` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `UserID` int(11) DEFAULT NULL, @@ -773,8 +773,8 @@ CREATE TABLE `staff_pm_messages` ( `Message` text, `ConvID` int(11) DEFAULT NULL, PRIMARY KEY (`ID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + CREATE TABLE `staff_pm_messages_utf8` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `UserID` int(11) DEFAULT NULL, @@ -782,23 +782,23 @@ CREATE TABLE `staff_pm_messages_utf8` ( `Message` text, `ConvID` int(11) DEFAULT NULL, PRIMARY KEY (`ID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + CREATE TABLE `staff_pm_responses` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `Message` text, `Name` text, PRIMARY KEY (`ID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + CREATE TABLE `stylesheets` ( `ID` int(10) unsigned NOT NULL AUTO_INCREMENT, `Name` varchar(255) COLLATE utf8_bin NOT NULL, `Description` varchar(255) COLLATE utf8_bin NOT NULL, `Default` enum('0','1') COLLATE utf8_bin NOT NULL DEFAULT '0', PRIMARY KEY (`ID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `tags` ( `ID` int(10) NOT NULL AUTO_INCREMENT, `Name` varchar(100) COLLATE utf8_bin DEFAULT NULL, @@ -810,28 +810,28 @@ CREATE TABLE `tags` ( KEY `TagType` (`TagType`), KEY `Uses` (`Uses`), KEY `UserID` (`UserID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `top10_history` ( `ID` int(10) NOT NULL AUTO_INCREMENT, `Date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `Type` enum('Daily','Weekly') DEFAULT NULL, PRIMARY KEY (`ID`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; - +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + CREATE TABLE `top10_history_torrents` ( `HistoryID` int(10) NOT NULL DEFAULT '0', `Rank` tinyint(2) NOT NULL DEFAULT '0', `TorrentID` int(10) NOT NULL DEFAULT '0', `TitleString` varchar(150) NOT NULL DEFAULT '', `TagString` varchar(100) NOT NULL DEFAULT '' -) ENGINE=InnoDB DEFAULT CHARSET=latin1; - +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + CREATE TABLE `top_snatchers` ( `UserID` int(10) unsigned NOT NULL, PRIMARY KEY (`UserID`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; - +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + CREATE TABLE `torrents` ( `ID` int(10) NOT NULL AUTO_INCREMENT, `GroupID` int(10) NOT NULL, @@ -902,8 +902,8 @@ CREATE TABLE `torrents` ( KEY `flags` (`flags`), KEY `LastLogged` (`LastLogged`), KEY `FreeTorrent` (`FreeTorrent`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + CREATE TABLE `torrents_artists` ( `GroupID` int(10) NOT NULL, `ArtistID` int(10) NOT NULL, @@ -916,28 +916,28 @@ CREATE TABLE `torrents_artists` ( KEY `Importance` (`Importance`), KEY `GroupID` (`GroupID`), KEY `UserID` (`UserID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `torrents_bad_files` ( `TorrentID` int(11) NOT NULL DEFAULT '0', `UserID` int(11) NOT NULL DEFAULT '0', `TimeAdded` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' -) ENGINE=InnoDB DEFAULT CHARSET=latin1; - +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + CREATE TABLE `torrents_bad_folders` ( `TorrentID` int(11) NOT NULL, `UserID` int(11) NOT NULL, `TimeAdded` datetime NOT NULL, PRIMARY KEY (`TorrentID`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; - +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + CREATE TABLE `torrents_bad_tags` ( `TorrentID` int(10) NOT NULL DEFAULT '0', `UserID` int(10) NOT NULL DEFAULT '0', `TimeAdded` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', KEY `TimeAdded` (`TimeAdded`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; - +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + CREATE TABLE `torrents_balance_history` ( `TorrentID` int(10) NOT NULL, `GroupID` int(10) NOT NULL, @@ -948,15 +948,15 @@ CREATE TABLE `torrents_balance_history` ( UNIQUE KEY `TorrentID_3` (`TorrentID`,`balance`), KEY `TorrentID` (`TorrentID`), KEY `Time` (`Time`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `torrents_cassette_approved` ( `TorrentID` int(10) NOT NULL DEFAULT '0', `UserID` int(10) NOT NULL DEFAULT '0', `TimeAdded` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', KEY `TimeAdded` (`TimeAdded`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; - +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + CREATE TABLE `torrents_comments` ( `ID` int(10) NOT NULL AUTO_INCREMENT, `GroupID` int(10) NOT NULL, @@ -969,14 +969,14 @@ CREATE TABLE `torrents_comments` ( PRIMARY KEY (`ID`), KEY `TopicID` (`GroupID`), KEY `AuthorID` (`AuthorID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `torrents_files` ( `TorrentID` int(10) NOT NULL, `File` mediumblob NOT NULL, PRIMARY KEY (`TorrentID`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + CREATE TABLE `torrents_group` ( `ID` int(10) NOT NULL AUTO_INCREMENT, `ArtistID` int(10) DEFAULT NULL, @@ -1001,8 +1001,8 @@ CREATE TABLE `torrents_group` ( KEY `Year` (`Year`), KEY `Time` (`Time`), KEY `RevisionID` (`RevisionID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `torrents_groups_log` ( `ID` int(10) NOT NULL AUTO_INCREMENT, `GroupID` int(10) NOT NULL, @@ -1015,8 +1015,8 @@ CREATE TABLE `torrents_groups_log` ( KEY `TorrentID` (`TorrentID`), KEY `GroupID` (`GroupID`), KEY `UserID` (`UserID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `torrents_logs_new` ( `LogID` int(10) NOT NULL AUTO_INCREMENT, `TorrentID` int(10) NOT NULL DEFAULT '0', @@ -1030,15 +1030,22 @@ CREATE TABLE `torrents_logs_new` ( `AdjustmentReason` text, PRIMARY KEY (`LogID`), KEY `TorrentID` (`TorrentID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + CREATE TABLE `torrents_lossymaster_approved` ( `TorrentID` int(10) NOT NULL DEFAULT '0', `UserID` int(10) NOT NULL DEFAULT '0', `TimeAdded` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', KEY `TimeAdded` (`TimeAdded`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; - +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + +CREATE TABLE `torrents_lossyweb_approved` ( + `TorrentID` int(10) NOT NULL DEFAULT '0', + `UserID` int(10) NOT NULL DEFAULT '0', + `TimeAdded` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + KEY `TimeAdded` (`TimeAdded`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + CREATE TABLE `torrents_peerlists` ( `TorrentID` int(11) NOT NULL, `GroupID` int(11) DEFAULT NULL, @@ -1048,8 +1055,8 @@ CREATE TABLE `torrents_peerlists` ( PRIMARY KEY (`TorrentID`), KEY `GroupID` (`GroupID`), KEY `Stats` (`TorrentID`,`Seeders`,`Leechers`,`Snatches`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci; - +) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci; + CREATE TABLE `torrents_peerlists_compare` ( `TorrentID` int(11) NOT NULL, `GroupID` int(11) DEFAULT NULL, @@ -1059,16 +1066,16 @@ CREATE TABLE `torrents_peerlists_compare` ( PRIMARY KEY (`TorrentID`), KEY `GroupID` (`GroupID`), KEY `Stats` (`TorrentID`,`Seeders`,`Leechers`,`Snatches`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci; - +) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci; + CREATE TABLE `torrents_recommended` ( `GroupID` int(10) NOT NULL, `UserID` int(10) NOT NULL, `Time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`GroupID`), KEY `Time` (`Time`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `torrents_tags` ( `TagID` int(10) NOT NULL DEFAULT '0', `GroupID` int(10) NOT NULL DEFAULT '0', @@ -1081,16 +1088,16 @@ CREATE TABLE `torrents_tags` ( KEY `PositiveVotes` (`PositiveVotes`), KEY `NegativeVotes` (`NegativeVotes`), KEY `UserID` (`UserID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `torrents_tags_votes` ( `GroupID` int(10) NOT NULL, `TagID` int(10) NOT NULL, `UserID` int(10) NOT NULL, `Way` enum('up','down') COLLATE utf8_bin NOT NULL DEFAULT 'up', PRIMARY KEY (`GroupID`,`TagID`,`UserID`,`Way`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `tpc_temp` ( `TorrentID` int(11) NOT NULL DEFAULT '0', `GroupID` int(11) NOT NULL DEFAULT '0', @@ -1098,16 +1105,16 @@ CREATE TABLE `tpc_temp` ( `Leechers` int(11) DEFAULT NULL, `Snatched` int(11) DEFAULT NULL, PRIMARY KEY (`GroupID`,`TorrentID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci; + CREATE TABLE `users_collage_subs` ( `UserID` int(10) NOT NULL, `CollageID` int(10) NOT NULL, `LastVisit` datetime DEFAULT NULL, PRIMARY KEY (`UserID`,`CollageID`), KEY `CollageID` (`CollageID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `users_downloads` ( `UserID` int(10) NOT NULL, `TorrentID` int(1) NOT NULL, @@ -1117,8 +1124,8 @@ CREATE TABLE `users_downloads` ( KEY `UserID` (`UserID`), KEY `UserID_2` (`UserID`), KEY `TorrentID_2` (`TorrentID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + CREATE TABLE `users_dupes` ( `GroupID` int(10) unsigned NOT NULL, `UserID` int(10) unsigned NOT NULL, @@ -1126,8 +1133,8 @@ CREATE TABLE `users_dupes` ( KEY `GroupID` (`GroupID`), CONSTRAINT `users_dupes_ibfk_1` FOREIGN KEY (`UserID`) REFERENCES `users_main` (`ID`) ON DELETE CASCADE, CONSTRAINT `users_dupes_ibfk_2` FOREIGN KEY (`GroupID`) REFERENCES `dupe_groups` (`ID`) ON DELETE CASCADE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `users_freeleeches` ( `UserID` int(10) NOT NULL, `TorrentID` int(10) NOT NULL, @@ -1137,21 +1144,21 @@ CREATE TABLE `users_freeleeches` ( `Uses` int(10) NOT NULL DEFAULT '1', PRIMARY KEY (`UserID`,`TorrentID`), KEY `Time` (`Time`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + CREATE TABLE `users_geodistribution` ( `Code` varchar(2) NOT NULL, `Users` int(10) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + CREATE TABLE `users_history_emails` ( `UserID` int(10) NOT NULL, `Email` varchar(255) DEFAULT NULL, `Time` datetime DEFAULT NULL, `IP` varchar(15) DEFAULT NULL, KEY `UserID` (`UserID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + CREATE TABLE `users_history_ips` ( `UserID` int(10) NOT NULL, `IP` varchar(15) NOT NULL DEFAULT '0.0.0.0', @@ -1163,22 +1170,22 @@ CREATE TABLE `users_history_ips` ( KEY `StartTime` (`StartTime`), KEY `EndTime` (`EndTime`), KEY `IP_2` (`IP`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + CREATE TABLE `users_history_passkeys` ( `UserID` int(10) NOT NULL, `OldPassKey` varchar(32) DEFAULT NULL, `NewPassKey` varchar(32) DEFAULT NULL, `ChangeTime` datetime DEFAULT NULL, `ChangerIP` varchar(15) DEFAULT NULL -) ENGINE=InnoDB DEFAULT CHARSET=latin1; - +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + CREATE TABLE `users_history_passwords` ( `UserID` int(10) NOT NULL, `ChangeTime` datetime DEFAULT NULL, `ChangerIP` varchar(15) DEFAULT NULL -) ENGINE=InnoDB DEFAULT CHARSET=latin1; - +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + CREATE TABLE `users_info` ( `UserID` int(10) unsigned NOT NULL, `StyleID` int(10) unsigned NOT NULL, @@ -1239,15 +1246,15 @@ CREATE TABLE `users_info` ( KEY `RatioWatchDownload` (`RatioWatchDownload`), KEY `BitcoinAddress` (`BitcoinAddress`(4)), KEY `BitcoinAddress_2` (`BitcoinAddress`(4)) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + CREATE TABLE `users_levels` ( `UserID` int(10) unsigned NOT NULL, `PermissionID` int(10) unsigned NOT NULL, PRIMARY KEY (`UserID`,`PermissionID`), KEY `PermissionID` (`PermissionID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `users_main` ( `ID` int(10) unsigned NOT NULL AUTO_INCREMENT, `Username` varchar(20) NOT NULL, @@ -1302,8 +1309,8 @@ CREATE TABLE `users_main` ( KEY `torrent_pass` (`torrent_pass`), KEY `RequiredRatio` (`RequiredRatio`), KEY `cc_index` (`ipcc`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + CREATE TABLE `users_notify_filters` ( `ID` int(12) NOT NULL AUTO_INCREMENT, `UserID` int(10) NOT NULL, @@ -1326,8 +1333,8 @@ CREATE TABLE `users_notify_filters` ( KEY `UserID` (`UserID`), KEY `FromYear` (`FromYear`), KEY `ToYear` (`ToYear`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + CREATE TABLE `users_notify_torrents` ( `UserID` int(10) NOT NULL, `FilterID` int(10) NOT NULL, @@ -1337,8 +1344,8 @@ CREATE TABLE `users_notify_torrents` ( PRIMARY KEY (`UserID`,`TorrentID`), KEY `TorrentID` (`TorrentID`), KEY `UserID` (`UserID`,`UnRead`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + CREATE TABLE `users_points` ( `UserID` int(10) NOT NULL, `GroupID` int(10) NOT NULL, @@ -1346,8 +1353,8 @@ CREATE TABLE `users_points` ( PRIMARY KEY (`UserID`,`GroupID`), KEY `UserID` (`UserID`), KEY `GroupID` (`GroupID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `users_points_requests` ( `UserID` int(10) NOT NULL, `RequestID` int(10) NOT NULL, @@ -1355,8 +1362,8 @@ CREATE TABLE `users_points_requests` ( PRIMARY KEY (`RequestID`), KEY `UserID` (`UserID`), KEY `RequestID` (`RequestID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `users_sessions` ( `UserID` int(10) NOT NULL, `SessionID` char(32) NOT NULL, @@ -1371,14 +1378,14 @@ CREATE TABLE `users_sessions` ( KEY `LastUpdate` (`LastUpdate`), KEY `Active` (`Active`), KEY `ActiveAgeKeep` (`Active`,`LastUpdate`,`KeepLogged`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + CREATE TABLE `users_subscriptions` ( `UserID` int(10) NOT NULL, `TopicID` int(10) NOT NULL, PRIMARY KEY (`UserID`,`TopicID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `users_torrent_history` ( `UserID` int(10) unsigned NOT NULL, `NumTorrents` int(6) unsigned NOT NULL, @@ -1390,30 +1397,30 @@ CREATE TABLE `users_torrent_history` ( PRIMARY KEY (`UserID`,`NumTorrents`,`Date`), KEY `Finished` (`Finished`), KEY `Date` (`Date`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `users_torrent_history_snatch` ( `UserID` int(10) unsigned NOT NULL, `NumSnatches` int(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`UserID`), KEY `NumSnatches` (`NumSnatches`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `users_torrent_history_temp` ( `UserID` int(10) unsigned NOT NULL, `NumTorrents` int(6) unsigned NOT NULL DEFAULT '0', `SumTime` bigint(20) unsigned NOT NULL DEFAULT '0', `SeedingAvg` int(6) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`UserID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `wiki_aliases` ( `Alias` varchar(50) NOT NULL, `UserID` int(10) NOT NULL, `ArticleID` int(10) DEFAULT NULL, PRIMARY KEY (`Alias`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + CREATE TABLE `wiki_articles` ( `ID` int(10) NOT NULL AUTO_INCREMENT, `Revision` int(10) NOT NULL DEFAULT '1', @@ -1424,8 +1431,8 @@ CREATE TABLE `wiki_articles` ( `Date` datetime DEFAULT NULL, `Author` int(10) DEFAULT NULL, PRIMARY KEY (`ID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci; + CREATE TABLE `wiki_artists` ( `RevisionID` int(12) NOT NULL AUTO_INCREMENT, `PageID` int(10) NOT NULL DEFAULT '0', @@ -1438,8 +1445,8 @@ CREATE TABLE `wiki_artists` ( KEY `PageID` (`PageID`), KEY `UserID` (`UserID`), KEY `Time` (`Time`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `wiki_revisions` ( `ID` int(10) NOT NULL, `Revision` int(10) NOT NULL, @@ -1447,8 +1454,8 @@ CREATE TABLE `wiki_revisions` ( `Body` mediumtext, `Date` datetime DEFAULT NULL, `Author` int(10) DEFAULT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + CREATE TABLE `wiki_torrents` ( `RevisionID` int(12) NOT NULL AUTO_INCREMENT, `PageID` int(10) NOT NULL DEFAULT '0', @@ -1461,8 +1468,8 @@ CREATE TABLE `wiki_torrents` ( KEY `PageID` (`PageID`), KEY `UserID` (`UserID`), KEY `Time` (`Time`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + CREATE TABLE `xbt_announce_log` ( `id` int(11) NOT NULL AUTO_INCREMENT, `ipa` int(10) unsigned NOT NULL, @@ -1477,8 +1484,8 @@ CREATE TABLE `xbt_announce_log` ( `mtime` int(11) NOT NULL, `useragent` varchar(51) NOT NULL, PRIMARY KEY (`id`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + CREATE TABLE `xbt_cheat` ( `id` int(11) NOT NULL AUTO_INCREMENT, `uid` int(11) NOT NULL, @@ -1487,26 +1494,26 @@ CREATE TABLE `xbt_cheat` ( `tstamp` int(11) NOT NULL, `uploaded` bigint(20) NOT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + CREATE TABLE `xbt_client_whitelist` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `peer_id` varchar(20) DEFAULT NULL, `vstring` varchar(200) DEFAULT '', PRIMARY KEY (`id`), UNIQUE KEY `peer_id` (`peer_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + CREATE TABLE `xbt_config` ( `name` varchar(255) NOT NULL, `value` varchar(255) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + CREATE TABLE `xbt_deny_from_hosts` ( `begin` int(11) NOT NULL, `end` int(11) NOT NULL -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + CREATE TABLE `xbt_files` ( `fid` int(11) NOT NULL AUTO_INCREMENT, `info_hash` blob NOT NULL, @@ -1528,8 +1535,8 @@ CREATE TABLE `xbt_files` ( `freetorrent` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`fid`), UNIQUE KEY `info_hash` (`info_hash`(20)) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + CREATE TABLE `xbt_files_users` ( `uid` int(11) NOT NULL, `active` tinyint(1) NOT NULL, @@ -1553,8 +1560,8 @@ CREATE TABLE `xbt_files_users` ( KEY `fid_idx` (`fid`), KEY `mtime_idx` (`mtime`), KEY `uid_active` (`uid`,`active`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + CREATE TABLE `xbt_scrape_log` ( `id` int(11) NOT NULL AUTO_INCREMENT, `ipa` int(11) NOT NULL, @@ -1562,8 +1569,8 @@ CREATE TABLE `xbt_scrape_log` ( `uid` int(11) NOT NULL, `mtime` int(11) NOT NULL, PRIMARY KEY (`id`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + CREATE TABLE `xbt_snatched` ( `uid` int(11) NOT NULL DEFAULT '0', `tstamp` int(11) NOT NULL, @@ -1572,8 +1579,8 @@ CREATE TABLE `xbt_snatched` ( KEY `fid` (`fid`), KEY `uid` (`uid`), KEY `tstamp` (`tstamp`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + CREATE TABLE `xbt_users` ( `uid` int(11) NOT NULL AUTO_INCREMENT, `name` char(8) NOT NULL, @@ -1588,31 +1595,31 @@ CREATE TABLE `xbt_users` ( `uploaded` bigint(20) NOT NULL, `fid_end` int(11) NOT NULL, PRIMARY KEY (`uid`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -INSERT INTO permissions (ID, Level, Name, `Values`, DisplayStaff) VALUES (15, 1000, 'Sysop', 'a:98:{s:10:\"site_leech\";i:1;s:11:\"site_upload\";i:1;s:9:\"site_vote\";i:1;s:20:\"site_submit_requests\";i:1;s:21:\"site_see_old_requests\";i:1;s:20:\"site_advanced_search\";i:1;s:10:\"site_top10\";i:1;s:19:\"site_advanced_top10\";i:1;s:20:\"site_torrents_notify\";i:1;s:20:\"site_collages_create\";i:1;s:20:\"site_collages_manage\";i:1;s:20:\"site_collages_delete\";i:1;s:23:\"site_collages_subscribe\";i:1;s:22:\"site_collages_personal\";i:1;s:28:\"site_collages_renamepersonal\";i:1;s:19:\"site_make_bookmarks\";i:1;s:14:\"site_edit_wiki\";i:1;s:22:\"site_can_invite_always\";i:1;s:27:\"site_send_unlimited_invites\";i:1;s:22:\"site_moderate_requests\";i:1;s:18:\"site_delete_artist\";i:1;s:20:\"site_moderate_forums\";i:1;s:17:\"site_admin_forums\";i:1;s:23:\"site_forums_double_post\";i:1;s:14:\"site_view_flow\";i:1;s:18:\"site_view_full_log\";i:1;s:28:\"site_view_torrent_snatchlist\";i:1;s:18:\"site_recommend_own\";i:1;s:27:\"site_manage_recommendations\";i:1;s:15:\"site_delete_tag\";i:1;s:23:\"site_disable_ip_history\";i:1;s:14:\"zip_downloader\";i:1;s:10:\"site_debug\";i:1;s:17:\"site_proxy_images\";i:1;s:16:\"site_search_many\";i:1;s:20:\"users_edit_usernames\";i:1;s:16:\"users_edit_ratio\";i:1;s:20:\"users_edit_own_ratio\";i:1;s:17:\"users_edit_titles\";i:1;s:18:\"users_edit_avatars\";i:1;s:18:\"users_edit_invites\";i:1;s:22:\"users_edit_watch_hours\";i:1;s:21:\"users_edit_reset_keys\";i:1;s:19:\"users_edit_profiles\";i:1;s:18:\"users_view_friends\";i:1;s:20:\"users_reset_own_keys\";i:1;s:19:\"users_edit_password\";i:1;s:19:\"users_promote_below\";i:1;s:16:\"users_promote_to\";i:1;s:16:\"users_give_donor\";i:1;s:10:\"users_warn\";i:1;s:19:\"users_disable_users\";i:1;s:19:\"users_disable_posts\";i:1;s:17:\"users_disable_any\";i:1;s:18:\"users_delete_users\";i:1;s:18:\"users_view_invites\";i:1;s:20:\"users_view_seedleech\";i:1;s:19:\"users_view_uploaded\";i:1;s:15:\"users_view_keys\";i:1;s:14:\"users_view_ips\";i:1;s:16:\"users_view_email\";i:1;s:23:\"users_override_paranoia\";i:1;s:12:\"users_logout\";i:1;s:20:\"users_make_invisible\";i:1;s:9:\"users_mod\";i:1;s:13:\"torrents_edit\";i:1;s:15:\"torrents_delete\";i:1;s:20:\"torrents_delete_fast\";i:1;s:18:\"torrents_freeleech\";i:1;s:20:\"torrents_search_fast\";i:1;s:17:\"torrents_hide_dnu\";i:1;s:19:\"torrents_fix_ghosts\";i:1;s:17:\"admin_manage_news\";i:1;s:17:\"admin_manage_blog\";i:1;s:18:\"admin_manage_polls\";i:1;s:19:\"admin_manage_forums\";i:1;s:16:\"admin_manage_fls\";i:1;s:13:\"admin_reports\";i:1;s:26:\"admin_advanced_user_search\";i:1;s:18:\"admin_create_users\";i:1;s:15:\"admin_donor_log\";i:1;s:19:\"admin_manage_ipbans\";i:1;s:9:\"admin_dnu\";i:1;s:17:\"admin_clear_cache\";i:1;s:15:\"admin_whitelist\";i:1;s:24:\"admin_manage_permissions\";i:1;s:14:\"admin_schedule\";i:1;s:17:\"admin_login_watch\";i:1;s:17:\"admin_manage_wiki\";i:1;s:18:\"admin_update_geoip\";i:1;s:21:\"site_collages_recover\";i:1;s:19:\"torrents_add_artist\";i:1;s:13:\"edit_unknowns\";i:1;s:19:\"forums_polls_create\";i:1;s:21:\"forums_polls_moderate\";i:1;s:12:\"project_team\";i:1;s:25:\"torrents_edit_vanityhouse\";i:1;s:23:\"artist_edit_vanityhouse\";i:1;}', '1'), (2, 100, 'User', 'a:7:{s:10:\"site_leech\";i:1;s:11:\"site_upload\";i:1;s:9:\"site_vote\";i:1;s:20:\"site_advanced_search\";i:1;s:10:\"site_top10\";i:1;s:14:\"site_edit_wiki\";i:1;s:19:\"torrents_add_artist\";i:1;}', '0'), (3, 150, 'Member', 'a:10:{s:10:\"site_leech\";i:1;s:11:\"site_upload\";i:1;s:9:\"site_vote\";i:1;s:20:\"site_submit_requests\";i:1;s:20:\"site_advanced_search\";i:1;s:10:\"site_top10\";i:1;s:20:\"site_collages_manage\";i:1;s:19:\"site_make_bookmarks\";i:1;s:14:\"site_edit_wiki\";i:1;s:19:\"torrents_add_artist\";i:1;}', '0'), (4, 200, 'Power User', 'a:14:{s:10:\"site_leech\";i:1;s:11:\"site_upload\";i:1;s:9:\"site_vote\";i:1;s:20:\"site_submit_requests\";i:1;s:20:\"site_advanced_search\";i:1;s:10:\"site_top10\";i:1;s:20:\"site_torrents_notify\";i:1;s:20:\"site_collages_create\";i:1;s:20:\"site_collages_manage\";i:1;s:19:\"site_make_bookmarks\";i:1;s:14:\"site_edit_wiki\";i:1;s:14:\"zip_downloader\";i:1;s:19:\"forums_polls_create\";i:1;s:19:\"torrents_add_artist\";i:1;} ', '0'), (5, 250, 'Elite', 'a:18:{s:10:\"site_leech\";i:1;s:11:\"site_upload\";i:1;s:9:\"site_vote\";i:1;s:20:\"site_submit_requests\";i:1;s:20:\"site_advanced_search\";i:1;s:10:\"site_top10\";i:1;s:20:\"site_torrents_notify\";i:1;s:20:\"site_collages_create\";i:1;s:20:\"site_collages_manage\";i:1;s:19:\"site_advanced_top10\";i:1;s:19:\"site_make_bookmarks\";i:1;s:14:\"site_edit_wiki\";i:1;s:15:\"site_delete_tag\";i:1;s:14:\"zip_downloader\";i:1;s:19:\"forums_polls_create\";i:1;s:13:\"torrents_edit\";i:1;s:19:\"torrents_add_artist\";i:1;s:17:\"admin_clear_cache\";i:1;}', '0'), (20, 202, 'Donor', 'a:9:{s:9:\"site_vote\";i:1;s:20:\"site_submit_requests\";i:1;s:20:\"site_advanced_search\";i:1;s:10:\"site_top10\";i:1;s:20:\"site_torrents_notify\";i:1;s:20:\"site_collages_create\";i:1;s:20:\"site_collages_manage\";i:1;s:14:\"zip_downloader\";i:1;s:19:\"forums_polls_create\";i:1;}', '0'), (19, 201, 'Artist', 'a:9:{s:10:\"site_leech\";s:1:\"1\";s:11:\"site_upload\";s:1:\"1\";s:9:\"site_vote\";s:1:\"1\";s:20:\"site_submit_requests\";s:1:\"1\";s:20:\"site_advanced_search\";s:1:\"1\";s:10:\"site_top10\";s:1:\"1\";s:19:\"site_make_bookmarks\";s:1:\"1\";s:14:\"site_edit_wiki\";s:1:\"1\";s:18:\"site_recommend_own\";s:1:\"1\";}', '0'); - -INSERT INTO stylesheets (ID, Name, Description, `Default`) VALUES (9, 'Proton', 'Proton by Protiek', '0'), (2, 'Layer cake', 'Grey stylesheet by Emm', '0'), (21, 'postmod', 'Upgrade on anorex', '1'); - -INSERT INTO wiki_articles (ID, Revision, Title, Body, MinClassRead, MinClassEdit, Date, Author) VALUES (1, 1, 'Wiki', 'Welcome to your new wiki! Hope this works.', 100, 475, NOW(), 1); - -INSERT INTO wiki_aliases (Alias, UserID, ArticleID) VALUES ('wiki', 1, 1); - -INSERT INTO wiki_revisions (ID, Revision, Title, Body, Date, Author) VALUES (1, 1, 'Wiki', 'Welcome to your new wiki! Hope this works.', NOW(), 1); - -INSERT INTO forums (ID, CategoryID, Sort, Name, Description, MinClassRead, MinClassWrite, MinClassCreate, NumTopics, NumPosts, LastPostID, LastPostAuthorID, LastPostTopicID, LastPostTime) VALUES (1, 1, 20, 'Your Site', 'Totally rad forum', 100, 100, 100, 0, 0, 0, 0, 0, '0000-00-00 00:00:00'), (2, 5, 30, 'Chat', 'Expect this to fill up with spam', 100, 100, 100, 0, 0, 0, 0, 0, '0000-00-00 00:00:00'), (3, 10, 40, 'Help!', 'I fell down and I cant get up', 100, 100, 100, 0, 0, 0, 0, 0, '0000-00-00 00:00:00'), (4, 20, 100, 'Trash', 'Every thread ends up here eventually', 100, 500, 500, 0, 0, 0, 0, 0, '0000-00-00 00:00:00'); - -INSERT INTO tags (ID, Name, TagType, Uses, UserID) VALUES (1, 'rock', 'genre', 0, 1),(2, 'pop', 'genre', 0, 1),(3, 'female.fronted.symphonic.death.metal', 'genre', 0, 1); - -INSERT INTO schedule (NextHour, NextDay, NextBiWeekly) VALUES (0,0,0); - -INSERT INTO forums_categories (ID, Sort, Name) VALUES (1,1,'Site'); - -INSERT INTO forums_categories (ID, Sort, Name) VALUES (5,5,'Community'); - -INSERT INTO forums_categories (ID, Sort, Name) VALUES (10,10,'Help'); - -INSERT INTO forums_categories (ID, Sort, Name) VALUES (8,8,'Music'); - -INSERT INTO forums_categories (ID, Sort, Name) VALUES (20,20,'Trash'); - +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + +INSERT INTO permissions (ID, Level, Name, `Values`, DisplayStaff) VALUES (15, 1000, 'Sysop', 'a:98:{s:10:\"site_leech\";i:1;s:11:\"site_upload\";i:1;s:9:\"site_vote\";i:1;s:20:\"site_submit_requests\";i:1;s:21:\"site_see_old_requests\";i:1;s:20:\"site_advanced_search\";i:1;s:10:\"site_top10\";i:1;s:19:\"site_advanced_top10\";i:1;s:20:\"site_torrents_notify\";i:1;s:20:\"site_collages_create\";i:1;s:20:\"site_collages_manage\";i:1;s:20:\"site_collages_delete\";i:1;s:23:\"site_collages_subscribe\";i:1;s:22:\"site_collages_personal\";i:1;s:28:\"site_collages_renamepersonal\";i:1;s:19:\"site_make_bookmarks\";i:1;s:14:\"site_edit_wiki\";i:1;s:22:\"site_can_invite_always\";i:1;s:27:\"site_send_unlimited_invites\";i:1;s:22:\"site_moderate_requests\";i:1;s:18:\"site_delete_artist\";i:1;s:20:\"site_moderate_forums\";i:1;s:17:\"site_admin_forums\";i:1;s:23:\"site_forums_double_post\";i:1;s:14:\"site_view_flow\";i:1;s:18:\"site_view_full_log\";i:1;s:28:\"site_view_torrent_snatchlist\";i:1;s:18:\"site_recommend_own\";i:1;s:27:\"site_manage_recommendations\";i:1;s:15:\"site_delete_tag\";i:1;s:23:\"site_disable_ip_history\";i:1;s:14:\"zip_downloader\";i:1;s:10:\"site_debug\";i:1;s:17:\"site_proxy_images\";i:1;s:16:\"site_search_many\";i:1;s:20:\"users_edit_usernames\";i:1;s:16:\"users_edit_ratio\";i:1;s:20:\"users_edit_own_ratio\";i:1;s:17:\"users_edit_titles\";i:1;s:18:\"users_edit_avatars\";i:1;s:18:\"users_edit_invites\";i:1;s:22:\"users_edit_watch_hours\";i:1;s:21:\"users_edit_reset_keys\";i:1;s:19:\"users_edit_profiles\";i:1;s:18:\"users_view_friends\";i:1;s:20:\"users_reset_own_keys\";i:1;s:19:\"users_edit_password\";i:1;s:19:\"users_promote_below\";i:1;s:16:\"users_promote_to\";i:1;s:16:\"users_give_donor\";i:1;s:10:\"users_warn\";i:1;s:19:\"users_disable_users\";i:1;s:19:\"users_disable_posts\";i:1;s:17:\"users_disable_any\";i:1;s:18:\"users_delete_users\";i:1;s:18:\"users_view_invites\";i:1;s:20:\"users_view_seedleech\";i:1;s:19:\"users_view_uploaded\";i:1;s:15:\"users_view_keys\";i:1;s:14:\"users_view_ips\";i:1;s:16:\"users_view_email\";i:1;s:23:\"users_override_paranoia\";i:1;s:12:\"users_logout\";i:1;s:20:\"users_make_invisible\";i:1;s:9:\"users_mod\";i:1;s:13:\"torrents_edit\";i:1;s:15:\"torrents_delete\";i:1;s:20:\"torrents_delete_fast\";i:1;s:18:\"torrents_freeleech\";i:1;s:20:\"torrents_search_fast\";i:1;s:17:\"torrents_hide_dnu\";i:1;s:19:\"torrents_fix_ghosts\";i:1;s:17:\"admin_manage_news\";i:1;s:17:\"admin_manage_blog\";i:1;s:18:\"admin_manage_polls\";i:1;s:19:\"admin_manage_forums\";i:1;s:16:\"admin_manage_fls\";i:1;s:13:\"admin_reports\";i:1;s:26:\"admin_advanced_user_search\";i:1;s:18:\"admin_create_users\";i:1;s:15:\"admin_donor_log\";i:1;s:19:\"admin_manage_ipbans\";i:1;s:9:\"admin_dnu\";i:1;s:17:\"admin_clear_cache\";i:1;s:15:\"admin_whitelist\";i:1;s:24:\"admin_manage_permissions\";i:1;s:14:\"admin_schedule\";i:1;s:17:\"admin_login_watch\";i:1;s:17:\"admin_manage_wiki\";i:1;s:18:\"admin_update_geoip\";i:1;s:21:\"site_collages_recover\";i:1;s:19:\"torrents_add_artist\";i:1;s:13:\"edit_unknowns\";i:1;s:19:\"forums_polls_create\";i:1;s:21:\"forums_polls_moderate\";i:1;s:12:\"project_team\";i:1;s:25:\"torrents_edit_vanityhouse\";i:1;s:23:\"artist_edit_vanityhouse\";i:1;}', '1'), (2, 100, 'User', 'a:7:{s:10:\"site_leech\";i:1;s:11:\"site_upload\";i:1;s:9:\"site_vote\";i:1;s:20:\"site_advanced_search\";i:1;s:10:\"site_top10\";i:1;s:14:\"site_edit_wiki\";i:1;s:19:\"torrents_add_artist\";i:1;}', '0'), (3, 150, 'Member', 'a:10:{s:10:\"site_leech\";i:1;s:11:\"site_upload\";i:1;s:9:\"site_vote\";i:1;s:20:\"site_submit_requests\";i:1;s:20:\"site_advanced_search\";i:1;s:10:\"site_top10\";i:1;s:20:\"site_collages_manage\";i:1;s:19:\"site_make_bookmarks\";i:1;s:14:\"site_edit_wiki\";i:1;s:19:\"torrents_add_artist\";i:1;}', '0'), (4, 200, 'Power User', 'a:14:{s:10:\"site_leech\";i:1;s:11:\"site_upload\";i:1;s:9:\"site_vote\";i:1;s:20:\"site_submit_requests\";i:1;s:20:\"site_advanced_search\";i:1;s:10:\"site_top10\";i:1;s:20:\"site_torrents_notify\";i:1;s:20:\"site_collages_create\";i:1;s:20:\"site_collages_manage\";i:1;s:19:\"site_make_bookmarks\";i:1;s:14:\"site_edit_wiki\";i:1;s:14:\"zip_downloader\";i:1;s:19:\"forums_polls_create\";i:1;s:19:\"torrents_add_artist\";i:1;} ', '0'), (5, 250, 'Elite', 'a:18:{s:10:\"site_leech\";i:1;s:11:\"site_upload\";i:1;s:9:\"site_vote\";i:1;s:20:\"site_submit_requests\";i:1;s:20:\"site_advanced_search\";i:1;s:10:\"site_top10\";i:1;s:20:\"site_torrents_notify\";i:1;s:20:\"site_collages_create\";i:1;s:20:\"site_collages_manage\";i:1;s:19:\"site_advanced_top10\";i:1;s:19:\"site_make_bookmarks\";i:1;s:14:\"site_edit_wiki\";i:1;s:15:\"site_delete_tag\";i:1;s:14:\"zip_downloader\";i:1;s:19:\"forums_polls_create\";i:1;s:13:\"torrents_edit\";i:1;s:19:\"torrents_add_artist\";i:1;s:17:\"admin_clear_cache\";i:1;}', '0'), (20, 202, 'Donor', 'a:9:{s:9:\"site_vote\";i:1;s:20:\"site_submit_requests\";i:1;s:20:\"site_advanced_search\";i:1;s:10:\"site_top10\";i:1;s:20:\"site_torrents_notify\";i:1;s:20:\"site_collages_create\";i:1;s:20:\"site_collages_manage\";i:1;s:14:\"zip_downloader\";i:1;s:19:\"forums_polls_create\";i:1;}', '0'), (19, 201, 'Artist', 'a:9:{s:10:\"site_leech\";s:1:\"1\";s:11:\"site_upload\";s:1:\"1\";s:9:\"site_vote\";s:1:\"1\";s:20:\"site_submit_requests\";s:1:\"1\";s:20:\"site_advanced_search\";s:1:\"1\";s:10:\"site_top10\";s:1:\"1\";s:19:\"site_make_bookmarks\";s:1:\"1\";s:14:\"site_edit_wiki\";s:1:\"1\";s:18:\"site_recommend_own\";s:1:\"1\";}', '0'); + +INSERT INTO stylesheets (ID, Name, Description, `Default`) VALUES (9, 'Proton', 'Proton by Protiek', '0'), (2, 'Layer cake', 'Grey stylesheet by Emm', '0'), (21, 'postmod', 'Upgrade on anorex', '1'); + +INSERT INTO wiki_articles (ID, Revision, Title, Body, MinClassRead, MinClassEdit, Date, Author) VALUES (1, 1, 'Wiki', 'Welcome to your new wiki! Hope this works.', 100, 475, NOW(), 1); + +INSERT INTO wiki_aliases (Alias, UserID, ArticleID) VALUES ('wiki', 1, 1); + +INSERT INTO wiki_revisions (ID, Revision, Title, Body, Date, Author) VALUES (1, 1, 'Wiki', 'Welcome to your new wiki! Hope this works.', NOW(), 1); + +INSERT INTO forums (ID, CategoryID, Sort, Name, Description, MinClassRead, MinClassWrite, MinClassCreate, NumTopics, NumPosts, LastPostID, LastPostAuthorID, LastPostTopicID, LastPostTime) VALUES (1, 1, 20, 'Your Site', 'Totally rad forum', 100, 100, 100, 0, 0, 0, 0, 0, '0000-00-00 00:00:00'), (2, 5, 30, 'Chat', 'Expect this to fill up with spam', 100, 100, 100, 0, 0, 0, 0, 0, '0000-00-00 00:00:00'), (3, 10, 40, 'Help!', 'I fell down and I cant get up', 100, 100, 100, 0, 0, 0, 0, 0, '0000-00-00 00:00:00'), (4, 20, 100, 'Trash', 'Every thread ends up here eventually', 100, 500, 500, 0, 0, 0, 0, 0, '0000-00-00 00:00:00'); + +INSERT INTO tags (ID, Name, TagType, Uses, UserID) VALUES (1, 'rock', 'genre', 0, 1),(2, 'pop', 'genre', 0, 1),(3, 'female.fronted.symphonic.death.metal', 'genre', 0, 1); + +INSERT INTO schedule (NextHour, NextDay, NextBiWeekly) VALUES (0,0,0); + +INSERT INTO forums_categories (ID, Sort, Name) VALUES (1,1,'Site'); + +INSERT INTO forums_categories (ID, Sort, Name) VALUES (5,5,'Community'); + +INSERT INTO forums_categories (ID, Sort, Name) VALUES (10,10,'Help'); + +INSERT INTO forums_categories (ID, Sort, Name) VALUES (8,8,'Music'); + +INSERT INTO forums_categories (ID, Sort, Name) VALUES (20,20,'Trash'); + diff --git a/sections/reportsv2/array.php b/sections/reportsv2/array.php index d148a613..9990b093 100644 --- a/sections/reportsv2/array.php +++ b/sections/reportsv2/array.php @@ -19,7 +19,7 @@ $Types = array( 'master' => array( 'dupe' => array( - 'priority' => '1', + 'priority' => '10', 'title' => 'Dupe', 'report_messages' => array( 'Please specify a link to the original torrent.' @@ -35,7 +35,7 @@ ) ), 'banned' => array( - 'priority' => '23', + 'priority' => '230', 'title' => 'Specifically Banned', 'report_messages' => array( 'Please specify exactly which entry on the Do Not Upload list this is violating.' @@ -51,7 +51,7 @@ ) ), 'urgent' => array( - 'priority' => '28', + 'priority' => '280', 'title' => 'Urgent', 'report_messages' => array( 'This report type is only for the very urgent reports, usually for personal information being found within a torrent.', @@ -72,7 +72,7 @@ ) ), 'other' => array( - 'priority' => '20', + 'priority' => '200', 'title' => 'Other', 'report_messages' => array( 'Please include as much information as possible to verify the report' @@ -87,7 +87,7 @@ ) ), 'trump' => array( - 'priority' => '2', + 'priority' => '20', 'title' => 'Trump', 'report_messages' => array( 'Please list the specific reason(s) the newer torrent trumps the older one.', @@ -107,7 +107,7 @@ ), '1' => array( //Music Resolves 'tag_trump' => array ( - 'priority' => '5', + 'priority' => '50', 'title' => 'Tag Trump', 'report_messages' => array( 'Please list the specific tag(s) the newer torrent trumps the older one.', @@ -125,7 +125,7 @@ ) ), 'vinyl_trump' => array( - 'priority' => '6', + 'priority' => '60', 'title' => 'Vinyl Trump', 'report_messages' => array( 'Please list the specific reason(s) the newer torrent trumps the older one.', @@ -144,7 +144,7 @@ ) ), 'folder_trump' => array ( - 'priority' => '4', + 'priority' => '40', 'title' => 'Bad Folder Name Trump', 'report_messages' => array( 'Please list the folder name and what is wrong with it', @@ -163,7 +163,7 @@ ) ), 'file_trump' => array ( - 'priority' => '3', + 'priority' => '30', 'title' => 'Bad File Names Trump', 'report_messages' => array( 'Please describe what is wrong with the file names.', @@ -181,7 +181,7 @@ ) ), 'tracks_missing' => array( - 'priority' => '24', + 'priority' => '240', 'title' => 'Track(s) Missing', 'report_messages' => array( 'Please list the track number and title of the missing track', @@ -201,7 +201,7 @@ ) ), 'discs_missing' => array( - 'priority' => '12', + 'priority' => '120', 'title' => 'Disc(s) Missing', 'report_messages' => array( 'If possible, please provide a link to Amazon.com or another source showing the proper track listing.' @@ -220,7 +220,7 @@ ) ), 'bonus_tracks' => array( - 'priority' => '9', + 'priority' => '90', 'title' => 'Bonus Tracks Only', 'report_messages' => array( 'If possible, please provide a link to Amazon.com or another source showing the proper track listing.' @@ -238,7 +238,7 @@ ) ), 'transcode' => array( - 'priority' => '25', + 'priority' => '250', 'title' => 'Transcode', 'report_messages' => array( "Please list the tracks you checked, and the method used to determine the transcode.", @@ -257,7 +257,7 @@ ) ), 'low' => array( - 'priority' => '17', + 'priority' => '170', 'title' => 'Low Bitrate', 'report_messages' => array( "Please tell us the actual bitrate, and the software used to check." @@ -274,7 +274,7 @@ ) ), 'mutt' => array( - 'priority' => '18', + 'priority' => '180', 'title' => 'Mutt Rip', 'report_messages' => array( "Please list at least two (2) tracks which have different bitrates and/or encoders." @@ -291,7 +291,7 @@ ) ), 'single_track' => array( - 'priority' => '27', + 'priority' => '270', 'title' => 'Unsplit Album Rip', 'report_messages' => array( "If possible, please provide a link to Amazon.com or another source showing the proper track listing.", @@ -311,7 +311,7 @@ ) ), 'tags_lots' => array( - 'priority' => '31', + 'priority' => '82', 'title' => 'Bad Tags / No Tags at All', 'report_messages' => array( "Please specify which tags are missing, and whether they're missing from all tracks.", @@ -330,7 +330,7 @@ ) ), 'folders_bad' => array( - 'priority' => '30', + 'priority' => '81', 'title' => 'Bad Folder Names', 'report_messages' => array( "Please specify the issue with the folder names.", @@ -347,7 +347,7 @@ ) ), 'wrong_format' => array( - 'priority' => '32', + 'priority' => '320', 'title' => 'Wrong Specified Format', 'report_messages' => array( "Please specify the correct format." @@ -363,7 +363,7 @@ ) ), 'wrong_media' => array( - 'priority' => '33', + 'priority' => '330', 'title' => 'Wrong Specified Media', 'report_messages' => array( "Please specify the correct media." @@ -378,7 +378,7 @@ ) ), 'format' => array( - 'priority' => '10', + 'priority' => '100', 'title' => 'Disallowed Format', 'report_messages' => array( "If applicable, list the relevant tracks" @@ -397,7 +397,7 @@ ) ), 'bitrate' => array( - 'priority' => '15', + 'priority' => '150', 'title' => 'Inaccurate Bitrate', 'report_messages' => array( "Please tell us the actual bitrate, and the software used to check.", @@ -416,7 +416,7 @@ ) ), 'source' => array( - 'priority' => '21', + 'priority' => '210', 'title' => 'Radio/TV/FM/WEB Rip', 'report_messages' => array( "Please include as much information as possible to verify the report" @@ -434,7 +434,7 @@ ) ), 'discog' => array( - 'priority' => '13', + 'priority' => '130', 'title' => 'Discography', 'report_messages' => array( "Please include as much information as possible to verify the report" @@ -451,7 +451,7 @@ ) ), 'user_discog' => array( - 'priority' => '29', + 'priority' => '290', 'title' => 'User Compilation', 'report_messages' => array( "Please include as much information as possible to verify the report" @@ -469,7 +469,7 @@ ) ), 'lineage' => array( - 'priority' => '19', + 'priority' => '190', 'title' => 'No Lineage Info', 'report_messages' => array( "Please list the specific information missing from the torrent (hardware, software, etc.)" @@ -485,7 +485,7 @@ ) ), 'edited' => array( - 'priority' => '14', + 'priority' => '140', 'title' => 'Edited Log', 'report_messages' => array( "Please explain exactly where you believe the log was edited.", @@ -503,7 +503,7 @@ ) ), 'audience' => array( - 'priority' => '7', + 'priority' => '70', 'title' => 'Audience Recording', 'report_messages' => array( "Please include as much information as possible to verify the report" @@ -520,7 +520,7 @@ ) ), 'filename' => array( - 'priority' => '8', + 'priority' => '80', 'title' => 'Bad File Names', 'report_messages' => array( ), @@ -538,7 +538,7 @@ ) ), 'cassette' => array( - 'priority' => '26', + 'priority' => '260', 'title' => 'Unapproved Cassette', 'report_messages' => array( "If the album was never released other than on cassette, please include a source." @@ -557,7 +557,7 @@ ) ), 'skips' => array( - 'priority' => '22', + 'priority' => '220', 'title' => 'Skips / Encode Errors', 'report_messages' => array( "Please tell us which track(s) we should check.", @@ -575,7 +575,7 @@ ) ), 'rescore' => array( - 'priority' => '16', + 'priority' => '160', 'title' => 'Log Rescore Request', 'report_messages' => array( "It could help us if you say exactly why you believe this log requires rescoring.", @@ -597,7 +597,7 @@ ), '2' => array( //Applications Rules Broken 'missing_crack' => array( - 'priority' => '7', + 'priority' => '70', 'title' => 'No Crack/Keygen/Patch', 'report_messages' => array( 'Please include as much information as possible to verify the report', @@ -614,7 +614,7 @@ ) ), 'game' => array( - 'priority' => '5', + 'priority' => '50', 'title' => 'Game', 'report_messages' => array( 'Please include as much information as possible to verify the report', @@ -632,7 +632,7 @@ ) ), 'free' => array( - 'priority' => '4', + 'priority' => '40', 'title' => 'Freely Available', 'report_messages' => array( 'Please include a link to a source of information or to the freely available app itself.', @@ -649,7 +649,7 @@ ) ), 'description' => array( - 'priority' => '8', + 'priority' => '80', 'title' => 'No Description', 'report_messages' => array( 'If possible, please provide a link to an accurate description', @@ -666,7 +666,7 @@ ) ), 'pack' => array( - 'priority' => '2', + 'priority' => '20', 'title' => 'Archived Pack', 'report_messages' => array( 'Please include as much information as possible to verify the report' @@ -684,7 +684,7 @@ ) ), 'collection' => array( - 'priority' => '3', + 'priority' => '30', 'title' => 'Collection of Cracks', 'report_messages' => array( 'Please include as much information as possible to verify the report' @@ -701,7 +701,7 @@ ) ), 'hack' => array( - 'priority' => '6', + 'priority' => '60', 'title' => 'Hacking Tool', 'report_messages' => array( 'Please include as much information as possible to verify the report', @@ -718,7 +718,7 @@ ) ), 'virus' => array( - 'priority' => '6', + 'priority' => '60', 'title' => 'Contains Virus', 'report_messages' => array( 'Please include as much information as possible to verify the report. Please also double check that your virus scanner is not incorrectly identifying a keygen or crack as a virus.', @@ -736,7 +736,7 @@ ) ), 'notwork' => array( - 'priority' => '6', + 'priority' => '60', 'title' => 'Not Working', 'report_messages' => array( 'Please include as much information as possible to verify the report.', @@ -756,7 +756,7 @@ ), '3' => array( //Ebook Rules Broken 'unrelated' => array( - 'priority' => '27', + 'priority' => '270', 'title' => 'Unrelated Ebooks', 'report_messages' => array( 'Please include as much information as possible to verify the report' @@ -774,7 +774,7 @@ ), '4' => array( //Audiobook Rules Broken 'skips' => array( - 'priority' => '21', + 'priority' => '210', 'title' => 'Skips / Encode Errors', 'report_messages' => array( "Please tell us which track(s) we should check.", @@ -794,7 +794,7 @@ ), '5' => array( //E-Learning vidoes Rules Broken 'dissallowed' => array( - 'priority' => '2', + 'priority' => '20', 'title' => 'Disallowed Topic', 'report_messages' => array( 'Please include as much information as possible to verify the report' @@ -813,7 +813,7 @@ ), '6' => array( //Comedy Rules Broken 'talkshow' => array( - 'priority' => '27', + 'priority' => '270', 'title' => 'Talkshow/Podcast', 'report_messages' => array( 'Please include as much information as possible to verify the report' @@ -832,7 +832,7 @@ ), '7' => array( //Comics Rules Broken 'titles' => array( - 'priority' => '18', + 'priority' => '180', 'title' => 'Multiple Comic Titles', 'report_messages' => array( 'Please include as much information as possible to verify the report' @@ -849,7 +849,7 @@ ) ), 'volumes' => array( - 'priority' => '19', + 'priority' => '190', 'title' => 'Multiple Volumes', 'report_messages' => array( 'Please include as much information as possible to verify the report' diff --git a/sections/schedule/index.php b/sections/schedule/index.php index 8b6ec210..7860cf11 100644 --- a/sections/schedule/index.php +++ b/sections/schedule/index.php @@ -526,7 +526,7 @@ function next_hour() { sleep(5); // Send email $DB->query("SELECT um.Username, um.Email FROM users_info AS ui JOIN users_main AS um ON um.ID=ui.UserID - LEFT JOIN users_levels AS ul ON ul.UserID = um.ID AND ul.PermissionID = '".TC."' + LEFT JOIN users_levels AS ul ON ul.UserID = um.ID AND ul.PermissionID = '".CELEB."' WHERE um.PermissionID IN ('".USER."', '".MEMBER ."') AND um.LastAccess<'".time_minus(3600*24*110, true)."' AND um.LastAccess>'".time_minus(3600*24*111, true)."' @@ -540,7 +540,7 @@ function next_hour() { send_email($Email, 'Your '.SITE_NAME.' account is about to be disabled', $Body); } $DB->query("SELECT um.ID FROM users_info AS ui JOIN users_main AS um ON um.ID=ui.UserID - LEFT JOIN users_levels AS ul ON ul.UserID = um.ID AND ul.PermissionID = '".TC."' + LEFT JOIN users_levels AS ul ON ul.UserID = um.ID AND ul.PermissionID = '".CELEB."' WHERE um.PermissionID IN ('".USER."', '".MEMBER ."') AND um.LastAccess<'".time_minus(3600*24*30*4)."' AND um.LastAccess!='0000-00-00 00:00:00' diff --git a/sections/torrents/details.php b/sections/torrents/details.php index 2af686f9..6d32db92 100644 --- a/sections/torrents/details.php +++ b/sections/torrents/details.php @@ -386,12 +386,12 @@ function filelist($Str) { //t.ID, t.Media, t.Format, t.Encoding, t.Remastered, t.RemasterYear, t.RemasterTitle, t.RemasterRecordLabel,t.RemasterCatalogueNumber, //t.Scene, t.HasLog, t.HasCue, t.LogScore, t.FileCount, t.Size, t.Seeders, t.Leechers, t.Snatched, t.FreeTorrent, t.Time, t.Description, //t.FileList, t.FilePath, t.UserID, t.last_action, - //(bad tags), (bad folders), (bad filenames), (cassette approved), (lossy master approved), t.LastReseedRequest, LogInDB + //(bad tags), (bad folders), (bad filenames), (cassette approved), (lossy master approved), (lossy web approved), t.LastReseedRequest, LogInDB list($TorrentID, $Media, $Format, $Encoding, $Remastered, $RemasterYear, $RemasterTitle, $RemasterRecordLabel, $RemasterCatalogueNumber, $Scene, $HasLog, $HasCue, $LogScore, $FileCount, $Size, $Seeders, $Leechers, $Snatched, $FreeTorrent, $TorrentTime, $Description, $FileList, $FilePath, $UserID, $LastActive, - $BadTags, $BadFolders, $BadFiles, $CassetteApproved, $LossymasterApproved, $LastReseedRequest, $LogInDB, $HasFile) = $Torrent; + $BadTags, $BadFolders, $BadFiles, $CassetteApproved, $LossymasterApproved, $LossywebApproved, $LastReseedRequest, $LogInDB, $HasFile) = $Torrent; if($Remastered && !$RemasterYear) { $FirstUnknown = !isset($FirstUnknown); @@ -468,6 +468,7 @@ function filelist($Str) { if(!empty($BadFolders)) { $ExtraInfo.=$AddExtra.'Bad Folders'; $AddExtra=' / '; } if(!empty($CassetteApproved)) { $ExtraInfo.=$AddExtra.'Cassette Approved'; $AddExtra=' / '; } if(!empty($LossymasterApproved)) { $ExtraInfo.=$AddExtra.'Lossy Master Approved'; $AddExtra=' / '; } + if(!empty($LossywebApproved)) { $ExtraInfo.=$AddExtra.'Lossy WEB Approved'; $AddExtra = ' / '; } if(!empty($BadFiles)) { $ExtraInfo.=$AddExtra.'Bad File Names'; $AddExtra=' / '; } if($GroupCategoryID == 1 diff --git a/sections/torrents/edit.php b/sections/torrents/edit.php index 0acbae71..9610526c 100644 --- a/sections/torrents/edit.php +++ b/sections/torrents/edit.php @@ -44,7 +44,8 @@ bf.TorrentID AS BadFolders, bfi.TorrentID AS BadFiles, ca.TorrentID AS CassetteApproved, - lma.TorrentID AS LossymasterApproved + lma.TorrentID AS LossymasterApproved, + lwa.TorrentID AS LossywebApproved FROM torrents AS t LEFT JOIN torrents_group AS tg ON tg.ID=t.GroupID LEFT JOIN artists_group AS ag ON ag.ArtistID=tg.ArtistID @@ -53,6 +54,7 @@ LEFT JOIN torrents_bad_files AS bfi ON bfi.TorrentID=t.ID LEFT JOIN torrents_cassette_approved AS ca ON ca.TorrentID=t.ID LEFT JOIN torrents_lossymaster_approved AS lma ON lma.TorrentID=t.ID + LEFT JOIN torrents_lossyweb_approved AS lwa ON lwa.TorrentID=t.id WHERE t.ID='$TorrentID'"); list($Properties) = $DB->to_array(false,MYSQLI_BOTH); diff --git a/sections/torrents/functions.php b/sections/torrents/functions.php index 28cb1618..a19bfd8f 100644 --- a/sections/torrents/functions.php +++ b/sections/torrents/functions.php @@ -88,6 +88,7 @@ function get_group_info($GroupID, $Return = true, $RevisionID = 0) { tfi.TorrentID, ca.TorrentID, lma.TorrentID, + lwa.TorrentID, t.LastReseedRequest, tln.TorrentID AS LogInDB, t.ID AS HasFile @@ -97,6 +98,7 @@ function get_group_info($GroupID, $Return = true, $RevisionID = 0) { LEFT JOIN torrents_bad_files AS tfi on tfi.TorrentID=t.ID LEFT JOIN torrents_cassette_approved AS ca on ca.TorrentID=t.ID LEFT JOIN torrents_lossymaster_approved AS lma on lma.TorrentID=t.ID + LEFT JOIN torrents_lossyweb_approved AS lwa on lwa.TorrentID=t.ID LEFT JOIN torrents_logs_new AS tln ON tln.TorrentID=t.ID WHERE t.GroupID='".db_string($GroupID)."' GROUP BY t.ID @@ -159,4 +161,4 @@ function get_group_requests($GroupID) { } $Requests = get_requests($Requests); return $Requests['matches']; -} \ No newline at end of file +} diff --git a/sections/torrents/takeedit.php b/sections/torrents/takeedit.php index f996f563..4de5e1fc 100644 --- a/sections/torrents/takeedit.php +++ b/sections/torrents/takeedit.php @@ -46,6 +46,7 @@ $Properties['BadFiles'] = (isset($_POST['bad_files'])) ? 1 : 0; $Properties['CassetteApproved'] = (isset($_POST['cassette_approved']))? 1 : 0; $Properties['LossymasterApproved'] = (isset($_POST['lossymaster_approved']))? 1 : 0; +$Properties['LossywebApproved'] = (isset($_POST['lossyweb_approved'])) ? 1 : 0; $Properties['LibraryUpload'] = (isset($_POST['library_upload']))? 1 : 0; $Properties['LibraryPoints'] = (isset($_POST['library_points']))? $_POST['library_points'] : 0; $Properties['Format'] = $_POST['format']; @@ -364,6 +365,15 @@ if ($lmaID && !$Properties['LossymasterApproved']) { $DB->query("DELETE FROM torrents_lossymaster_approved WHERE TorrentID='$TorrentID'"); } + + $DB->query("SELECT TorrentID FROM torrents_lossyweb_approved WHERE TorrentID='$TorrentID'"); + list($lwID) = $DB->next_record(); + if (!$lwID && $Properties['LossywebApproved']) { + $DB->query("INSERT INTO torrents_lossyweb_approved VALUES($TorrentID, $LoggedUser[ID], '".sqltime()."')"); + } + if ($lwID && !$Properties['LossywebApproved']) { + $DB->query("DELETE FROM torrents_lossyweb_approved WHERE TorrentID='$TorrentID'"); + } } $SQL .= " diff --git a/sections/upload/upload.php b/sections/upload/upload.php index eeaa4e9c..a0d62ec7 100644 --- a/sections/upload/upload.php +++ b/sections/upload/upload.php @@ -105,7 +105,7 @@

':''?>Last Updated: ':''?>

The following releases are currently forbidden from being uploaded to the site. Do not upload them unless your torrent meets a condition specified in the comment. - (Show) + (Show)

Lossy master ApprovedLossy Master Approved /> Check this box if the torrent is an approved lossy master.
Lossy Web Approved + /> Check this box if the torrent is an approved lossy WEB release. +