summaryrefslogtreecommitdiffstats
path: root/endpoint.php
diff options
context:
space:
mode:
Diffstat (limited to 'endpoint.php')
-rw-r--r--endpoint.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/endpoint.php b/endpoint.php
new file mode 100644
index 0000000..a58eeb5
--- /dev/null
+++ b/endpoint.php
@@ -0,0 +1,9 @@
+<?php
+ error_reporting(0);
+ header("Content-Type: application/json");
+ require "main.php";
+ $g = new gimsisextClient();
+ $g->setusername($_REQUEST['u']);
+ $g->setpassword($_REQUEST['p']);
+ echo json_encode($g->{$_REQUEST['m']}($_REQUEST['a'], $_REQUEST['b'], $_REQUEST['c'], $_REQUEST['d'], $_REQUEST['e']));
+?>