相关代码 |
|
defined('IN_PHPCMS') or exit('Access Denied'); require_once 'block.class.php'; $block = new block(); switch($action) { case 'add': if($dosubmit) { $blockid = $block->add($info, $roleids); if($blockid) { header('location:?mod='.$mod.'&file='.$file.'&action=update&ajax='.$ajax.'&func=add_block&blockid='.$blockid.'&forward='.urlencode($forward)); } else { showmessage('鎿嶄綔澶辫触锛