平平
平平网络setbug.com
//自动加载类 class autoLoad(){ function __construct(){ $fileList=[ "function/function.php"; ]; foreach($fileList as $va){ $annotation=(new annotation())->getAllFunctionAnnotationInFile($va,'autoLoad'); if(empty($annotation)) return; foreach($annotation as $fu => $lo){ if($lo['autoLoad'][0]){ call_user_func($fu); } } } } } //函数文件function/function.php /** *@autoLoad 'true' */ function autoLoad(){ include 'init.php'; } /** *@autoLoad 'true' */ function isMyDomain(){ if(!isMine) exit('恶意域名'); } //测试文件 new autoLoad();
2019 - 2024 ⎛⎝平平博客⎠⎞
⎛⎝平平博客⎠⎞由 强力驱动!
本站部分资源来源于网络,不要轻信本站之外的任何广告,否则由此带来的损失本站不负任何责任。
如有侵权请准备好 材料(点击查看材料) 后,联系QQ185754426删除
欢迎您,来自美国Amazon数据中心的用户,您的IP为:18.226.169.94;