Skip to content
A simple document creater site written by PHP
JavaScript CSS HTML PHP
Branch: master
Clone or download
stuyangzheng
Latest commit 83b974d Oct 9, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
admin api.php权限问题修复 Oct 9, 2019
css intialize the first edition to idoc Oct 6, 2019
fonts intialize the first edition to idoc Oct 6, 2019
images intialize the first edition to idoc Oct 6, 2019
js intialize the first edition to idoc Oct 6, 2019
.gitignore 更新.gitignore文件 Oct 9, 2019
README.md 更新.gitignore文件 Oct 9, 2019
book.php 修复文章页面ajax请求id参数可注入的问题 Oct 8, 2019
db.class.php intialize the first edition to idoc Oct 6, 2019
favicon.ico 修复了若干问题 Oct 7, 2019
get.php intialize the first edition to idoc Oct 6, 2019
help.class.php intialize the first edition to idoc Oct 6, 2019
index.php 修复api.php接口文件权限问题 Oct 9, 2019
login.php
schema.sql 添加数据库表结构sql文件 Oct 7, 2019

README.md

idoc

A simple document creater site written by php

Let's try it!

http://idoc.codespeaking.com

本地部署方法

将项目git clone到本地, 配置虚拟域名(不配置域名, 直接使用localhost也可以)

在根目录下创建config.php, 下面是一个样例:

<?php

date_default_timezone_set('PRC');

//mysql database address
define('DB_HOST','127.0.0.1');
define('DB_USER','XXXXX');
define('DB_PASSWD','XXXXX');
define('DB_NAME','idoc');

//database prefix
define('DB_PREFIX','id_');

define('PWD_SALT', '#20191008/iDoC^^');
//auth key
define('AUTH_KEY','zZQG6kMLKCf6gzzJUy$Zj^Un@mj52Hrx3365fde4a472decaa8f104b97717e125');
//cookie name
define('AUTH_COOKIE_NAME','EM_AUTHCOOKIE_BWlf5txDunNPpmsKCCpbve9ENTxdvnr2');
define('SITE_DOMAIN', 'localhost');

访问首页前, 先创建数据库, 并运行根目录下的schema.sql创建表。

You can’t perform that action at this time.