TorrentTrader MVC PDO OOP
10.3.22 MariaDB
PHP 8
This is my copy of torrent trader updated in MVC using PDO with bootstrap.
Its fully functional for use, ill keep github up to date. This is a long term project
Playing with the code is a bit of a hobby and if anyone wants to help or suggest feel welcome to do so there is support at https://torrenttrader.uk
Credit to original authors of any code or mods this is just a version i use to learn more about coding
- Stack backtrace for exceptions
- PDO Prepared Statements
- MVC Core
- Bootstrap
- BCRYPT Passwords
- Snatchlist
- Magnets
- Scraper
- and MUCH MORE!
- A Web server
- PHP 8
- MySQL 8 / MariaDB 10
THERE IS NO INSTALLER REQUIRED!
-
Copy ALL files to your webserver, NOTE the name of the public folder "public_html" where index.php is
If public folder is not named public_html rename the folder public_html to match (public, home etc)
Only the contents of public_html go in the public folder.if you rename public_html you must also adjust the htaccess
.htaccess
RewriteRule ^$ public_html/ [L]
RewriteRule (.*) public_html/$1 [L]For xampp only the public_html/htaccess might need ajusting
RewriteBase /TorrentTraderMVC/public_html -
Import via phpmyadmin "SQL/Full Database.sql"
-
Edit the file app/config/config.php to suit your needs
// Database Details
define("DB_HOST", "localhost");
define("DB_USER", "username");
define("DB_PASS", "password");
define("DB_NAME", "dbname");
define('DB_CHAR', 'utf8');
// Your Site Address
define('URLROOT', 'http://localhost/TorrentTraderMVC');\ // Allow User Admin Access
define('_OWNERS', array('M-jay')); -
Apply the following CHMOD's
777 - data/backups
777 - data/cache
777 - data/cache/imdb
777 - data/import
777 - data/logs
777 - data/uploads
777 - data/uploads/images
777 - data/uploads/imdb
777 - data/uploads/attachment
777 - public_html/thumbnail
600 - dta/logs/censor.txt\ -
Now register as a new user on the site. The first user registered will become administrator
Any problems please visit https://torrenttrader.uk