作者:LAMP小白 点击:1785 发布日期:2012-09-20 00:38:00 返回列表
$allow_url = array('index','vote','manage');在这里建立了一个数组 保存允许访问的方法名
$act = in_array($_GET['act'],$allow_url) ? $_GET['act'] : $allow_url[0];
如果不在允许列表内 则访问主页
$csr = new Csr($act);
上一篇:linux编译C 下一篇:快递查询API