summaryrefslogtreecommitdiff
path: root/httemplate/misc/unsusp_pkg.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/misc/unsusp_pkg.cgi')
-rwxr-xr-xhttemplate/misc/unsusp_pkg.cgi16
1 files changed, 16 insertions, 0 deletions
diff --git a/httemplate/misc/unsusp_pkg.cgi b/httemplate/misc/unsusp_pkg.cgi
new file mode 100755
index 000000000..79c07a72a
--- /dev/null
+++ b/httemplate/misc/unsusp_pkg.cgi
@@ -0,0 +1,16 @@
+%
+%
+%#untaint pkgnum
+%my ($query) = $cgi->keywords;
+%$query =~ /^(\d+)$/ || die "Illegal pkgnum";
+%my $pkgnum = $1;
+%
+%my $cust_pkg = qsearchs('cust_pkg',{'pkgnum'=>$pkgnum});
+%
+%my $error = $cust_pkg->unsuspend;
+%&eidiot($error) if $error;
+%
+%print $cgi->redirect(popurl(2). "view/cust_main.cgi?".$cust_pkg->getfield('custnum'));
+%
+%
+