From 796f4329e6dd6b96426905468fc552d0af456ebf Mon Sep 17 00:00:00 2001 From: Neku Date: Sun, 15 Dec 2013 16:33:18 +0100 Subject: it will be ready sometime.. --- moe/includes/api.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'moe/includes/api.php') diff --git a/moe/includes/api.php b/moe/includes/api.php index da0d652..8ac0a92 100644 --- a/moe/includes/api.php +++ b/moe/includes/api.php @@ -17,6 +17,21 @@ if(isset($_GET['do'])){ register($_POST['email'], $_POST['pass']); break; + case "cp": + header('Location: ../panel'); + break; + + case "search": + search($_GET['q']); + break; + + case "logout": + session_unset(); + session_destroy(); + session_write_close(); + header('Location: ../login'); + break; + default: echo "We could call this a 404 not found... Or what are you doing here?"; } } -- cgit v1.2.3