人人商城

common.ctrl.php 814B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * [WeEngine System] Copyright (c) 2014 WE7.CC
  4. * WeEngine is NOT a free software, it under the license terms, visited http://www.we7.cc/ for more details.
  5. */
  6. $_W['page']['title'] = '全局设置 - 其他设置 - 系统管理';
  7. load()->model('setting');
  8. load()->func('communication');
  9. if(checksubmit('bae_delete_update') || checksubmit('bae_delete_install')) {
  10. if(!empty($_GPC['bae_delete_update'])) {
  11. unlink(IA_ROOT . '/data/update.lock');
  12. } elseif(!empty($_GPC['bae_delete_install'])) {
  13. unlink(IA_ROOT . '/data/install.lock');
  14. }
  15. message('操作成功!', url('system/common'), 'success');
  16. }
  17. if(checksubmit('authmodesubmit')) {
  18. $authmode = intval($_GPC['authmode']);
  19. setting_save($authmode, 'authmode');
  20. message('更新设置成功!', url('system/common'));
  21. }
  22. template('system/common');