summaryrefslogtreecommitdiff
path: root/moe/includes/api.php
diff options
context:
space:
mode:
authorNeku <neku@pomf.se>2013-12-15 10:17:54 +0100
committerNeku <neku@pomf.se>2013-12-15 10:17:54 +0100
commitca784b878869279c95deaaadb754f17646e172dc (patch)
treecc3194868d76c968203924d4d3a7bcbd07ceac78 /moe/includes/api.php
parenta0544a9b609e0fa96d11ddbbe46c8e22d56ca1cc (diff)
some changes
Diffstat (limited to 'moe/includes/api.php')
-rw-r--r--moe/includes/api.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/moe/includes/api.php b/moe/includes/api.php
new file mode 100644
index 0000000..da0d652
--- /dev/null
+++ b/moe/includes/api.php
@@ -0,0 +1,23 @@
+<?php
+// This file will act as a APIish thing
+// Include core file
+require_once('core.php');
+
+if(isset($_GET['do'])){
+
+ $butt = $_GET['do'];
+
+ switch($butt){
+
+ case "login":
+ login($_POST['email'], $_POST['pass']);
+ break;
+
+ case "register":
+ register($_POST['email'], $_POST['pass']);
+ break;
+
+ default: echo "We could call this a 404 not found... Or what are you doing here?";
+ }
+}
+?> \ No newline at end of file