# Execute Dev-Editor's commands
#
# Author: Patrick Canterino <patrick@patshaping.de>
-# Last modified: 2005-07-06
+# Last modified: 2005-08-01
#
use strict;
print FILE $content;
}
- $output = devedit_reload({command => 'show', file => $dir});
+ $output = ($cgi->param('continue'))
+ ? devedit_reload({command => 'beginedit', file => $virtual})
+ : devedit_reload({command => 'show', file => $dir});
}
close(FILE);
# using only one command
#
# Author: Patrick Canterino <patrick@patshaping.de>
-# Last modified: 2005-07-05
+# Last modified: 2005-08-01
#
use strict;
$has_flock = eval { local $SIG{'__DIE__'}; flock(STDOUT,0); 1 };
+# Predeclaration of dir_copy()
+
+sub dir_copy($$);
+
# dir_copy()
#
# Copy a directory
<p><input type="submit" value="Copy directory!"></p>
</form>
-<p><b>Note:</b><br>
-The target you want this directory to copy to must not exist!</p>
+<p><b>Important notes:</b></p>
+
+<ul>
+<li>The target you want this directory to copy to <b>must not</b> exist!</li>
+<li>Please make sure that all your files were copied correctly. Due to problems concerning the architecture of Dev-Editor, a check of this is currently impossible. And by the way, you are absolutely right if you think now that I'm a very lousy and incompetent programmer.</li>
+</ul>
<hr>
<p><textarea name="filecontent" rows="25" cols="120">{CONTENT}</textarea></p>
-<p><input type="checkbox" name="saveas" id="newfile" value="1"><label for="newfile">Save as new file: {DIR} </label><input type="text" name="newfile" value="" onchange="if(this.form.newfile.value != '') this.form.saveas.checked = true; else this.form.saveas.checked = false;"></p>
+<p><input type="checkbox" name="saveas" id="newfile" value="1"><label for="newfile">Save as new file: {DIR} </label><input type="text" name="newfile" value="" onchange="if(this.form.newfile.value != '') this.form.saveas.checked = true; else this.form.saveas.checked = false;"><br>
+<input type="checkbox" name="continue" id="continue" value="1"><label for="continue">Save file and continue editing</label></p>
<p><input type="submit" value="Save file"> <input type="reset" value="Discard changes"></p>
</form>