时间:2021-07-01 10:21:17 帮助过:4人阅读
代码如下 | |
function CreatePropertyArray(){ global $IP; $content = ''; $industris = array(); $industry_tree = array(); $content .= " //Industry $industries = getMasterPropertyValues('Industry'); foreach($industries as $v){ $industry_tree["$v"]= getSlavePropertyValues("Industry","Product Category", $v); } $content .= '$Industries = '. var_export($industries,true) . ";n"; file_put_contents($IP . '/termwiki_array.php',$content,LOCK_EX); } ?> |
http://www.bkjia.com/PHPjc/633147.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/633147.htmlTechArticle最近要开发一个权限功能,我希望用户在后台选择设置好的权限会生成一个与用户对应的php文件,这样只要用户登录我就加载相对应的配置...