GithubHelp home page GithubHelp logo

roseskygit2 / tjupt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sicalpath/tjupt

0.0 1.0 0.0 46.07 MB

TJUPT Production Code

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

License: GNU General Public License v2.0

PHP 81.92% HTML 0.05% CSS 3.71% JavaScript 14.32% Shell 0.01%

tjupt's Introduction

TJUPT Code

TJUPT is a site based on NexusPHP. All modifications made are here.

First of all 写在前面的话

After uploading to the production environment, you should delete all "TJUPT mark" including but not limited to:
在上线至生产环境前,你应该删除所有“有关TJUPT的标识”,包括但不限于:

  • Site name 站点名称
  • QQ group number/QR code QQ群号/二维码
  • some text/mark about TJUPT 一些关于TJUPT的文字/标识
  • ...

By the license, using these code is your privilege, but we also recommended you that DO NOT GIVE TROUBLE TO OUR ORIGINAL SITE (TJUPT) is the basic respect. It’s very unprofessional and offensive to make the website online without knowing/editing the code.
根据开源协议,使用这些代码是你的权利,但我们仍要提醒你不要给原网站(即TJUPT)惹麻烦 是你应有的最基本的尊重。在没有搞清楚代码的情况下直接上线是非常不专业而且令人反感的行为。

Build Manual

1.Change permission of config

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

2.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

3.Install required package

You can find required ext in composer.json, enable them in php.ini.

composer install

4.Edit allconfig.php

Copy config/example.allconfig.php to config/allconfig.php,
Edit BASIC array, which contains mysql configure.

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

And there're some edits in tracker(announce.php) for TJUPT's network environment. You should edit it too.

6.Login

Username: NexusPHP
Password: nexusphp

tjupt's People

Contributors

zcqian avatar nova2018 avatar scaryken avatar tongyifan avatar rhilip avatar draventju avatar issaccv avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.