1 Star 0 Fork 153

Howard Liu / Tieba-Cloud-Sign

forked from Kenvix / Tieba-Cloud-Sign 
Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
init.php 3.40 KB
Copy Edit Web IDE Raw Blame History
Kenvix authored 2017-07-07 21:56 . Version.4.9.0
<?php
/**
* 贴吧云签到
* Copyright (c) 2012~2016 StusGame All Rights Reserved.
*
* 获取开发文档:https://git.oschina.net/kenvix/Tieba-Cloud-Sign/wikis/
*/
/**
* 加载核心
* HELLO GAY!
*/
define('SYSTEM_FN','百度贴吧云签到');
define('SYSTEM_VER','4.9');
define('SYSTEM_VER_NOTE','');
define('SYSTEM_ROOT',dirname(__FILE__));
define('PLUGIN_ROOT',dirname(__FILE__) . '/plugins/');
define('SYSTEM_ISCONSOLE' , PHP_SAPI === 'cli' OR defined('STDIN'));
define('SYSTEM_PAGE',isset($_REQUEST['mod']) ? strip_tags($_REQUEST['mod']) : 'default');
define('SUPPORT_URL', 'http://git.oschina.net/kenvix/Tieba-Cloud-Sign/wikis/home');
if(defined('SYSTEM_NO_ERROR')) error_reporting(0);
if(SYSTEM_ISCONSOLE) {
function console_htmltag_delete($v) {
$v = str_ireplace(array('</td>','</th>') , ' | ', $v);
$v = str_ireplace(array('<br/>','</p>','</tr>','</thead>','</tbody>') , PHP_EOL, $v);
$v = str_ireplace(array('&nbsp;') , ' ', $v);
return SYSTEM_FN . ' Ver.' . SYSTEM_VER . ' ' . SYSTEM_VER_NOTE . ' - 控制台模式' . PHP_EOL . '==========================================================' . PHP_EOL . strip_tags($v);
}
ob_start('console_htmltag_delete');
}
require SYSTEM_ROOT.'/lib/msg.php';
//如需停止站点运行,请解除注释,即删除开头的 //
//msg('站点已关闭!请稍后再试,如有疑问请联系站长解决!');
if (!file_exists(SYSTEM_ROOT.'/setup/install.lock') && file_exists(SYSTEM_ROOT.'/setup/install.php')) {
msg('<h2>检测到无 install.lock 文件</h2><ul><li><font size="4">如果您尚未安装本程序,请<a href="./setup/install.php">前往安装</a></font></li><li><font size="4">如果您已经安装本程序,请手动放置一个空的 install.lock 文件到 /setup 文件夹下,<b>为了您站点安全,在您完成它之前我们不会工作。</b></font></li></ul><br/><h4>为什么必须建立 install.lock 文件?</h4>它是云签到的保护文件,如果云签到检测不到它,就会认为站点还没安装,此时任何人都可以安装/重装云签到。<br/><br/>',false,true,false);
}
header("content-type:text/html; charset=utf-8");
date_default_timezone_set('Asia/Shanghai');
if(file_exists(SYSTEM_ROOT . '/key.php')) {
include SYSTEM_ROOT . '/key.php';
}
require SYSTEM_ROOT.'/lib/class.E.php';
require SYSTEM_ROOT.'/lib/class.P.php';
require SYSTEM_ROOT.'/config.php';
require SYSTEM_ROOT.'/lib/mysql_autoload.php';
require SYSTEM_ROOT.'/lib/class.former.php';
require SYSTEM_ROOT.'/lib/class.smtp.php';
require SYSTEM_ROOT.'/lib/class.zip.php';
require SYSTEM_ROOT.'/lib/reg.php';
define('SYSTEM_URL',option::get('system_url'));
define('SYSTEM_NAME', option::get('system_name'));
//版本修订号
define('SYSTEM_REV',option::get('core_revision'));
//压缩包链接
define('UPDATE_SERVER_GITHUB','https://github.com/MoeNetwork/Tieba-Cloud-Sign/archive/master.zip');
define('UPDATE_SERVER_CODING','https://coding.net/u/kenvix/p/Tieba-Cloud-Sign/git/archive/master');
//压缩包内文件夹名
define('UPDATE_FNAME_GITHUB','Tieba-Cloud-Sign-master');
define('UPDATE_FNAME_CODING','Tieba-Cloud-Sign-master');
//压缩包解压路径
define('UPDATE_CACHE',SYSTEM_ROOT.'/setup/update_cache/');
require SYSTEM_ROOT.'/lib/sfc.functions.php';
require SYSTEM_ROOT.'/lib/ui.php';
if (!defined('SYSTEM_NO_PLUGIN')) require SYSTEM_ROOT.'/lib/plugins.php';
if (!defined('SYSTEM_NO_CHECK_LOGIN')) require SYSTEM_ROOT.'/lib/globals.php';

Comment ( 0 )

Sign in for post a comment

PHP
1
https://git.oschina.net/fsgmhoward/Tieba-Cloud-Sign.git
git@git.oschina.net:fsgmhoward/Tieba-Cloud-Sign.git
fsgmhoward
Tieba-Cloud-Sign
Tieba-Cloud-Sign
master

Search