权限管理

<?php $array=array("index.php","indexssss.php","indexss.php");
$isin = in_array(substr($_SERVER['PHP_SELF'],6),$array);
if($isin){echo "有权限!";}else{echo "没权限!!!";}

 

posted @ 2015-08-28 12:17  fleam  阅读(163)  评论(0编辑  收藏  举报