summaryrefslogtreecommitdiff
path: root/httemplate/config/config-delete.cgi
diff options
context:
space:
mode:
authorcvs2git <cvs2git>2008-03-16 19:58:34 +0000
committercvs2git <cvs2git>2008-03-16 19:58:34 +0000
commiteb061f5119325e666f0dff40d4089e5c1df58e17 (patch)
treed55e8fef5aca62eb13bbc8ad20dbdf941c3bd266 /httemplate/config/config-delete.cgi
parent3a17b276638200475d54201fa62566b7440e819a (diff)
This commit was manufactured by cvs2svn to create tag 'TRIXBOX_2_6'.TRIXBOX_2_6
Diffstat (limited to 'httemplate/config/config-delete.cgi')
-rw-r--r--httemplate/config/config-delete.cgi15
1 files changed, 0 insertions, 15 deletions
diff --git a/httemplate/config/config-delete.cgi b/httemplate/config/config-delete.cgi
deleted file mode 100644
index cdac434..0000000
--- a/httemplate/config/config-delete.cgi
+++ /dev/null
@@ -1,15 +0,0 @@
-<%init>
-die "access denied\n"
- unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
-
-die "No configuration item specified (bad URL)!" unless $cgi->keywords;
-my ($query) = $cgi->keywords;
-$query =~ /^(\d+)$/;
-my $confnum = $1;
-
-my $conf = qsearchs('conf', {'confnum' => $confnum});
-die "Configuration not found!" unless $conf;
-$conf->delete;
-
-</%init>
-<% $cgi->redirect(popurl(2) . "browse/agent.cgi") %>