123456789101112131415161718192021222324252627282930313233 |
- <?php
- class refill_configControl extends SystemControl
- {
- public function __construct()
- {
- parent::__construct();
- }
- public function indexOp()
- {
- if(chksubmit())
- {
- foreach ($_POST as $key => $value) {
- $cache[$key] = $value;
- }
- wcache('config', ['data' => serialize($_POST)], 'refill-');
- showMessage('编辑成功');
- }
- else
- {
- $config = rcache('config', 'refill-');
- if (empty($config)) {
- $config = [];
- } else {
- $config = unserialize($config['data']);
- }
- Tpl::output('config', $config);
- Tpl::showpage('refill.config');
- }
- }
- }
|