summaryrefslogtreecommitdiffstats
path: root/qooxdoo/source/mtr.cgi
diff options
context:
space:
mode:
authorTobi Oetiker <tobi@oetiker.ch>2008-06-02 22:03:33 +0200
committerTobi Oetiker <tobi@oetiker.ch>2008-06-02 22:03:33 +0200
commit8793d83042d5cf388a30ee5f8637fa6554334aa6 (patch)
treeca1d1a68cd3513f1eab9fa9a14559f687d233aae /qooxdoo/source/mtr.cgi
parent6b239270a134ef8f26d59a7ab9b35eeeeceb9c47 (diff)
downloadsmokeping-8793d83042d5cf388a30ee5f8637fa6554334aa6.tar.gz
smokeping-8793d83042d5cf388a30ee5f8637fa6554334aa6.tar.xz
initial support for mrt integration
Diffstat (limited to 'qooxdoo/source/mtr.cgi')
-rwxr-xr-xqooxdoo/source/mtr.cgi26
1 files changed, 26 insertions, 0 deletions
diff --git a/qooxdoo/source/mtr.cgi b/qooxdoo/source/mtr.cgi
new file mode 100755
index 0000000..1cf543c
--- /dev/null
+++ b/qooxdoo/source/mtr.cgi
@@ -0,0 +1,26 @@
+#!/usr/sepp/bin/perl-5.8.8 -w
+use strict;
+$ENV{PATH}="/usr/pack/mtr-0.72-mo/amd64-debian-linux3.1/sbin";
+use lib qw( perl );
+
+use CGI;
+use CGI::Util qw(expires);
+use CGI::Session;
+use Qooxdoo::JSONRPC;
+
+$Qooxdoo::JSONRPC::debug=1;
+
+# Change this space-separated list of directories to include
+# Qooxdoo::JSONRPC.pm and co-located Services
+
+# If this module can't be found, the previous line is incorrect
+
+# Instantiating the CGI module which parses the HTTP request
+
+my $cgi = new CGI;
+my $session = new CGI::Session;
+
+# You can customise this harness here to handle cases before treating
+# the request as being JSON-RPC
+Qooxdoo::JSONRPC::handle_request ($cgi, $session);
+