summaryrefslogtreecommitdiffstats
path: root/endpoint.php
diff options
context:
space:
mode:
authorAnton Luka Šijanec <sijanecantonluka@gmail.com>2019-11-04 19:18:45 +0100
committerAnton Luka Šijanec <sijanecantonluka@gmail.com>2019-11-04 19:18:45 +0100
commit62a0d658541790febe678c6cad74f8dad6d12da0 (patch)
tree23bdde6cf06c8afc0d707a96da58872c241eedb8 /endpoint.php
parentdodal fetchocene, 0.6 (diff)
downloadgimsisextclient-62a0d658541790febe678c6cad74f8dad6d12da0.tar
gimsisextclient-62a0d658541790febe678c6cad74f8dad6d12da0.tar.gz
gimsisextclient-62a0d658541790febe678c6cad74f8dad6d12da0.tar.bz2
gimsisextclient-62a0d658541790febe678c6cad74f8dad6d12da0.tar.lz
gimsisextclient-62a0d658541790febe678c6cad74f8dad6d12da0.tar.xz
gimsisextclient-62a0d658541790febe678c6cad74f8dad6d12da0.tar.zst
gimsisextclient-62a0d658541790febe678c6cad74f8dad6d12da0.zip
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']));
+?>