View Single Post
  #7  
Old 15th February 2024, 13:03
dj_otrov's Avatar
dj_otrov dj_otrov is offline
Senior Member
 
Join Date: Jan 2012
Bulgaria
Posts: 142
Default
Added code to brackets


Quote:
<?php

/************************************************** ************************ TorrentTrader (Config file) ** Version: Unofficial v3.0 @ 01.05.2014 ** Project Leaders: ** Website: http://www.torrenttrader.org ** Github: https://github.com/Torrent-Trader-V3.../TorrentTrader ************************************************** *************************/$site_config = array();# TorrentTrader versio. Semantic Versioning. http://semver.org$site_config['ttversion'] = '3.0.2 BETA'; # DONT CHANGE THIS!// Main Site Settings$site_config['SITENAME'] = 'TorrentTrader v3.0.2 Beta'; # Site Name$site_config['SITEEMAIL'] = 'change@yoursite.com'; # Emails will be sent from this address$site_config['SITEURL'] = 'http://localhost/TTv3/'; # Main Site URL$site_config['default_language'] = "1"; # DEFAULT LANGUAGE ID$site_config['default_theme'] = "1"; # DEFAULT THEME ID$site_config['CHARSET'] = "utf-8"; # Site Charset$site_config['announce_list'] = "http://ttv3.mavitrine.ovh/announce.php"; # Seperate via comma$site_config['MEMBERSONLY'] = true; # MAKE MEMBERS SIGNUP$site_config['MEMBERSONLY_WAIT'] = true; # Enable wait times for bad ratio$site_config['ALLOWEXTERNAL'] = true; # Enable Uploading of external tracked torrents$site_config['UPLOADERSONLY'] = false; # Limit uploading to uploader group only$site_config['INVITEONLY'] = false; # Only allow signups via invite$site_config['ENABLEINVITES'] = true; # Enable invites regardless of INVITEONLY setting$site_config['CONFIRMEMAIL'] = true; # Enable / Disable Signup confirmation email$site_config['ACONFIRM'] = false; # Enable / Disable ADMIN CONFIRM ACCOUNT SIGNUP$site_config['ANONYMOUSUPLOAD'] = false; # Enable / Disable anonymous uploads$site_config['PASSKEYURL'] = "$site_config[SITEURL]/announce.php?passkey=%s"; # Announce URL to use for passkey$site_config['UPLOADSCRAPE'] = true; # Scrape external torrents on upload? If using mega-scrape.php you should disable this$site_config['FORUMS'] = true; # Enable / Disable Forums$site_config['FORUMS_GUESTREAD'] = false; # Allow / Disallow Guests To Read Forums$site_config["OLD_CENSOR"] = false; # Use the old change to word censor set to true otherwise use the new one.$site_config['staff_pin'] = "<3tt"; # Admincp pincode$site_config['maxusers'] = 20000; # Max # of enabled accounts$site_config['maxusers_invites'] = $site_config['maxusers'] + 5000; # Max # of enabled accounts when inviting$site_config['currency_symbol'] = '$'; # Currency symbol (HTML allowed)// Agent bans (MUST BE AGENT ID, USE FULL ID FOR SPECIFIC VERSIONS)$site_config['BANNED_AGENTS'] = "-AZ21, -BC, LIME";// Paths, Ensure these are correct and CHMOD to 777 (ALSO ENSURE TORRENT_DIR/images is CHMOD 777)$site_config['torrent_dir'] = getcwd().'/uploads';$site_config['nfo_dir'] = getcwd().'/uploads';$site_config['blocks_dir'] = getcwd().'/blocks';// Image upload settings$site_config['image_max_filesize'] = 524288; # Max uploaded image size in bytes (Default: 512 kB)$site_config['allowed_image_types'] = array(// "mimetype" => ".ext","image/gif" => ".gif","image/pjpeg" => ".jpg","image/jpeg" => ".jpg","image/jpg" => ".jpg","image/png" => ".png");$site_config['SITE_ONLINE'] = true; # Turn Site on/off$site_config['OFFLINEMSG'] = 'Site is down for a little while'; $site_config['WELCOMEPMON'] = true; # Auto PM New members$site_config['WELCOMEPMMSG'] = 'Thank you for registering at our tracker! Please remember to keep your ratio at 1.00 or greater :)';$site_config['SITENOTICEON'] = true;$site_config['SITENOTICE'] = '<b>Welcome to TTv3!</b><br /> TTv3 | The most powerful CMS software. Fast. Secure. Social. Build your own website today.<br /><br /> Please take a look around, and feel free to <a href="/account-signup.php"><b>sign up</b></a> and join our community.';$site_config['UPLOADRULES'] = 'You should also include a .nfo file wherever possible<br />Try to make sure your torrents are well-seeded for at least 24 hours<br />Do not re-release material that is still active';// Setup site blocks$site_config['LEFTNAV'] = true; # Left Column Enable / Disable$site_config['RIGHTNAV'] = true; # Right Column Enable / Disable$site_config['MIDDLENAV'] = true; # Middle Column Enable / Disable$site_config['SHOUTBOX'] = true; # Enable / Disable shoutbox$site_config['NEWSON'] = true; # Enable / Disable news block$site_config['DONATEON'] = true; # Enable / Disable donate$site_config['DISCLAIMERON'] = true; # You should use this ;)// Wait time vars$site_config['WAIT_CLASS'] = '1,2'; # Classes wait time applies to, comma seperated$site_config['GIGSA'] = '1'; # Minimum gigs$site_config['RATIOA'] = '0.50'; # Minimum ratio$site_config['WAITA'] = '24'; # If neither are met, wait time in hours$site_config['GIGSB'] = '3'; # Minimum gigs$site_config['RATIOB'] = '0.65'; # Minimum ratio$site_config['WAITB'] = '12'; # If neither are met, wait time in hours$site_config['GIGSC'] = '5'; # Minimum gigs$site_config['RATIOC'] = '0.80'; # Minimum ratio$site_config['WAITC'] = '6'; # If neither are met, wait time in hours$site_config['GIGSD'] = '7'; # Minimum gigs$site_config['RATIOD'] = '0.95'; # Minimum ratio$site_config['WAITD'] = '2'; # If neither are met, wait time in hours// Cleanup and announce settings$site_config['PEERLIMIT'] = '10000'; # LIMIT NUMBER OF PEERS GIVEN IN EACH ANNOUNCE$site_config['autoclean_interval'] = '600'; # Time between each auto cleanup (Seconds)$site_config['LOGCLEAN'] = 28 * 86400; # How often to delete old entries. (Default: 28 days)$site_config['announce_interval'] = '900'; # Announce Interval (Seconds)$site_config['signup_timeout'] = '259200'; # Time a user stays as pending before being deleted(Seconds)$site_config['maxsiteusers'] = '10000'; # Maximum site members$site_config['max_dead_torrent_time'] = '21600'; # Time until torrents that are dead are set invisible (Seconds)// Auto ratio warning$site_config["ratiowarn_enable"] = true; # Enable / Disable auto ratio warning$site_config["ratiowarn_minratio"] = 0.4; # Min Ratio$site_config["ratiowarn_mingigs"] = 4; # Min GB Downloaded$site_config["ratiowarn_daystowarn"] = 14; # Days to ban// category = Category Image/Name, name = Torrent Name, dl = Download Link, uploader, comments = # of comments, // completed = times completed, size, seeders, leechers, health = seeder/leecher ratio, external, wait = Wait Time (if enabled),// rating = Torrent Rating, added = Date Added, nfo = link to nfo (if exists)$site_config["torrenttable_columns"] = "category,genre,name,uploader,comments,dl,size,see ders,leechers";// size, speed, added = Date Added, tracker, completed = times completed$site_config["torrenttable_expand"] = "";// Caching settings$site_config["cache_type"] = "disk"; # disk = Save cache to disk, memcache = Use memcache, apc = Use APC, xcache = Use XCache$site_config["cache_memcache_host"] = "localhost"; # Host memcache is running on$site_config["cache_memcache_port"] = 11211; # Port memcache is running on$site_config['cache_dir'] = getcwd().'/cache'; # Cache dir (only used if type is "disk"). Must be CHMOD 777// Mail settings// php to use PHP's built-in mail function. or pear to use http://pear.php.net/Mail// MUST use pear for SMTP$site_config["mail_type"] = "php";$site_config["mail_smtp_host"] = "localhost"; # SMTP server hostname$site_config["mail_smtp_port"] = "25"; # SMTP server port$site_config["mail_smtp_ssl"] = false; # true to use SSL$site_config["mail_smtp_auth"] = false; # True to use auth for SMTP$site_config["mail_smtp_user"] = ""; # SMTP username$site_config["mail_smtp_pass"] = ""; # SMTP password// Password hashing - Once set, cannot be changed without all users needing to reset their passwords$site_config["passhash_method"] = "sha1"; # Hashing method (sha1, md5 or hmac). Must use what your previous version of TT did or all users will need to reset their passwords// Only used for hmac.$site_config["passhash_algorithm"] = "sha1"; # See http://php.net/hash_algos for a list of supported algorithms.$site_config["passhash_salt"] = ""; # Shouldn't be blank. At least 20 characters of random text.//AntiBruteforce$site_config['atbf_activate'] = true; // true => to activate Anti Bruteforce, => false to disabled it.$site_config['atbf_trials'] = '5';//numbers of trials before locking = Note: Trials must be SUPERIOR than 0$site_config['atbf_days_lock'] = '1';//Number of days to be locked$site_config['atbf_months_lock'] ='2';//Number of months to be locked$site_config['atbf_years_lock'] = '1';//Number of years to be lockedif($site_config['atbf_activate'] == true && $site_config['atbf_trials'] == 0 && $site_config['atbf_months_lock'] == 0 && $site_config['atbf_years_lock'] == 0){ echo('ERROR: $site_config[\'atbf_trials\'] as set to 0 ! '); // cHeck to prevent errors exit();}// Sub category image$site_config["REQ_SUB_IMAGE"] = true;
?>
Reply With Quote