Giter VIP home page Giter VIP logo

ynuosapt's Introduction

#云南大学PT站 ##介绍 Discuz + Discuz插件 + xbtit(tracker)

均运行在docker中

Discuz映射到主机的80端口上

xbtit映射到主机的880端口上

##安装手册

  1. make start (如果是重新安装请运行 make rebuild)
  2. 使用向导安装Discuz与xbtit(注:数据库IP为docker容器的IP)
  3. 修改如下文件:
    a. 在uc_server\model\admin.php中 将
    $this->cookie_status = 0;
    修改为:
    $this->cookie_status = isset($_COOKIE['sid']) ? 1 : 0;
    (修复ucenter进不去)
    b. 在source/class/discuz/discuz_application.php
    将369-371这三行
if (strpos ($temp, $str) !== false) {
          system_error ('request_tainting');
   }

注释掉 (修复同步登陆不成功)
c.在template/default/forum/post.html
<form>加入属性enctype="multipart/form-data"
(修复无法上传文件)

  1. 在discuz数据库中建立如下表
CREATE TABLE `ultrax`.`pre_ynuosapt_tid_files` (
  `lid` INT NOT NULL AUTO_INCREMENT,
  `tid` INT NULL,
  `downloadcount` INT NULL DEFAULT 0,
  `hash_info` VARCHAR(40) NULL,
  `uploadtime` DATETIME NULL DEFAULT NOW(),
  `uploader` VARCHAR(20) NULL,
  PRIMARY KEY (`lid`));
  1. 进入ucenter,添加一个应用,并配置插件目录下uc目录的config.inc.php
    (1. 先不要开启同步登陆 2. 关闭discuz的同步登陆 3.开启ynuosapt的同步登陆 4. 开启discuz的同步登陆)
  2. 开启插件
  3. 修改版面权限以支持特殊主题:PT资源(具体操作请查阅discuz使用手册)

ynuosapt's People

Contributors

strrl avatar

Stargazers

CaiBao avatar

Watchers

James Cloos avatar Sen Lin avatar  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.