try to hook the new CopyFile function into the main brouteur

This commit is contained in:
Antoine Beaupré 2008-01-22 02:41:33 +00:00
parent 57cf564a80
commit 0a65fa34b9
1 changed files with 8 additions and 1 deletions

View File

@ -86,6 +86,11 @@ if ($formu) {
exit(); exit();
} }
} }
if ($actcopy) {
if (!$bro->CopyFile($d,$R,$actmoveto)) {
print $err->errstr();
}
}
if ($actmove) { if ($actmove) {
if (!$bro->MoveFile($d,$R,$actmoveto)) { if (!$bro->MoveFile($d,$R,$actmoveto)) {
print $err->errstr(); print $err->errstr();
@ -175,9 +180,11 @@ document.write("<input type=\"button\" value=\"<?php __("all/none"); ?>\" class=
</script> </script>
<input type="submit" class="inb" name="actdel" value="<?php __("Delete"); ?>" /> <input type="submit" class="inb" name="actdel" value="<?php __("Delete"); ?>" />
<input type="submit" class="inb" name="actcopy" value="<?php __("Copy"); ?>" />
<input type="submit" class="inb" name="actrename" value="<?php __("Rename"); ?>" /> <input type="submit" class="inb" name="actrename" value="<?php __("Rename"); ?>" />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
<input type="submit" class="inb" name="actmove" value="<?php __("Move to"); ?>" />&nbsp;:&nbsp;<input type="text" class="int" name="actmoveto" value="" /> <input type="submit" class="inb" name="actmove" value="<?php __("Move/Copy to"); ?>" />&nbsp;:&nbsp;<input type="text" class="int" name="actmoveto" value="" />
<script type="text/javascript"> <script type="text/javascript">
<!-- <!--
document.write("<input type=\"button\" name=\"bff\" onclick=\"browseforfolder('main.actmoveto');\" value=\" ... \" class=\"inb\" />"); document.write("<input type=\"button\" name=\"bff\" onclick=\"browseforfolder('main.actmoveto');\" value=\" ... \" class=\"inb\" />");