move.cgi
来自「Unix下基于Web的管理工具」· CGI 代码 · 共 27 行
CGI
27 行
#!/usr/local/bin/perl# move.cgi# Move some file or directoryrequire './file-lib.pl';&ReadParse();&switch_acl_uid();print "Content-type: text/plain\n\n";unlink($in{'to'}); # in case we are moving a directoryif (!&can_access($in{'to'})) { print &text('move_eto', $in{'to'}),"\n"; exit; }if (!&can_access($in{'from'})) { print &text('move_efrom', $in{'from'}),"\n"; exit; }$out = `mv "$in{'from'}" "$in{'to'}" 2>&1`;if ($?) { print $out,"\n"; }else { print "\n"; print &file_info_line($in{'to'}),"\n"; }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?