summaryrefslogtreecommitdiffstats
path: root/exilog_cgi_param.pm
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2008-12-03 20:37:13 +0100
committerAndreas Unterkircher <unki@netshadow.at>2008-12-12 18:36:55 +0100
commit0a6e4fae2c79d5f9da1033e0a51abfc69e10b8b2 (patch)
tree041b13746bede1eeceec181a8a00405e26d9db36 /exilog_cgi_param.pm
parent226ad0a3c764c0606048acf7371b02765eee60d2 (diff)
downloadexilog-0a6e4fae2c79d5f9da1033e0a51abfc69e10b8b2.zip
exilog-0a6e4fae2c79d5f9da1033e0a51abfc69e10b8b2.tar.gz
exilog-0a6e4fae2c79d5f9da1033e0a51abfc69e10b8b2.tar.bz2
sort files into their directories. move agent- and cleanup-script into 'agents', all static www-content (icons, stylesheet, javascript, ...) into 'htdocs'. cgi-stuff into 'cgi' and all reused code into 'lib'.
Signed-off-by: Andreas Unterkircher <unki@netshadow.at>
Diffstat (limited to 'exilog_cgi_param.pm')
-rw-r--r--exilog_cgi_param.pm74
1 files changed, 0 insertions, 74 deletions
diff --git a/exilog_cgi_param.pm b/exilog_cgi_param.pm
deleted file mode 100644
index 5096ee3..0000000
--- a/exilog_cgi_param.pm
+++ /dev/null
@@ -1,74 +0,0 @@
-#!/usr/bin/perl -w
-#
-# This file is part of the exilog suite.
-#
-# http://duncanthrax.net/exilog/
-#
-# (c) Tom Kistner 2004
-#
-# See LICENSE for licensing information.
-#
-
-package exilog_cgi_param;
-use strict;
-use exilog_cgi_html;
-use exilog_config;
-
-use Data::Dumper;
-
-BEGIN {
- use Exporter;
- use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
-
- $VERSION = 0.1;
- @ISA = qw(Exporter);
- @EXPORT = qw(
- $param
- );
-
- %EXPORT_TAGS = ();
- @EXPORT_OK = qw();
-
- use vars qw( $param );
-}
-
-$param = _init_cgi_params();
-
-sub _init_cgi_params {
- my $param = {};
-
- foreach ($q->param) {
- my @test = $q->param($_);
-
- if ((scalar @test) > 1) {
- $param->{$_} = \@test;
- }
- else {
- $param->{$_} = $test[0];
- };
- };
-
- # defaults
- my $defaults = {
- 'tab' => 'messages',
- 'qw' => [ 'messages',
- 'errors',
- 'deliveries',
- 'deferrals',
- 'rejects',
- 'queue' ],
- 'ss' => '-all',
- 'tr' => '-10m',
- #'qt' => 'all',
- 'qs' => "",
- 'sr' => [ keys %{ $config->{servers} } ]
- };
-
- foreach (keys %{ $defaults }) {
- $param->{$_} = $defaults->{$_} unless exists($param->{$_});
- };
- return $param;
-};
-
-
-1;