********************************************************************************* * * * CONFIGURATION * * * ********************************************************************************* //--------- config.php ---------------------------------------------------------- By the time you've gotten here, you should have already run the install script. Since the install script handles the majority of the configuration automatically, there isn't very much to say here. All settings created by the install script can be manually altered in /classes/config.php. You shouldn't have to touch most of them - ESPECIALLY SITE_SALT. If you ever change or lose SITE_SALT, all the password hashes in the database become instantly useless. We recommend backing it up in around 6 secure locations. When changing the $Categories and $CategoryIcons arrays, take care. The indexes for the values have to match up (if $Categories[0] is 'Music', 'music.png' should be in $CategoryIcons[0]). In addition, take note that in the database, the value stored is NOT the name of the category - rather, it's the index of the array plus one. So, given the above example, the 'Music' category is represented in the database with the number '1'. This is important, because if you change the way the array is ordered (eg. make 'E-books' come before 'Music'), all of the torrent groups in the database will have to have their category IDs updated (or all music torrents will suddenly become e-book torrents). For this reason, we advise against screwing with the categories after launch. If you need to add more categories, add them to the end of the arrays - or be prepared to do a lot of database updates. This problem is not present with the $Formats, $Bitrates and $Media arrays. //--------- Classes ------------------------------------------------------------- Classes can be altered by using the permissions manager The levels and names are stored in the database and cached in memcache - the constants in config.php are just for ease of programming. When you add or remove a class (permission set), update the list in config.php. The PermissionID field in users_main is the ID of the permission, NOT the level. //--------- Stylesheets --------------------------------------------------------- Have you written a sexy new stylesheet, but you don't know how to install it? Thankfully, it's not that hard. Place it in /static/styles/style_name. style_name should be the name of the stylesheet, in lower case with underscores instead of spaces. Then insert the stylesheet into the 'stylesheets' table. The description column is never used so it doesn't matter what you put in there. For the name column, use the name of the stylesheet's folder, with as many spaces and upper case letters as you wish - they're converted to underscores and lower case letters when they're read. Once you've added your stylesheet, it will take up to 10 minutes for it to show up on the list of available stylesheets, unless you clear the cache. YOU CAN CLEAR ALL OF THE CACHED VALUES ON A PAGE BY ADDING clearcache=1 TO THE QUERY STRING.