summaryrefslogtreecommitdiffstats
path: root/qooxdoo/source/jsonrpc.cgi
diff options
context:
space:
mode:
authorTobi Oetiker <tobi@oetiker.ch>2007-11-14 18:33:19 +0100
committerTobi Oetiker <tobi@oetiker.ch>2007-11-14 18:33:19 +0100
commitff7b9de82908baf1d5f9af71e35dad2369bfdc2f (patch)
tree1f9821bf2323786cbe68b4d3b0964ca449332766 /qooxdoo/source/jsonrpc.cgi
parentd546419d19b89633f8ac3c461eb900f4c4f29b90 (diff)
downloadsmokeping-ff7b9de82908baf1d5f9af71e35dad2369bfdc2f.tar.gz
smokeping-ff7b9de82908baf1d5f9af71e35dad2369bfdc2f.tar.xz
initial qooxdoo drop for smokeping
Diffstat (limited to 'qooxdoo/source/jsonrpc.cgi')
-rwxr-xr-xqooxdoo/source/jsonrpc.cgi26
1 files changed, 26 insertions, 0 deletions
diff --git a/qooxdoo/source/jsonrpc.cgi b/qooxdoo/source/jsonrpc.cgi
new file mode 100755
index 0000000..372273d
--- /dev/null
+++ b/qooxdoo/source/jsonrpc.cgi
@@ -0,0 +1,26 @@
+#!/usr/sepp/bin/perl-5.8.8 -w
+use strict;
+use lib qw( perl );
+
+use CGI;
+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);
+
+