文字部分再斟酌吧。不早了,明天添加目录,以能基本查看全部论坛文件(图片,缓存文件等就不需要添加了)。
    safefile('./','\.php',0);
    safefile('admin/','\.php');
    safefile('api/','\.php|\.html');
    safefile('apps/','\.php|\.htm');
    safefile('hack/','\.php|\.htm');
    safefile('js/','\.js',0);
    safefile('lib/','\.php|\.html');
    safefile('mode/','\.js|\.php|\.htm');
    safefile('require/','\.php');
    safefile('simple/','\.php');
    safefile('template/','\.php|\.htm');
    safefile('m/','\.php');