/** * 编辑器配置项目 * * @author tuzwu * @createtime 2014-8-30 20:31:23 * @modifytime * @param * @return */ public function ueditor() { if (isset($GLOBALS['dosubmit'])) { $cache_in_db = cache_in_db($GLOBALS['setting'], V, M); set_cache(V, $GLOBALS['setting']); MSG(L('operation_success'), HTTP_REFERER, 3000); } else { $setting = get_cache(V); if (empty($setting)) { $setting = cache_in_db('', V, M); } include $this->template(V, M); } }
/** * 模块设置 * * @author tuzwu */ public function set() { if (isset($GLOBALS['dosubmit'])) { $cache_in_db = cache_in_db($GLOBALS['setting'], V, M); set_cache(M, $GLOBALS['setting']); MSG(L('operation_success'), HTTP_REFERER, 3000); } else { $show_dialog = 1; load_class('form'); load_function('template'); $templates = select_template(M); $setting =& $this->_cache; if (empty($setting)) { $setting = cache_in_db('', V, M); } $linkage = $this->db->get_list('linkage', '', 'name,linkageid', 0, 100, '', "linkageid ASC", '', 'linkageid'); foreach ($linkage as $k => $v) { $linkage[$k] = $v['name']; } include $this->template('set', M); } }