CartonSta / tjupt

TJUPT Production Code

Home Page:http://pt.tju.edu.cn/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TJUPT Code

TJUPT (Tianjin University Private Tracker) is a site based on NexusPHP. All modifications made are here.

Build Manual

1.Create Folders

mkdir torrents bitbucket attachments imdb/cache subs

2.Change permission of config

chmod -R 777 config torrents bitbucket attachments imdb/cache subs

3.Create Database

Please use Mysql/MariaDB and DISABLE NO_ZERO_DATE, NO_ZERO_IN_DATE AND STRICT_TRANS_TABLES in sql_mode!

    source sql/pt.sql
    source sql/data.sql

4.Edit allconfig.php

Copy config/example.allconfig.php to config/allconfig.php,
Edit BASIC array, which contains mysql configure.
If you want to use donate system, you should install dependency by composer:

    composer install

Then edit DONATION array in allconfig.php.

5.Something you need edit

Please edit the argument domain(.tjupt.org) to your domain name or just delete it in function logincookie(), set_langfolder_cookie() and logoutcookie() (You can find them in include/functions.php), otherwise you will not be able to log in.
In vim, you can use this command:

    vim include/functions.php
    :%s/, "\/", ".tjupt.org"/, "\/"/g

6.Login

Username: NexusPHP
Password: nexusphp

About

TJUPT Production Code

http://pt.tju.edu.cn/


Languages

Language:PHP 82.5%Language:JavaScript 13.9%Language:CSS 3.5%Language:HTML 0.0%Language:Shell 0.0%