1 Star 0 Fork 161

superxzr / Tieba-Cloud-Sign

forked from Kenvix / Tieba-Cloud-Sign 
Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
index.php 2.12 KB
Copy Edit Web IDE Raw Blame History
<?php
require dirname(__FILE__).'/init.php';
if (!isset($_GET['plugin']) && !isset($_GET['pub_plugin']) && !isset($_GET['vip_plugin']) && !isset($_GET['pri_plugin'])) {
loadhead();
template('control');
loadfoot();
} elseif (isset($_GET['plugin'])) {
$plug=strip_tags($_GET['plugin']);
if (in_array($plug, $i['plugins']['actived'])) {
if (file_exists(SYSTEM_ROOT.'/plugins/'.$plug.'/'.$plug.'_show.php') && !is_dir(SYSTEM_ROOT.'/plugins/'.$plug.'/'.$plug.'_show.php')) {
require_once SYSTEM_ROOT.'/plugins/'.$plug.'/'.$plug.'_show.php';
} else {
msg('插件前台显示模块不存在或不正确');
}
}
} elseif (isset($_GET['vip_plugin'])) {
$plug=strip_tags($_GET['vip_plugin']);
if (in_array($plug, $i['plugins']['actived'])) {
if (file_exists(SYSTEM_ROOT.'/plugins/'.$plug.'/'.$plug.'_vip.php') && !is_dir(SYSTEM_ROOT.'/plugins/'.$plug.'/'.$plug.'_vip.php')) {
if (ISVIP) {
require_once SYSTEM_ROOT.'/plugins/'.$plug.'/'.$plug.'_vip.php';
} else {
msg('权限不足');
}
} else {
msg('插件前台显示模块不存在或不正确');
}
}
} elseif (isset($_GET['pri_plugin'])) {
$plug=strip_tags($_GET['pri_plugin']);
if (in_array($plug, $i['plugins']['actived'])) {
if (file_exists(SYSTEM_ROOT.'/plugins/'.$plug.'/'.$plug.'_private.php') && !is_dir(SYSTEM_ROOT.'/plugins/'.$plug.'/'.$plug.'_private.php')) {
if (ROLE == 'admin') {
require_once SYSTEM_ROOT.'/plugins/'.$plug.'/'.$plug.'_private.php';
} else {
msg('权限不足');
}
require_once SYSTEM_ROOT.'/plugins/'.$plug.'/'.$plug.'_private.php';
} else {
msg('插件前台显示模块不存在或不正确');
}
}
} elseif (defined('SYSTEM_READY_LOAD_PUBPLUGIN')) {
$i['user']['role'] = 'visitor';
$plug = strip_tags($_GET['pub_plugin']);
if (in_array($plug, $i['plugins']['actived'])) {
if (file_exists(SYSTEM_ROOT.'/plugins/'.$plug.'/'.$plug.'_public.php') && !is_dir(SYSTEM_ROOT.'/plugins/'.$plug.'/'.$plug.'_public.php')) {
require_once SYSTEM_ROOT.'/plugins/'.$plug.'/'.$plug.'_public.php';
} else {
msg('插件前台显示模块不存在或不正确');
}
} else {
ReDirect('index.php?mod=login');
}
die;
}

Comment ( 0 )

Sign in for post a comment

1
https://gitee.com/superxzr/Tieba-Cloud-Sign.git
git@gitee.com:superxzr/Tieba-Cloud-Sign.git
superxzr
Tieba-Cloud-Sign
Tieba-Cloud-Sign
master

Search