summaryrefslogtreecommitdiff
path: root/httemplate/misc
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2012-06-13 16:18:49 -0700
committerMark Wells <mark@freeside.biz>2012-06-13 16:18:49 -0700
commit9ef78be87df0f0f880ff5d903ed6243b67369cf0 (patch)
treee69278b1e33baf2b9c0356ed31435fc0f0188b01 /httemplate/misc
parentdaa09251fec52517b630b3f6935041dc7c795f90 (diff)
table of FTP targets for invoice spool upload, #17620
Diffstat (limited to 'httemplate/misc')
-rw-r--r--httemplate/misc/delete-ftp_target.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/httemplate/misc/delete-ftp_target.html b/httemplate/misc/delete-ftp_target.html
new file mode 100644
index 000000000..c8bd29701
--- /dev/null
+++ b/httemplate/misc/delete-ftp_target.html
@@ -0,0 +1,18 @@
+% if ( $error ) {
+% errorpage($error);
+% } else {
+<% $cgi->redirect("${p}browse/ftp_target.html") %>
+% }
+<%init>
+
+die "access denied"
+ unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
+
+my($query) = $cgi->keywords;
+$query =~ /^(\d+)$/ || die "Illegal targetnum";
+my $targetnum = $1;
+
+my $target = qsearchs('ftp_target',{'targetnum'=>$targetnum});
+my $error = $target->delete;
+
+</%init>