本文整理汇总了PHP中filesystem::delete_system_folder方法的典型用法代码示例。如果您正苦于以下问题:PHP filesystem::delete_system_folder方法的具体用法?PHP filesystem::delete_system_folder怎么用?PHP filesystem::delete_system_folder使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类filesystem
的用法示例。
在下文中一共展示了filesystem::delete_system_folder方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
if (validate_input($name)) {
if (isset($_POST['share_folder']) && !$fs->get_share($path)) {
$fs->add_share($GO_SECURITY->user_id, $path);
} else {
if (!isset($_POST['share_folder'])) {
$fs->delete_share($path);
}
}
if ($GO_SECURITY->has_admin_permission($GO_SECURITY->user_id) && $fs->is_common_folder($path)) {
if (isset($_POST['system_folder']) && !$fs->is_system_folder($path)) {
if (!$fs->add_system_folder($path, $msg)) {
$feedback = '<p class="Error">' . $msg . '</p>';
}
} else {
if (!isset($_POST['system_folder']) && $fs->is_system_folder($path)) {
if (!$fs->delete_system_folder($path, $msg)) {
$feedback = '<p class="Error">' . $msg . '</p>';
}
}
}
}
if (!$fs->has_write_permission($GO_SECURITY->user_id, $path)) {
$feedback = '<p class="Error">' . $strAccessDenied . '</p>';
} elseif ($name == '') {
$feedback = '<p class="Error">' . $error_missing_field . '</p>';
} else {
if ($_POST['extension'] != '') {
$_POST['extension'] = '.' . $_POST['extension'];
}
$location = dirname($path);
$name = smartstrip($name);