diff options
Diffstat (limited to 'moe/includes/api.php')
| -rw-r--r-- | moe/includes/api.php | 23 |
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 |
