summaryrefslogtreecommitdiff
path: root/moe/includes/api.php
blob: da0d6528b847fe69db1892cc790d81abf1502736 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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?";
	}
}
?>