projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b36b92
)
Add CGI args parser
author
Jamie Cameron
<jcameron@webmin.com>
Tue, 9 Jun 2009 00:29:50 +0000
(
00:29
+0000)
committer
Jamie Cameron
<jcameron@webmin.com>
Tue, 9 Jun 2009 00:29:50 +0000
(
00:29
+0000)
at/cgi_args.pl
[new file with mode: 0644]
patch
|
blob
diff --git a/at/cgi_args.pl
b/at/cgi_args.pl
new file mode 100644
(file)
index 0000000..
08bfe17
--- /dev/null
+++ b/
at/cgi_args.pl
@@ -0,0
+1,13
@@
+
+do 'at-lib.pl';
+
+sub cgi_args
+{
+my ($cgi) = @_;
+if ($cgi eq 'edit_job.cgi') {
+ my @jobs = &list_atjobs();
+ @jobs = grep { &can_edit_user(\%access, $_->{'user'}) } @jobs;
+ return @jobs ? 'id='.$jobs[0]->{'idx'} : 'none';
+ }
+return undef;
+}