-
Notifications
You must be signed in to change notification settings - Fork 1
/
misc.php
49 lines (40 loc) · 1.22 KB
/
misc.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
/*
* @copyright Leyun internet Technology(Shanghai)Co.,Ltd
* @license http://www.dzzoffice.com/licenses/license.txt
* @package DzzOffice
* @link http://www.dzzoffice.com
* @author zyx(zyx@dzz.cc)
*/
define('APPTYPEID', 100);
define('CURSCRIPT', 'core');
define('CURMODULE', 'misc');
require './core/class/class_core.php';
$dzz = C::app();
$dzz->reject_robot();
$modarray = array('seccode','sendmail', 'stat','initsys', 'userstatus', 'signin','updatecache','seluser','ajax','syscache','movetospace','setunrun','upgrade','sendwx');
$modcachelist = array(
);
$mod = getgpc('mod');
$mod = (empty($mod) || !in_array($mod, $modarray)) ? 'error' : $mod;
if(in_array($mod, array('seccode', 'secqaa', 'initsys','movetospace','setunrun','ajax','syscache,stat','sendmail','sendwx'))) {
define('ALLOWGUEST', 1);
}
$cachelist = array();
if(isset($modcachelist[$mod])) {
$cachelist = $modcachelist[$mod];
}
$dzz->cachelist = $cachelist;
switch ($mod) {
case 'secqaa':
case 'userstatus':
case 'seccode':
case 'updatecache':
$dzz->init_cron = false;
$dzz->init_session = false;
default:
break;
}
$dzz->init();
require DZZ_ROOT.'./core/misc/misc_'.$mod.'.php';
?>