diff options
| author | Neku <neku@pomf.se> | 2013-12-15 10:17:54 +0100 |
|---|---|---|
| committer | Neku <neku@pomf.se> | 2013-12-15 10:17:54 +0100 |
| commit | ca784b878869279c95deaaadb754f17646e172dc (patch) | |
| tree | cc3194868d76c968203924d4d3a7bcbd07ceac78 /moe/api.php | |
| parent | a0544a9b609e0fa96d11ddbbe46c8e22d56ca1cc (diff) | |
some changes
Diffstat (limited to 'moe/api.php')
| -rw-r--r-- | moe/api.php | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/moe/api.php b/moe/api.php deleted file mode 100644 index f9313f5..0000000 --- a/moe/api.php +++ /dev/null @@ -1,28 +0,0 @@ -<?php -// This file will act as a APIish thing - -// Include core file -require_once('core.php'); - -// Decode incoming json -$in = json_decode($_POST['in']); - -// Perform wanted function -if($in['action']['0']=='register'){ - - // Check if reg is open - if(reg=='1'){ - - // Perform register function with data from json string - register($in['info']['0'], $in['info']['1'], $in['info']['2']); - - }else{ - // Re-direct to closed-reg info page? - $return = array('action' => 'closedreg'); - json_encode($return); - } - -}elseif ($in['action']['0']=='login') { - login($in['info']['0'], $in['info']['1']); -} -?>
\ No newline at end of file |
