summaryrefslogtreecommitdiff
path: root/moe/includes
diff options
context:
space:
mode:
authorNeku <neku@pomf.se>2014-12-07 19:23:08 +0100
committerNeku <neku@pomf.se>2014-12-07 19:23:08 +0100
commite7b5528271a15c8cb7a5aef848d03d6c0c09ac5b (patch)
treeb128358139ffc60325e6f582ed5b5eabc056cd53 /moe/includes
parentd9a82ac2095c20ffa91243713fc6dac2b0def48c (diff)
Update api.php
Diffstat (limited to 'moe/includes')
-rw-r--r--moe/includes/api.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/moe/includes/api.php b/moe/includes/api.php
index 387c5eb..cc4dcb6 100644
--- a/moe/includes/api.php
+++ b/moe/includes/api.php
@@ -1,4 +1,5 @@
<?php
+//error_reporting(E_ERROR | E_WARNING | E_PARSE);
// This file will act as a APIish thing
// Include core file
require_once('core.php');
@@ -14,7 +15,15 @@ if(isset($_GET['do'])){
break;
case "register":
- register($_POST['email'], $_POST['pass']);
+ register($_POST['email'], $_POST['pass'], $_POST['code']);
+ break;
+
+ case "invite-generate":
+ generate($_GET['email'], $_GET['level']);
+ break;
+
+ case "mod":
+ mod($_GET['action'], $_GET['date'], $_GET['count'], $_GET['why'], $_GET['file'], $_GET['keyword'], $_GET['fileid'], $_GET['hash'], $_GET['orginalname']);
break;
case "cp":
@@ -26,7 +35,7 @@ if(isset($_GET['do'])){
break;
case "delete":
- delete($_GET['f'], $_GET['delid']);
+ delete($_GET['f'],$_GET['delid']);
break;
case "logout":