[# this template is for following functions: priv, chmod, chown]

{priv_header}

[if winix_function_param_is "r"]

{priv_change_in_dir}: [dir]

[end] [if not [winix_function_param_is "r"]]
[if priv_show_form_chown]
[end] [if priv_show_form_chmod]
[end] [if winix_function_param_is "postredirect"] [end]
[else]

{priv_for_all_files}

[if priv_show_form_chown]
[end] [if priv_show_form_chmod]
[end]

{priv_for_all_dirs}

[if priv_show_form_chown]
[end] [if priv_show_form_chmod]
[end]
[# !! improve me: for root directory dir_without_slash returns nothing, may would be better to show a slash?]
[if winix_function_param_is "postredirect"] [end]
[end]