projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5dfbe02
)
Added cgi args parser
author
Jamie Cameron
<jcameron@webmin.com>
Fri, 5 Jun 2009 19:50:12 +0000
(19:50 +0000)
committer
Jamie Cameron
<jcameron@webmin.com>
Fri, 5 Jun 2009 19:50:12 +0000
(19:50 +0000)
grub/cgi_args.pl
[new file with mode: 0644]
patch
|
blob
diff --git a/grub/cgi_args.pl
b/grub/cgi_args.pl
new file mode 100644
(file)
index 0000000..
8db05ed
--- /dev/null
+++ b/
grub/cgi_args.pl
@@ -0,0
+1,13
@@
+
+do 'grub-lib.pl';
+
+sub cgi_args
+{
+my ($cgi) = @_;
+if ($cgi eq 'edit_title.cgi') {
+ my $conf = &get_menu_config();
+ my @titles = &find("title", $conf);
+ return @titles ? 'idx='.$titles[0]->{'index'} : 'new=1';
+ }
+return undef;
+}