INSERT INTO `xbt_config` (`name`, `value`) VALUES
('announce_interval', '3600'),
('anonymous_announce', '0'),
('anonymous_connect', '0'),
('anonymous_scrape', '0'),
('auto_register', '0'),
('clean_up_interval', '60'),
('column_files_completed', 'complete_count'),
('column_files_dl_percent', '(select case tor.tor_type when 1 then 0 when 2 then 50 else 100 end from bb_bt_torrents tor where tor.topic_id=bt.topic_id) as dl_percent'),
('column_files_fid', 'topic_id'),
('column_users_can_leech', 'case when u_down_total>32212254720 and (u_up_total+u_up_bonus)<u_down_total*0.3 then 0 else 1 end'),
('column_users_torrents_limit', 'case when u_up_total>greatest(32212254720,u_down_total) then 0 when u_up_total>32212254720 and u_down_total>0 then floor((u_up_total+u_up_bonus)/0.3/u_down_total)+1 when (u_up_total+u_up_bonus)>u_down_total then 5 else 3 end'),
('column_users_uid', 'user_id'),
('debug', '0'),
('free_leech', '0'),
('full_scrape', '0'),
('gdc', '0'),
('gzip_debug', '1'),
('gzip_scrape', '1'),
('log_access', '0'),
('log_announce', '0'),
('pid_file', 'xbt_tracker.pid'),
('read_config_interval', '60'),
('read_db_interval', '300'),
('read_files_interval', '4'),
('redirect_url', 'http://*****.ru/'),
('scrape_interval', '0'),
('table_files', 'bb_bt_torrents'),
('table_files_users', 'bb_bt_tracker'),
('table_users', 'bb_bt_users'),
('torrent_pass_private_key', '*****'),
('trust_ipv6', '0'),
('write_db_interval', '10');