本文整理汇总了PHP中CAdminFileDialog::Remove方法的典型用法代码示例。如果您正苦于以下问题:PHP CAdminFileDialog::Remove方法的具体用法?PHP CAdminFileDialog::Remove怎么用?PHP CAdminFileDialog::Remove使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CAdminFileDialog
的用法示例。
在下文中一共展示了CAdminFileDialog::Remove方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: IncludeModuleLangFile
$APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
}
IncludeModuleLangFile(__FILE__);
echo '<!--BX_FD_LOAD_OK-->';
if (!check_bitrix_sessid()) {
die('<!--BX_FD_DUBLICATE_ACTION_REQUEST' . bitrix_sessid() . '-->');
}
$action = isset($_GET['action']) ? $_GET['action'] : false;
if ($action == 'start') {
CAdminFileDialog::Start(array('path' => isset($_GET['path']) ? $_GET['path'] : '', 'site' => isset($_GET['site']) ? $_GET['site'] : false, 'lang' => isset($_GET['lang']) ? $_GET['lang'] : 'en', 'getFiles' => !isset($_GET['get_files']) || $_GET['get_files'], 'bAddToMenu' => isset($_GET['add_to_menu']) && $_GET['add_to_menu'], 'operation' => isset($_GET['operation']) ? $_GET['operation'] : ''));
} elseif ($action == 'load') {
CAdminFileDialog::LoadItems(array('path' => isset($_GET['path']) ? $_GET['path'] : '/', 'site' => isset($_GET['site']) ? $_GET['site'] : false, 'loadRecursively' => intval($_GET['rec']) > 0, 'loadRoot' => intval($_GET['rec']) > 1, 'getFiles' => !isset($_GET['get_files']) || $_GET['get_files'], 'bAddToMenu' => isset($_GET['add_to_menu']) && $_GET['add_to_menu'], 'operation' => isset($_GET['operation']) ? $_GET['operation'] : ''));
} elseif ($action == 'new_dir') {
CAdminFileDialog::MakeNewDir(array('path' => isset($_GET['path']) ? $_GET['path'] : '', 'name' => isset($_GET['name']) ? $_GET['name'] : '', 'site' => isset($_GET['site']) ? $_GET['site'] : false, 'getFiles' => !isset($_GET['get_files']) || $_GET['get_files'], 'bAddToMenu' => isset($_GET['add_to_menu']) && $_GET['add_to_menu'], 'operation' => isset($_GET['operation']) ? $_GET['operation'] : ''));
} elseif ($action == 'remove') {
CAdminFileDialog::Remove(array('path' => isset($_GET['path']) ? $_GET['path'] : '', 'site' => isset($_GET['site']) ? $_GET['site'] : false, 'getFiles' => !isset($_GET['get_files']) || $_GET['get_files'], 'bAddToMenu' => isset($_GET['add_to_menu']) && $_GET['add_to_menu'], 'operation' => isset($_GET['operation']) ? $_GET['operation'] : ''));
} elseif ($action == 'rename') {
CAdminFileDialog::Rename(array('path' => isset($_GET['path']) ? $_GET['path'] : '', 'old_name' => isset($_GET['old_name']) ? $_GET['old_name'] : '', 'name' => isset($_GET['name']) ? $_GET['name'] : '', 'site' => isset($_GET['site']) ? $_GET['site'] : false, 'getFiles' => !isset($_GET['get_files']) || $_GET['get_files'], 'bAddToMenu' => isset($_GET['add_to_menu']) && $_GET['add_to_menu'], 'operation' => isset($_GET['operation']) ? $_GET['operation'] : ''));
} elseif ($action == 'set_config') {
CAdminFileDialog::SetUserConfig(array('path' => isset($_GET['path']) ? $_GET['path'] : '/', 'site' => isset($_GET['site']) ? $_GET['site'] : false, 'view' => isset($_GET['view']) ? $_GET['view'] : 'list', 'sort' => isset($_GET['sort']) ? $_GET['sort'] : 'name', 'sort_order' => isset($_GET['sort_order']) ? $_GET['sort_order'] : 'asc'));
} elseif ($action == 'flash') {
CAdminFileDialog::PreviewFlash(array('path' => isset($_GET['path']) ? $_GET['path'] : '/', 'site' => isset($_GET['site']) ? $_GET['site'] : false, 'width' => '86px', 'height' => '86px'));
} elseif ($action == 'uploader') {
if (isset($_REQUEST['cur_site'])) {
$curSite = $_REQUEST['cur_site'];
} elseif (isset($_REQUEST['site'])) {
$curSite = $_REQUEST['site'];
} else {
$curSite = false;
}
CAdminFileDialog::ShowUploadForm(array('lang' => isset($_REQUEST['lang']) ? $_REQUEST['lang'] : 'en', 'site' => $curSite, 'file' => isset($_FILES["load_file"]) ? $_FILES["load_file"] : false, 'path' => isset($_POST["path"]) ? $_POST["path"] : '', 'filename' => isset($_POST["filename"]) ? $_POST["filename"] : '', 'upload_and_open' => isset($_POST["upload_and_open"]) ? $_POST["upload_and_open"] : 'N', 'rewrite' => isset($_POST["rewrite"]) ? $_POST["rewrite"] : 'N'));