validate_file_to_edit()判断一个文件是否允许编辑

目录

描述

Make sure that the file that was requested to edit, is allowed to be edited.Function will die if if you are not allowed to edit the file.

validate_file_to_edit() 描述

用法

 <?php validate_file_to_edit$file$allowed_files ); ?> 

validate_file_to_edit() 用法

参数

$file

(string) (必填) File the users is attempting to edit. required

默认值: None

$allowed_files

(array) (可选) Array of allowed files to edit, $file must match an entry exactly.

默认值:

validate_file_to_edit() 参数

历史

  • 添加于 版本: 1.5.0

validate_file_to_edit() 历史