| 8 | = Sample Configuration File = |
| 9 | {{{ |
| 10 | #!php |
| 11 | <? |
| 12 | |
| 13 | define("CHANNELNAME", '#%chan%'); // The channel name we display |
| 14 | define("NETWORKNAME", '%network%'); //The network name we display |
| 15 | define("IRCSERVER", '%irc%'); //IRC server name, incase it differs from the name of the network |
| 16 | define("WEBSITEURL", '%website%'); //Website |
| 17 | |
| 18 | //Some of the help messages |
| 19 | define("USERTEXT", ''); |
| 20 | |
| 21 | define("TEMPLATE",'bt_templates\\main.inc.php'); |
| 22 | define("ENTRYTEMPLATE",'bt_templates\\entry.inc.php'); |
| 23 | |
| 24 | $allowed_announces = array("http://bt.edwardk.info:6969/announce"); |
| 25 | // a list of allowed announce URLs in torrents, |
| 26 | // modify only if you know what you're doing |
| 27 | |
| 28 | /* |
| 29 | Controls where uncategorized torrents go |
| 30 | Top = top of the page |
| 31 | Bottom = bottom of the page |
| 32 | */ |
| 33 | $settings['uncategorized_position'] = 'bottom'; |
| 34 | |
| 35 | /* |
| 36 | Sort categories |
| 37 | TRUE = categories are sorted, with exception of the uncategorized category, it will be sorted by the name value |
| 38 | FALSE = categories are used in the order specified in this config file |
| 39 | */ |
| 40 | $settings['sort_categories'] = TRUE; |
| 41 | |
| 42 | |
| 43 | /* |
| 44 | Show recent torrents |
| 45 | TRUE = on |
| 46 | FALSE = off |
| 47 | number = how many entries to display per column |
| 48 | */ |
| 49 | $settings['recent']['status'] = TRUE; |
| 50 | $settings['recent']['number'] = 5; |
| 51 | |
| 52 | |
| 53 | /* |
| 54 | Table of Contents (TOC) |
| 55 | TRUE = show it |
| 56 | FALSE = don't show it |
| 57 | number = how many to show per column |
| 58 | */ |
| 59 | $settings['toc']['status'] = TRUE; |
| 60 | $settings['toc']['number'] = 7; |
| 61 | /* |
| 62 | Define categories here |
| 63 | 0 is uncategorized torrents |
| 64 | 1 is the recent torrents |
| 65 | 2+ are user defined categories |
| 66 | heading = allows you to insert HTML before the table for this category, be sure to quote it properly in a PHP variable. |
| 67 | be sure to use HTML entities when required! |
| 68 | wildcards = which filenames are matched to this category, multiple wildcards could be used if it was in an array |
| 69 | such as array('*blah*','*yada*'); |
| 70 | wildcards match the display name of a torrent, not filename! |
| 71 | name = for sorting categories and TOC |
| 72 | http://www.php.net/manual/en/language.types.string.php |
| 73 | */ |
| 74 | $i = 0; |
| 75 | $categories[$i]['heading'] = '<h3>Uncategorized</h3>'; |
| 76 | $categories[$i]['wildcards'] = ''; |
| 77 | $categories[$i]['name'] = 'Uncategorized'; |
| 78 | |
| 79 | $i++; // Start next category |
| 80 | $categories[$i]['heading'] = '<h3>New Torrents</h3>'; |
| 81 | $categories[$i]['wildcards'] = ''; |
| 82 | $categories[$i]['name'] = 'New Torrents'; |
| 83 | |
| 84 | |
| 85 | // End of user editable contents' |
| 86 | |
| 87 | define("CACHEFILE",'btcache.dat'); |
| 88 | define("CACHETIME",120); |
| 89 | ?> |
| 90 | |
| 91 | }}} |