_controller_public_methods = $this->_getControllerPublicMethods();
flushWebContent('开始检测 ' . $module . '权限点
');
flushWebContent('脱离权限控制的访问入口如下:
');
$files = array();
searchDir(APP_PATH . ucfirst($module) . '/' . C('DEFAULT_C_LAYER'), $files);
foreach($files as $file){
if(preg_match('/(\w+)Controller.class.php$/', basename($file), $matches)){
$controller_name = $matches[1];
flushWebContent('
' . $controller_name . ':
'); $class = new \ReflectionClass(parse_res_name($controller_name, C('DEFAULT_C_LAYER'), C('CONTROLLER_LEVEL'))); $methods = $class->getMethods(); foreach($methods as $method){ $method_name = $method->getName(); if($method->isPublic() && $method->isUserDefined() && !in_array($method_name, $this->_controller_public_methods)){ if(!D('Node')->isExistsNode($module, $controller_name, $method_name)){ flushWebContent($method_name . '