projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47ecc70
)
Added cgi args parser
author
Jamie Cameron
<jcameron@webmin.com>
Fri, 5 Jun 2009 20:34:00 +0000
(20:34 +0000)
committer
Jamie Cameron
<jcameron@webmin.com>
Fri, 5 Jun 2009 20:34:00 +0000
(20:34 +0000)
exports/cgi_args.pl
[new file with mode: 0644]
patch
|
blob
diff --git a/exports/cgi_args.pl
b/exports/cgi_args.pl
new file mode 100644
(file)
index 0000000..
8ec2835
--- /dev/null
+++ b/
exports/cgi_args.pl
@@ -0,0
+1,12
@@
+
+do 'exports-lib.pl';
+
+sub cgi_args
+{
+my ($cgi) = @_;
+if ($cgi eq 'edit_export.cgi') {
+ my @exps = &list_exports();
+ return @exps ? 'idx='.$exps[0]->{'index'} : 'new=1';
+ }
+return undef;
+}