summaryrefslogtreecommitdiff
path: root/moe/includes/api.php
diff options
context:
space:
mode:
authorNeku <neku@pomf.se>2013-12-15 16:33:18 +0100
committerNeku <neku@pomf.se>2013-12-15 16:33:18 +0100
commit796f4329e6dd6b96426905468fc552d0af456ebf (patch)
tree9dde7b333e67551be0769ea628e946126bbaf0d0 /moe/includes/api.php
parentca784b878869279c95deaaadb754f17646e172dc (diff)
it will be ready sometime..
Diffstat (limited to 'moe/includes/api.php')
-rw-r--r--moe/includes/api.php15
1 files changed, 15 insertions, 0 deletions
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?";
}
}