This repository has been archived by the owner on Aug 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.class.php
35 lines (28 loc) · 1.57 KB
/
main.class.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
if(!defined('IN_DISCUZ')) {
exit('Access Denied');
}
class mobileplugin_arclight_no_phone_login extends base_plugin_phone_user_and_dog_forbidden {
function common() {
parent::closeforumindex('mobile');
}
}
class base_plugin_phone_user_and_dog_forbidden {
//TODO - Insert your code here
static function closeforumindex($type = 'pc') {
global $_G;
$_config = $_G['cache']['plugin']['arclight_no_phone_login'];
// 未开启,不执行
if(!$_config['enableplugin']) {
return false;
}
$basescript = $_G['basescript'];
$curm = CURMODULE;
if($_config["kickmode"] == "2"){
dheader('location: plugin.php?id=arclight_no_phone_login:nophone&mobile=no');
}else{
dheader('location: ' . $_G['siteurl']."?mobile=no");
}
}
}
?>