Init("file_manage_control.php", "/static/web/js/admin.blank.js", "POST"); $win->AddHidden("fmdo", $fmdo); $win->AddHidden("activepath", $activepath); $win->AddHidden("filename", $filename); $win->AddTitle("修改文件名,当前位置:".$ndirstring.""); $win->AddItem("旧名称", ""); $win->AddItem("新名称", ""); $winform = $win->GetWindow("ok"); $win->Display(); } //新建目录 else if ($fmdo == "newdir") { if ($activepath == "") $activepathname = "根目录"; else $activepathname = $activepath; $wintitle = "新建文件目录"; $win = new OxWindow(); $win->Init("file_manage_control.php", "/static/web/js/admin.blank.js", "POST"); $win->AddHidden("fmdo", $fmdo); $win->AddHidden("activepath", $activepath); $win->AddHidden("token", make_hash()); $win->AddTitle("当前目录:".$activepathname.""); $win->AddItem("新目录", ""); $winform = $win->GetWindow("ok"); $win->Display(); } //移动文件 else if ($fmdo == "move") { $wintitle = "移动指定文件"; $win = new OxWindow(); $win->Init("file_manage_control.php", "/static/web/js/admin.blank.js", "POST"); $win->AddHidden("fmdo", $fmdo); $win->AddHidden("activepath", $activepath); $win->AddHidden("filename", $filename); $win->AddTitle("新位置前面不加斜杆/表示相对于当前位置,加斜杆/表示相对于根目录"); $win->AddItem("移动文件", $filename); $win->AddItem("当前位置", $activepath); $win->AddItem("新位置", ""); $winform = $win->GetWindow("ok"); $win->Display(); } //删除文件 else if ($fmdo == "del") { $wintitle = "删除指定文件"; $win = new OxWindow(); $win->Init("file_manage_control.php", "/static/web/js/admin.blank.js", "POST"); $win->AddHidden("fmdo", $fmdo); $win->AddHidden("activepath", $activepath); $win->AddHidden("filename", $filename); if (@is_dir($cfg_basedir.$activepath."/$filename")) { $msg = "