#
# Structure for the `avps` table :
#
DROP TABLE IF EXISTS `avps`;
CREATE TABLE `avps` (
`arg` varchar(20) NOT NULL default '',
`value_s` text NOT NULL,
`value_i` int(11) NOT NULL default '0',
`value_u` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`arg`)
) ENGINE=MyISAM;
#
# Structure for the `bans` table :
#
DROP TABLE IF EXISTS `bans`;
CREATE TABLE `bans` (
`id` int(10) unsigned NOT NULL auto_increment,
`added` datetime NOT NULL default '0000-00-00 00:00:00',
`addedby` int(10) unsigned NOT NULL default '0',
`comment` varchar(255) NOT NULL default '',
`first` bigint(11) default NULL,
`last` bigint(11) default NULL,
PRIMARY KEY (`id`),
KEY `first_last` (`first`,`last`)
) ENGINE=MyISAM;
#
# Structure for the `blocks` table :
#
DROP TABLE IF EXISTS `blocks`;
CREATE TABLE `blocks` (
`id` int(10) unsigned NOT NULL auto_increment,
`userid` int(10) unsigned NOT NULL default '0',
`blockid` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `userfriend` (`userid`,`blockid`)
) ENGINE=MyISAM;
#
# Structure for the `bonus` table :
#
DROP TABLE IF EXISTS `bonus`;
CREATE TABLE `bonus` (
`id` int(5) NOT NULL auto_increment,
`name` varchar(50) NOT NULL default '',
`points` decimal(7,2) NOT NULL default '0.00',
`description` text NOT NULL,
`type` varchar(10) NOT NULL default 'traffic',
`quanity` bigint(20) unsigned NOT NULL default '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM;
#
# Structure for the `bookmarks` table :
#
DROP TABLE IF EXISTS `bookmarks`;
CREATE TABLE `bookmarks` (
`id` int(10) unsigned NOT NULL auto_increment,
`userid` int(10) unsigned NOT NULL default '0',
`torrentid` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM;
#
# Structure for the `captcha` table :
#
DROP TABLE IF EXISTS `captcha`;
CREATE TABLE `captcha` (
`imagehash` varchar(32) NOT NULL default '',
`imagestring` varchar(8) NOT NULL default '',
`dateline` bigint(30) NOT NULL default '0',
KEY `imagehash` (`imagehash`),
KEY `dateline` (`dateline`)
) ENGINE=MyISAM;
#
# Structure for the `categories` table :
#
DROP TABLE IF EXISTS `categories`;
CREATE TABLE `categories` (
`id` int(10) unsigned NOT NULL auto_increment,
`sort` int(10) NOT NULL default '0',
`name` varchar(30) NOT NULL default '',
`image` varchar(255) NOT NULL default '',
PRIMARY KEY (`id`)
) ENGINE=MyISAM;
#
# Structure for the `checkcomm` table :
#
DROP TABLE IF EXISTS `checkcomm`;
CREATE TABLE `checkcomm` (
`id` int(11) NOT NULL auto_increment,
`checkid` int(11) NOT NULL default '0',
`userid` int(11) NOT NULL default '0',
`torrent` tinyint(4) NOT NULL default '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM;
#
# Structure for the `comments` table :
#
DROP TABLE IF EXISTS `comments`;
CREATE TABLE `comments` (
`id` int(10) unsigned NOT NULL auto_increment,
`user` int(10) unsigned NOT NULL default '0',
`torrent` int(10) unsigned NOT NULL default '0',
`added` datetime NOT NULL default '0000-00-00 00:00:00',
`text` text NOT NULL,
`ori_text` text NOT NULL,
`editedby` int(10) unsigned NOT NULL default '0',
`editedat` datetime NOT NULL default '0000-00-00 00:00:00',
`ip` varchar(15) NOT NULL default '',
PRIMARY KEY (`id`),
KEY `user` (`user`),
KEY `torrent` (`torrent`)
) ENGINE=MyISAM;
#
# Structure for the `comments_parsed` table :
#
DROP TABLE IF EXISTS `comments_parsed`;
CREATE TABLE `comments_parsed` (
`cid` int(10) unsigned NOT NULL DEFAULT '0',
`text_hash` varchar(32) NOT NULL DEFAULT '',
`text_parsed` text NOT NULL,
PRIMARY KEY (`cid`)
) ENGINE=MyISAM;
#
# Structure for the `countries` table :
#
DROP TABLE IF EXISTS `countries`;
CREATE TABLE `countries` (
`id` int(10) unsigned NOT NULL auto_increment,
`name` varchar(50) default NULL,
`flagpic` varchar(50) default NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM;
#
# Structure for the `faq` table :
#
DROP TABLE IF EXISTS `faq`;
CREATE TABLE `faq` (
`id` int(10) NOT NULL auto_increment,
`type` set('categ','item') NOT NULL default 'item',
`question` text NOT NULL,
`answer` text NOT NULL,
`flag` tinyint(1) NOT NULL default '1',
`categ` int(10) NOT NULL default '0',
`order` int(10) NOT NULL default '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM;
#
# Structure for the `files` table :
#
DROP TABLE IF EXISTS `files`;
CREATE TABLE `files` (
`id` int(10) unsigned NOT NULL auto_increment,
`torrent` int(10) unsigned NOT NULL default '0',
`filename` varchar(255) NOT NULL default '',
`size` bigint(20) unsigned NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `torrent` (`torrent`)
) ENGINE=MyISAM;
#
# Structure for the `friends` table :
#
DROP TABLE IF EXISTS `friends`;
CREATE TABLE `friends` (
`id` int(10) unsigned NOT NULL auto_increment,
`userid` int(10) unsigned NOT NULL default '0',
`friendid` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `userfriend` (`userid`,`friendid`)
) ENGINE=MyISAM;
#
# Structure for the `indexreleases` table :
#
DROP TABLE IF EXISTS `indexreleases`;
CREATE TABLE `indexreleases` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`torrentid` int(10) NOT NULL DEFAULT '0',
`name` text NOT NULL,
`cat` int(10) NOT NULL DEFAULT '0',
`poster` text NOT NULL,
`imdb` text NOT NULL,
`top` text NOT NULL,
`center` text NOT NULL,
`bottom` text NOT NULL,
`added` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM;
#
# Structure for the `invites` table :
#
DROP TABLE IF EXISTS `invites`;
CREATE TABLE `invites` (
`id` int(10) unsigned NOT NULL auto_increment,
`inviter` int(10) unsigned NOT NULL default '0',
`inviteid` int(10) NOT NULL default '0',
`invite` varchar(32) NOT NULL default '',
`time_invited` datetime NOT NULL default '0000-00-00 00:00:00',
`confirmed` char(3) NOT NULL default 'no',
PRIMARY KEY (`id`),
KEY `inviter` (`id`)
) ENGINE=MyISAM;
#
# Structure for the `messages` table :
#
DROP TABLE IF EXISTS `messages`;
CREATE TABLE `messages` (
`id` int(10) unsigned NOT NULL auto_increment,
`sender` int(10) unsigned NOT NULL default '0',
`receiver` int(10) unsigned NOT NULL default '0',
`added` datetime default NULL,
`subject` varchar(255) NOT NULL default '',
`msg` text,
`unread` enum('yes','no') NOT NULL default 'yes',
`poster` int(10) unsigned NOT NULL default '0',
`location` tinyint(1) NOT NULL default '1',
`saved` enum('no','yes') NOT NULL default 'no',
PRIMARY KEY (`id`),
KEY `receiver` (`receiver`),
KEY `sender` (`sender`),
KEY `poster` (`poster`)
) ENGINE=MyISAM;
#
# Structure for the `news` table :
#
DROP TABLE IF EXISTS `news`;
CREATE TABLE `news` (
`id` int(10) unsigned NOT NULL auto_increment,
`userid` int(11) NOT NULL default '0',
`added` datetime NOT NULL default '0000-00-00 00:00:00',
`body` text NOT NULL,
`subject` text NOT NULL,
PRIMARY KEY (`id`),
KEY `added` (`added`)
) ENGINE=MyISAM;
#
# Structure for the `notconnectablepmlog` table :
#
DROP TABLE IF EXISTS `notconnectablepmlog`;
CREATE TABLE `notconnectablepmlog` (
`id` int(10) unsigned NOT NULL auto_increment,
`user` int(10) unsigned NOT NULL default '0',
`date` datetime default NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM;
#
# Structure for the `orbital_blocks` table :
#
DROP TABLE IF EXISTS `orbital_blocks`;
CREATE TABLE `orbital_blocks` (
`bid` int(10) NOT NULL auto_increment,
`bkey` varchar(15) NOT NULL default '',
`title` varchar(60) NOT NULL default '',
`content` text NOT NULL,
`bposition` char(1) NOT NULL default '',
`weight` int(10) NOT NULL default '1',
`active` int(1) NOT NULL default '1',
`time` varchar(14) NOT NULL default '0',
`blockfile` varchar(255) NOT NULL default '',
`view` int(1) NOT NULL default '0',
`expire` varchar(14) NOT NULL default '0',
`action` char(1) NOT NULL default '',
`which` varchar(255) NOT NULL default '',
`allow_hide` enum('yes','no') NOT NULL default 'yes',
PRIMARY KEY (`bid`),
KEY `title` (`title`),
KEY `weight` (`weight`),
KEY `active` (`active`)
) ENGINE=MyISAM;
#
# Structure for the `peers` table :
#
DROP TABLE IF EXISTS `peers`;
CREATE TABLE `peers` (
`id` int(10) unsigned NOT NULL auto_increment,
`torrent` int(10) unsigned NOT NULL default '0',
`peer_id` varchar(20) NOT NULL default '',
`ip` varchar(64) NOT NULL default '',
`port` smallint(5) unsigned NOT NULL default '0',
`uploaded` bigint(20) unsigned NOT NULL default '0',
`downloaded` bigint(20) unsigned NOT NULL default '0',
`uploadoffset` bigint(20) unsigned NOT NULL default '0',
`downloadoffset` bigint(20) unsigned NOT NULL default '0',
`to_go` bigint(20) unsigned NOT NULL default '0',
`seeder` enum('yes','no') NOT NULL default 'no',
`started` datetime NOT NULL default '0000-00-00 00:00:00',
`last_action` datetime NOT NULL default '0000-00-00 00:00:00',
`prev_action` datetime NOT NULL default '0000-00-00 00:00:00',
`connectable` enum('yes','no') NOT NULL default 'yes',
`userid` int(10) unsigned NOT NULL default '0',
`agent` varchar(60) NOT NULL default '',
`finishedat` int(10) unsigned NOT NULL default '0',
`passkey` varchar(32) NOT NULL default '',
PRIMARY KEY (`id`),
UNIQUE KEY `torrent_peer_id` (`torrent`,`peer_id`),
KEY `torrent` (`torrent`),
KEY `torrent_seeder` (`torrent`,`seeder`),
KEY `last_action` (`last_action`),
KEY `connectable` (`connectable`),
KEY `userid` (`userid`)
) ENGINE=MyISAM;
#
# Structure for the `pollanswers` table :
#
DROP TABLE IF EXISTS `pollanswers`;
CREATE TABLE `pollanswers` (
`id` int(10) unsigned NOT NULL auto_increment,
`pollid` int(10) unsigned NOT NULL default '0',
`userid` int(10) unsigned NOT NULL default '0',
`selection` tinyint(3) unsigned NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `pollid` (`pollid`),
KEY `selection` (`selection`),
KEY `userid` (`userid`)
) ENGINE=MyISAM;
#
# Structure for the `polls` table :
#
DROP TABLE IF EXISTS `polls`;
CREATE TABLE `polls` (
`id` int(10) unsigned NOT NULL auto_increment,
`added` datetime NOT NULL default '0000-00-00 00:00:00',
`question` varchar(255) NOT NULL default '',
`option0` varchar(40) NOT NULL default '',
`option1` varchar(40) NOT NULL default '',
`option2` varchar(40) NOT NULL default '',
`option3` varchar(40) NOT NULL default '',
`option4` varchar(40) NOT NULL default '',
`option5` varchar(40) NOT NULL default '',
`option6` varchar(40) NOT NULL default '',
`option7` varchar(40) NOT NULL default '',
`option8` varchar(40) NOT NULL default '',
`option9` varchar(40) NOT NULL default '',
`option10` varchar(40) NOT NULL default '',
`option11` varchar(40) NOT NULL default '',
`option12` varchar(40) NOT NULL default '',
`option13` varchar(40) NOT NULL default '',
`option14` varchar(40) NOT NULL default '',
`option15` varchar(40) NOT NULL default '',
`option16` varchar(40) NOT NULL default '',
`option17` varchar(40) NOT NULL default '',
`option18` varchar(40) NOT NULL default '',
`option19` varchar(40) NOT NULL default '',
`sort` enum('yes','no') NOT NULL default 'yes',
PRIMARY KEY (`id`)
) ENGINE=MyISAM;
#
# Structure for the `ratings` table :
#
DROP TABLE IF EXISTS `ratings`;
CREATE TABLE `ratings` (
`id` int(6) NOT NULL auto_increment,
`torrent` int(10) NOT NULL default '0',
`user` int(6) NOT NULL default '0',
`rating` int(1) NOT NULL default '0',
`added` datetime NOT NULL default '0000-00-00 00:00:00',
PRIMARY KEY (`id`)
) ENGINE=MyISAM;
#
# Structure for the `readtorrents` table :
#
DROP TABLE IF EXISTS `readtorrents`;
CREATE TABLE `readtorrents` (
`id` int(11) NOT NULL auto_increment,
`userid` int(11) NOT NULL default '0',
`torrentid` int(11) NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `read` (`userid`,`torrentid`)
) ENGINE=MyISAM;
#
# Structure for the `sessions` table :
#
DROP TABLE IF EXISTS `sessions`;
CREATE TABLE `sessions` (
`sid` varchar(32) NOT NULL default '',
`uid` int(10) NOT NULL default '0',
`username` varchar(40) NOT NULL default '',
`class` tinyint(4) NOT NULL default '0',
`ip` varchar(40) NOT NULL default '',
`time` bigint(30) NOT NULL default '0',
`url` varchar(150) NOT NULL default '',
`useragent` text,
PRIMARY KEY (`sid`),
KEY `time` (`time`),
KEY `uid` (`uid`),
KEY `url` (`url`)
) ENGINE=MyISAM;
#
# Structure for the `simpaty` table :
#
DROP TABLE IF EXISTS `simpaty`;
CREATE TABLE `simpaty` (
`id` int(10) unsigned NOT NULL auto_increment,
`touserid` int(10) unsigned NOT NULL default '0',
`fromuserid` int(10) unsigned NOT NULL default '0',
`fromusername` varchar(40) NOT NULL default '',
`bad` tinyint(1) unsigned NOT NULL default '0',
`good` tinyint(1) unsigned NOT NULL default '0',
`type` varchar(60) NOT NULL default '',
`respect_time` datetime NOT NULL default '0000-00-00 00:00:00',
`description` text NOT NULL,
PRIMARY KEY (`id`),
KEY `touserid` (`touserid`),
KEY `fromuserid` (`fromuserid`),
KEY `fromusername` (`fromusername`)
) ENGINE=MyISAM;
#
# Structure for the `sitelog` table :
#
DROP TABLE IF EXISTS `sitelog`;
CREATE TABLE `sitelog` (
`id` int(10) unsigned NOT NULL auto_increment,
`added` datetime default NULL,
`color` varchar(11) NOT NULL default 'transparent',
`txt` text,
`type` varchar(8) NOT NULL default 'tracker',
PRIMARY KEY (`id`),
KEY `added` (`added`)
) ENGINE=MyISAM;
#
# Structure for the `snatched` table :
#
DROP TABLE IF EXISTS `snatched`;
CREATE TABLE `snatched` (
`id` int(11) NOT NULL auto_increment,
`userid` int(11) default '0',
`torrent` int(10) unsigned NOT NULL default '0',
`port` smallint(5) unsigned NOT NULL default '0',
`uploaded` bigint(20) unsigned NOT NULL default '0',
`downloaded` bigint(20) unsigned NOT NULL default '0',
`to_go` bigint(20) unsigned NOT NULL default '0',
`seeder` enum('yes','no') NOT NULL default 'no',
`last_action` datetime NOT NULL default '0000-00-00 00:00:00',
`startdat` datetime NOT NULL default '0000-00-00 00:00:00',
`completedat` datetime NOT NULL default '0000-00-00 00:00:00',
`connectable` enum('yes','no') NOT NULL default 'yes',
`finished` enum('yes','no') NOT NULL default 'no',
PRIMARY KEY (`id`),
KEY `snatch` (`torrent`,`userid`)
) ENGINE=MyISAM;
#
# Structure for the `thanks` table :
#
DROP TABLE IF EXISTS `thanks`;
CREATE TABLE `thanks` (
`id` int(11) NOT NULL auto_increment,
`torrentid` int(11) NOT NULL default '0',
`userid` int(11) NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `thank` (`torrentid`,`userid`)
) ENGINE=MyISAM;
#
# Structure for the `torrents` table :
#
DROP TABLE IF EXISTS `torrents`;
CREATE TABLE `torrents` (
`id` int(10) unsigned NOT NULL auto_increment,
`info_hash` varbinary(40) NOT NULL default '',
`name` varchar(255) NOT NULL default '',
`keywords` varchar(255) NOT NULL default '',
`description` text NOT NULL,
`filename` varchar(255) NOT NULL default '',
`save_as` varchar(255) NOT NULL default '',
`descr` text NOT NULL,
`ori_descr` text NOT NULL,
`image1` text NOT NULL,
`image2` text NOT NULL,
`image3` text NOT NULL,
`image4` text NOT NULL,
`image5` text NOT NULL,
`category` int(10) unsigned NOT NULL default '0',
`size` bigint(20) unsigned NOT NULL default '0',
`added` datetime NOT NULL default '0000-00-00 00:00:00',
`type` enum('single','multi') NOT NULL default 'single',
`numfiles` int(10) unsigned NOT NULL default '0',
`comments` int(10) unsigned NOT NULL default '0',
`views` int(10) unsigned NOT NULL default '0',
`hits` int(10) unsigned NOT NULL default '0',
`times_completed` int(10) unsigned NOT NULL default '0',
`leechers` int(10) unsigned NOT NULL default '0',
`remote_leechers` int(10) unsigned NOT NULL DEFAULT '0',
`seeders` int(10) unsigned NOT NULL default '0',
`remote_seeders` int(10) unsigned NOT NULL DEFAULT '0',
`last_action` datetime NOT NULL default '0000-00-00 00:00:00',
`last_mt_update` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`last_reseed` datetime NOT NULL default '0000-00-00 00:00:00',
`visible` enum('yes','no') NOT NULL default 'yes',
`banned` enum('yes','no') NOT NULL default 'no',
`owner` int(10) unsigned NOT NULL default '0',
`numratings` int(10) unsigned NOT NULL default '0',
`ratingsum` int(10) unsigned NOT NULL default '0',
`free` enum('yes','silver','no') default 'no',
`not_sticky` enum('yes','no') NOT NULL DEFAULT 'yes',
`moderated` enum('yes','no') NOT NULL default 'no',
`moderatedby` int(10) unsigned default '0',
`multitracker` enum('yes','no') NOT NULL DEFAULT 'no',
PRIMARY KEY (`id`),
UNIQUE KEY `info_hash` (`info_hash`),
KEY `owner` (`owner`),
KEY `visible` (`visible`),
KEY `category_visible` (`category`,`visible`),
KEY `vnsi` (`visible`, `not_sticky`, `id`)
) ENGINE=MyISAM;
#
# Structure for the `torrents_descr` table :
#
DROP TABLE IF EXISTS `torrents_descr`;
CREATE TABLE `torrents_descr` (
`tid` int(10) unsigned NOT NULL DEFAULT '0',
`descr_hash` varchar(32) NOT NULL DEFAULT '',
`descr_parsed` text NOT NULL,
PRIMARY KEY (`tid`)
) ENGINE=MyISAM;
#
# Structure for the `torrents_scrape` table :
#
DROP TABLE IF EXISTS `torrents_scrape`;
CREATE TABLE `torrents_scrape` (
`tid` int(10) unsigned NOT NULL DEFAULT '0',
`info_hash` varbinary(40) NOT NULL DEFAULT '',
`url` varchar(100) NOT NULL DEFAULT '',
`seeders` int(10) unsigned NOT NULL DEFAULT '0',
`leechers` int(10) unsigned NOT NULL DEFAULT '0',
`completed` int(10) unsigned NOT NULL DEFAULT '0',
`last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`state` enum('ok','error') NOT NULL DEFAULT 'ok',
`error` varchar(100) NOT NULL DEFAULT '',
PRIMARY KEY (`info_hash`,`url`),
KEY `tid` (`tid`)
) ENGINE=MyISAM;
#
# Structure for the `users` table :
#
DROP TABLE IF EXISTS `users`;
CREATE TABLE `users` (
`id` int(10) unsigned NOT NULL auto_increment,
`username` varchar(40) NOT NULL default '',
`old_password` varchar(40) NOT NULL default '',
`passhash` varchar(32) NOT NULL default '',
`secret` varchar(20) NOT NULL default '',
`email` varchar(80) NOT NULL default '',
`status` enum('pending','confirmed') NOT NULL default 'pending',
`added` datetime NOT NULL default '0000-00-00 00:00:00',
`last_login` datetime NOT NULL default '0000-00-00 00:00:00',
`last_access` datetime NOT NULL default '0000-00-00 00:00:00',
`editsecret` varchar(20) NOT NULL default '',
`privacy` enum('strong','normal','low') NOT NULL default 'normal',
`theme` varchar(40) NOT NULL default '',
`info` text,
`acceptpms` enum('yes','friends','no') NOT NULL default 'yes',
`ip` varchar(15) NOT NULL default '',
`class` tinyint(3) unsigned NOT NULL default '0',
`override_class` tinyint(3) unsigned NOT NULL default '255',
`support` enum('no','yes') NOT NULL default 'no',
`supportfor` text,
`avatar` varchar(100) NOT NULL default '',
`icq` varchar(255) NOT NULL default '',
`msn` varchar(255) NOT NULL default '',
`aim` varchar(255) NOT NULL default '',
`yahoo` varchar(255) NOT NULL default '',
`skype` varchar(255) NOT NULL default '',
`mirc` varchar(255) NOT NULL default '',
`website` varchar(50) NOT NULL default '',
`uploaded` bigint(20) unsigned NOT NULL default '0',
`downloaded` bigint(20) unsigned NOT NULL default '0',
`bonus` decimal(7,2) NOT NULL default '0.00',
`title` varchar(30) NOT NULL default '',
`country` int(10) unsigned NOT NULL default '0',
`notifs` varchar(100) NOT NULL default '',
`modcomment` text,
`enabled` enum('yes','no') NOT NULL default 'yes',
`parked` enum('yes','no') NOT NULL default 'no',
`avatars` enum('yes','no') NOT NULL default 'yes',
`donor` enum('yes','no') NOT NULL default 'no',
`simpaty` int(10) NOT NULL default '0',
`warned` enum('yes','no') NOT NULL default 'no',
`warneduntil` datetime NOT NULL default '0000-00-00 00:00:00',
`torrentsperpage` int(3) unsigned NOT NULL default '0',
`topicsperpage` int(3) unsigned NOT NULL default '0',
`postsperpage` int(3) unsigned NOT NULL default '0',
`deletepms` enum('yes','no') NOT NULL default 'yes',
`savepms` enum('yes','no') NOT NULL default 'no',
`gender` enum('1','2','3') NOT NULL default '1',
`birthday` date default '0000-00-00',
`passkey` varchar(32) NOT NULL default '',
`language` varchar(255) NOT NULL default 'russian',
`invites` int(10) NOT NULL default '0',
`invitedby` int(10) NOT NULL default '0',
`invitedroot` int(10) NOT NULL default '0',
`passkey_ip` varchar(15) NOT NULL default '',
PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`),
KEY `status_added` (`status`,`added`),
KEY `ip` (`ip`),
KEY `uploaded` (`uploaded`),
KEY `downloaded` (`downloaded`),
KEY `country` (`country`),
KEY `last_access` (`last_access`),
KEY `enabled` (`enabled`),
KEY `warned` (`warned`),
KEY `passkey` (`passkey`),
KEY `user` (`id`,`status`,`enabled`)
) ENGINE=MyISAM;
#
# Structure for the `users_ban` table :
#
DROP TABLE IF EXISTS `users_ban`;
CREATE TABLE `users_ban` (
`userid` int(10) unsigned NOT NULL default '0',
`disuntil` datetime NOT NULL default '0000-00-00 00:00:00',
`disby` int(10) unsigned NOT NULL default '0',
`reason` text NOT NULL,
UNIQUE KEY `userid` (`userid`)
) ENGINE=MyISAM;
#
# Data for the `bonus` table (LIMIT 0,100)
#
INSERT INTO `bonus` (`id`, `name`, `points`, `description`, `type`, `quanity`) VALUES
(1,'1.0GB Uploaded',75,'With enough bonus points acquired, you are able to exchange them for an Upload Credit. The points are then removed from your Bonus Bank and the credit is added to your total uploaded amount.','traffic','1073741824'),
(2,'2.5GB Uploaded',150,'With enough bonus points acquired, you are able to exchange them for an Upload Credit. The points are then removed from your Bonus Bank and the credit is added to your total uploaded amount.','traffic','2684354560'),
(3,'5GB Uploaded',250,'With enough bonus points acquired, you are able to exchange them for an Upload Credit. The points are then removed from your Bonus Bank and the credit is added to your total uploaded amount.','traffic','5368709120'),
(4,'3 Invites',20,'With enough bonus points acquired, you are able to exchange them for a few invites. The points are then removed from your Bonus Bank and the invitations are added to your invites amount.','invite','3');
COMMIT;
#
# Data for the `categories` table (LIMIT 0,100)
#
INSERT INTO `categories` (`id`, `sort`, `name`, `image`) VALUES
(1,10,'Приложения ISO','appzpciso.gif'),
(2,20,'Приложения PDA','appzpda.gif'),
(3,30,'Приложения AUDIO','appzaudio.gif'),
(4,40,'Приложения MISC','appzmisc.gif'),
(5,50,'Игры PC','gamespc.gif'),
(6,60,'Игры PS2','gamesps2.gif'),
(7,70,'Игры X-Box','gamesxbox.gif'),
(8,80,'Игры PSP','gamespsp.gif'),
(9,90,'Документация','docs.gif'),
(10,100,'Музыка','music.gif'),
(11,110,'Сериалы','tv.gif'),
(12,120,'Аниме','anime.gif'),
(13,130,'Фильмы XviD','moviesxvid.gif'),
(14,140,'Фильмы HDTV','movieshdtv.gif'),
(15,150,'Фильмы DVD','moviesdvd.gif'),
(16,160,'Книги','ebooks.gif'),
(17,170,'XXX','xxx.gif');
COMMIT;
#
# Data for the 'countries' table (Records 1 - 100)
#
INSERT INTO `countries` (`id`, `name`, `flagpic`) VALUES
(87, 'Антигуа и Барбуда', 'antiguabarbuda.gif'),
(33, 'Белиз', 'belize.gif'),
(59, 'Буркина Фасо', 'burkinafaso.gif'),
(10, 'Дания', 'denmark.gif'),
(91, 'Сенегал', 'senegal.gif'),
(76, 'Тринидад и Тобаго', 'trinidadandtobago.gif'),
(20, 'Австралия', 'australia.gif'),
(36, 'Австрия', 'austria.gif'),
(27, 'Албания', 'albania.gif'),
(34, 'Алжир', 'algeria.gif'),
(12, 'Великобритания', 'uk.gif'),
(35, 'Ангола', 'angola.gif'),
(66, 'Андорра', 'andorra.gif'),
(19, 'Аргентина', 'argentina.gif'),
(53, 'Афганистан', 'afghanistan.gif'),
(80, 'Багамы', 'bahamas.gif'),
(83, 'Барбадос', 'barbados.gif'),
(16, 'Бельгия', 'belgium.gif'),
(84, 'Бангладеш', 'bangladesh.gif'),
(101, 'Болгария', 'bulgaria.gif'),
(65, 'Босния и Герцеговина', 'bosniaherzegovina.gif'),
(18, 'Бразилия', 'brazil.gif'),
(74, 'Вануату', 'vanuatu.gif'),
(72, 'Венгрия', 'hungary.gif'),
(71, 'Венесуэла', 'venezuela.gif'),
(75, 'Вьетнам', 'vietnam.gif'),
(7, 'Германия', 'germany.gif'),
(77, 'Гондурас', 'honduras.gif'),
(32, 'Гонконг', 'hongkong.gif'),
(41, 'Греция', 'greece.gif'),
(42, 'Гватемала', 'guatemala.gif'),
(40, 'Доминиканская Республика', 'dominicanrep.gif'),
(100, 'Египет', 'egypt.gif'),
(43, 'Израиль', 'israel.gif'),
(26, 'Индия', 'india.gif'),
(13, 'Ирландия', 'ireland.gif'),
(61, 'Исландия', 'iceland.gif'),
(102, 'Исла де Муерто', 'jollyroger.gif'),
(22, 'Испания', 'spain.gif'),
(9, 'Италия', 'italy.gif'),
(82, 'Камбоджа', 'cambodia.gif'),
(5, 'Канада', 'canada.gif'),
(78, 'Кыргызстан', 'kyrgyzstan.gif'),
(57, 'Кирибати', 'kiribati.gif'),
(8, 'Китай', 'china.gif'),
(52, 'Конго', 'congo.gif'),
(96, 'Колумбия', 'colombia.gif'),
(99, 'Коста-Рика', 'costarica.gif'),
(51, 'Куба', 'cuba.gif'),
(85, 'Лаос', 'laos.gif'),
(98, 'Латвия', 'latvia.gif'),
(97, 'Ливан', 'lebanon.gif'),
(67, 'Литва', 'lithuania.gif'),
(31, 'Люксембург', 'luxembourg.gif'),
(68, 'Македония', 'macedonia.gif'),
(39, 'Малайзия', 'malaysia.gif'),
(24, 'Мексика', 'mexico.gif'),
(62, 'Науру', 'nauru.gif'),
(60, 'Нигерия', 'nigeria.gif'),
(69, 'Нидерландские Антиллы', 'nethantilles.gif'),
(15, 'Нидерланды', 'netherlands.gif'),
(21, 'Новая Зеландия', 'newzealand.gif'),
(11, 'Норвегия', 'norway.gif'),
(44, 'Пакистан', 'pakistan.gif'),
(88, 'Парагвай', 'paraguay.gif'),
(81, 'Перу', 'peru.gif'),
(14, 'Польша', 'poland.gif'),
(23, 'Португалия', 'portugal.gif'),
(49, 'Пуэрто-Рико', 'puertorico.gif'),
(3, 'Россия', 'russia.gif'),
(73, 'Румыния', 'romania.gif'),
(93, 'Северная Корея', 'northkorea.gif'),
(47, 'Сейшельские Острова', 'seychelles.gif'),
(46, 'Сербия', 'serbia.gif'),
(25, 'Сингапур', 'singapore.gif'),
(63, 'Словакия', 'slovenia.gif'),
(90, 'СССР', 'ussr.gif'),
(2, 'США', 'usa.gif'),
(48, 'Тайвань', 'taiwan.gif'),
(89, 'Таиланд', 'thailand.gif'),
(92, 'Того', 'togo.gif'),
(64, 'Туркменистан', 'turkmenistan.gif'),
(54, 'Турция', 'turkey.gif'),
(55, 'Узбекистан', 'uzbekistan.gif'),
(70, 'Украина', 'ukraine.gif'),
(86, 'Уругвай', 'uruguay.gif'),
(58, 'Филиппины', 'philippines.gif'),
(4, 'Финляндия', 'finland.gif'),
(6, 'Франция', 'france.gif'),
(94, 'Хорватия', 'croatia.gif'),
(45, 'Чехия', 'czechrep.gif'),
(50, 'Чили', 'chile.gif'),
(56, 'Швейцария', 'switzerland.gif'),
(1, 'Швеция', 'sweden.gif'),
(79, 'Эквадор', 'ecuador.gif'),
(95, 'Эстония', 'estonia.gif'),
(37, 'Югославия', 'yugoslavia.gif'),
(28, 'ЮАР', 'southafrica.gif'),
(29, 'Южная Корея', 'southkorea.gif'),
(103, 'Молдова', 'moldova.gif');
COMMIT;
#
# Data for the 'countries' table (Records 101 - 109)
#
INSERT INTO `countries` (`id`, `name`, `flagpic`) VALUES
(38, 'Самоа', 'westernsamoa.gif'),
(30, 'Ямайка', 'jamaica.gif'),
(17, 'Япония', 'japan.gif'),
(104, 'Беларусь', 'belarus.gif'),
(105, 'Казахстан', 'kazakhstan.gif'),
(106, 'Таджикистан', 'tajikistan.gif'),
(107, 'Грузия', 'georgia.gif'),
(108, 'Армения', 'armenia.gif'),
(109, 'Азербайджан', 'azerbaijan.gif');
COMMIT;
#
# Data for the `faq` table (LIMIT 0,100)
#
INSERT INTO `faq` (`id`, `type`, `question`, `answer`, `flag`, `categ`, `order`) VALUES
(1,'categ','О сайте','',1,0,1),
(2,'categ','User information','',1,0,2),
(3,'categ','Статистика','',1,0,3),
(4,'categ','Заливка','',1,0,4),
(5,'categ','Закачка','',1,0,5),
(6,'categ','How can I improve my download speed?','',1,0,6),
(7,'categ','My ISP uses a transparent proxy. What should I do?','',1,0,7),
(8,'categ','Why can''t I connect? Is the site blocking me?','',1,0,8),
(9,'categ','What if I can''t find the answer to my problem here?','',1,0,9),
(10,'item','Что такое торрент (bittorrent)? Как скачивать файлы?','Check out Brian''s BitTorrent FAQ and Guide',1,1,1),
(11,'item','На что расходуются деньги от пожертвований?','Мы хотим приобрести выделенный сервер для комфортных и очень быстрых раздач. На данный момент деньги идут на оплату хостинга.',1,1,2),
(12,'item','Где я могу скачать исходники этого движка?','Вы можете взять их на Проект TBDev. Имейте ввиду: мы не осуществляем тех поддержку любого рода, поэтому не присылайте нам пожалуйста баги. Если оно работает - великолепно, если нет - очень плохо. Используйте их только на свой страх и риск.',1,1,3),
(13,'item','I registered an account but did not receive the confirmation e-mail!','You can use this form to delete the account so you can re-register.\r\nNote though that if you didn''t receive the email the first time it will probably not\r\nsucceed the second time either so you should really try another email address.',1,2,1),
(14,'item','I''ve lost my user name or password! Can you send it to me?','Please use this form to have the login details mailed back to you.',1,2,2),
(15,'item','Can you rename my account?','We do not rename accounts. Please create a new one. (Use this form to\r\ndelete your present account.)',1,2,3),
(16,'item','Can you delete my (confirmed) account?','You can do it yourself by using this form.',1,2,4),
(17,'item','So, what''s MY ratio?','Click on your profile, then on your user name (at the top).
\r\n
\r\nIt''s important to distinguish between your overall ratio and the individual ratio on each torrent\r\nyou may be seeding or leeching. The overall ratio takes into account the total uploaded and downloaded\r\nfrom your account since you joined the site. The individual ratio takes into account those values for each torrent.
\r\n
\r\nYou may see two symbols instead of a number: \"Inf.\", which is just an abbreviation for Infinity, and\r\nmeans that you have downloaded 0 bytes while uploading a non-zero amount (ul/dl becomes infinity); \"---\",\r\nwhich should be read as \"non-available\", and shows up when you have both downloaded and uploaded 0 bytes\r\n(ul/dl = 0/0 which is an indeterminate amount).',1,2,5),
(18,'item','Why is my IP displayed on my details page?','Only you and the site moderators can view your IP address and email. Regular users do not see that information.',1,2,6),
(19,'item','Help! I cannot login!? (a.k.a. Login of Death)','This problem sometimes occurs with MSIE. Close all Internet Explorer windows and open Internet Options in the control panel. Click the Delete Cookies button. You should now be able to login.\r\n',1,2,7),
(20,'item','My IP address is dynamic. How do I stay logged in?','You do not have to anymore. All you have to do is make sure you are logged in with your actual\r\nIP when starting a torrent session. After that, even if the IP changes mid-session,\r\nthe seeding or leeching will continue and the statistics will update without any problem.',1,2,8),
(21,'item','Why is my port number reported as \"---\"? (And why should I care?)','The tracker has determined that you are firewalled or NATed and cannot accept incoming connections.\r\n
\r\n
\r\nThis means that other peers in the swarm will be unable to connect to you, only you to them. Even worse,\r\nif two peers are both in this state they will not be able to connect at all. This has obviously a\r\ndetrimental effect on the overall speed.\r\n
\r\n
\r\nThe way to solve the problem involves opening the ports used for incoming connections\r\n(the same range you defined in your client) on the firewall and/or configuring your\r\nNAT server to use a basic form of NAT\r\nfor that range instead of NAPT (the actual process differs widely between different router models.\r\nCheck your router documentation and/or support forum. You will also find lots of information on the\r\nsubject at PortForward).',1,2,9),
(22,'item','What are the different user classes?','
User | \r\n\r\n | The default class of new members. | \r\n
Power User | \r\n\r\n | Can download DOX over 1MB and view NFO files. | \r\n
\r\n | \r\n | Has donated money to TBDev Yuna Scatari Edition . | \r\n
VIP | \r\n\r\n | Same privileges as Power User and is considered an Elite Member of TBDev Yuna Scatari Edition. Immune to automatic demotion. | \r\n
Other | \r\n\r\n | Customised title. | \r\n
Uploader | \r\n\r\n | Same as PU except with upload rights and immune to automatic demotion. | \r\n
Moderator | \r\n\r\n | Can edit and delete any uploaded torrents. Can also moderate usercomments and disable accounts. | \r\n
Administrator | \r\n\r\n | Can do just about anything. | \r\n
SysOp | \r\n\r\n | Redbeard (site owner). | \r\n
Power User | \r\n\r\n | Must have been be a member for at least 4 weeks, have uploaded at least 25GB and\r\nhave a ratio at or above 1.05. \r\nThe promotion is automatic when these conditions are met. Note that you will be automatically demoted from \r\nthis status if your ratio drops below 0.95 at any time. | \r\n
\r\n | \r\n | Just donate, and send a message to Admin | \r\n
VIP | \r\n\r\n | Assigned by mods at their discretion to users they feel contribute something special to the site. \r\n(Anyone begging for VIP status will be automatically disqualified.) | \r\n
Other | \r\n\r\n | Conferred by mods at their discretion (not available to Users or Power Users). | \r\n
Uploader | \r\n\r\n | Appointed by Admins/SysOp (see the ''Uploading'' section for conditions). | \r\n
Moderator | \r\n\r\n | You don''t ask us, we''ll ask you! | \r\n
Direct Connect | \r\n411 - 413 | \r\n
Kazaa | \r\n1214 | \r\n
eDonkey | \r\n4662 | \r\n
Gnutella | \r\n6346 - 6347 | \r\n
BitTorrent | \r\n6881 - 6889 | \r\n
Transparent | \r\n\r\n | A transparent proxy is one that needs no configuration on the clients. It works by automatically redirecting all port 80 traffic to the proxy. (Sometimes used as synonymous for non-anonymous.) | \r\n
Explicit/Voluntary | \r\n\r\n | Clients must configure their browsers to use them. | \r\n
Anonymous | \r\n\r\n | The proxy sends no client identification to the server. (HTTP_X_FORWARDED_FOR header is not sent; the server does not see your IP.) | \r\n
Highly Anonymous | \r\n\r\n | The proxy sends no client nor proxy identification to the server. (HTTP_X_FORWARDED_FOR, HTTP_VIA and HTTP_PROXY_CONNECTION headers are not sent; the server doesn''t see your IP and doesn''t even know you''re using a proxy.) | \r\n
Public | \r\n\r\n | (Self explanatory) | \r\n
Админка | \r\n
Список пользователей | \r\n
Массовое ЛС | \r\n
Двойники по IP | \r\n
Выйти | \r\n
Администрация данного сайта - прирожденные садисты и кровопийцы, которые только и ищут повод помучать и поиздеваться над пользователями, используя для этого самые изощренные пытки. Единственный способ избежать этого - не попадаться нам на глаза, то есть спокойно качать и раздавать, поддерживая свой рейтинг как можно ближе к 1, и не делать глупых комментариев к торрентам. И не говорите, что мы вас не предупреждали! (шутка)
','c',1,1,'','',0,'0','d','rules,'), (2,'','Новости','','c',3,1,'','block-news.php',0,'0','d','ihome,'), (3,'','Пользователи','','r',2,1,'','block-online.php',0,'0','d','all'), (4,'','Поиск','','r',3,1,'','block-search.php',0,'0','d','all'), (5,'','Опрос','','c',4,1,'','block-polls.php',1,'0','d','ihome,'), (6,'','Релизы','','c',5,1,'','block-releases.php',0,'0','d','ihome,'), (11,'','Загрузка сервера','','c',8,1,'','block-server_load.php',0,'0','d','ihome,'); COMMIT;