-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmodule.php
More file actions
36 lines (30 loc) · 854 Bytes
/
module.php
File metadata and controls
36 lines (30 loc) · 854 Bytes
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
<?php
/**
* 个性桌面模块定义
*
* @author mario
* @url http://www.we7.cc
*/
defined('IN_IA') or exit('Access Denied');
class Mario_desktopModule extends WeModule {
public function settingsDisplay($settings) {
global $_W, $_GPC;
// load()->func('tpl');
if(checksubmit()) {
$setdata=array(
'bgpic' => trim($_GPC['bgpic']),
'banner' => serialize($_GPC['banner']),
'sysname'=>$_GPC['sysname'],
'sharetitle'=>$_GPC['sharetitle'],
'sharedesc'=>$_GPC['sharedesc'],
'shareimg'=>$_GPC['shareimg'],
'mtemplate'=>$_GPC['mtemplate'],
);
if ($this->saveSettings($setdata)) {
// message(trim($_GPC['bgpic']), 'refresh');
message('保存成功', 'refresh');
}
}
include $this->template('setting');
}
}