123456789101112131415161718192021222324252627 |
- <?php
- /**
- * This is NOT a freeware, use is subject to license terms
- * From www.1314study.com
- * 应用售后问题:http://www.discuz.1314study.com/services.php?mod=ask&sid=1
- * 应用售前咨询:http://www.discuz.1314study.com/services.php?mod=ask&sid=2
- * 二次开发定制:http://www.discuz.1314study.com/services.php?mod=ask&sid=22
- */
- if(!defined('IN_ADMINCP')) {
- exit('Access Denied');
- }
- $available = $operation == 'enable' ? 1 : 0;
- C::t('common_plugin')->update($_GET['pluginid'], array('available' => $available));
- updatecache(array('plugin', 'setting', 'styles'));
- cleartemplatecache();
- updatemenu('plugin');
- $_statInfo = array();
- $_statInfo['pluginName'] = $plugin['identifier'];
- $_statInfo['bbsVersion'] = DISCUZ_VERSION;
- $_statInfo['bbsUrl'] = $_G['siteurl'];
- $_statInfo['action'] = $operation;
- $_statInfo['nextUrl'] = ADMINSCRIPT.'?action=plugins';
- $_statInfo = base64_encode(serialize($_statInfo));
- $_md5Check = md5($_statInfo);
- cpmsg('plugins_'.$operation.'_succeed', 'http://addon.1314study.com/api/outer_addon.php?type=js&info='.$_statInfo.'&md5check='.$_md5Check, 'succeed');
|