phpcms2007很好的cms内容管理系统,操作方便

源代码在线查看: common.inc.php

软件大小: 6932 K
上传用户: novelty1234
关键词: phpcms 2007 cms 管理系统
下载地址: 免注册下载 普通下载 VIP

相关代码

								define('MOD_ROOT', substr(dirname(__FILE__), 0, -8));
				
				$mod = 'ask';
				require substr(MOD_ROOT, 0, -strlen($mod)).'include/common.inc.php';
				
				if(!$_userid) showmessage($LANG['please_login'], $MODULE['member']['linkurl'].'login.php?forward='.urlencode($PHP_URL));
				
				$GROUP = cache_read('member_group_'.$_groupid.'.php');
				$STATUS = array($LANG['unsettled'], $LANG['under_dealing'], $LANG['dealed'], $LANG['reject_deal']);
				
				$departments = cache_read('ask_department.php');
				foreach($departments as $id=>$department)
				{
					if(!check_purview($department['arrgroupid'])) 
					{
						unset($departments[$id]);
					}
				}
				
				if(isset($departmentid))
				{
					$departmentid = intval($departmentid);
					if(!array_key_exists($departmentid, $departments) || !check_purview($departments[$departmentid]['arrgroupid'])) showmessage($LANG['you_have_no_permission']);
				}
				?>			

相关资源