Amanu
Projektmanagement für Selbstständige und Freelancer
index.php File Reference

Functions

 catchAll ($e)
 
 json_response ($array)
 

Variables

 $conf = Config::getInstance()
 
 $method = $_SERVER['REQUEST_METHOD']
 
if($method== 'OPTIONS') if($method!= 'GET'&&$method!= 'POST'&&$method!= 'DELETE') if($method== 'POST') if($method== 'DELETE') if($method=== 'GET'&&isset($_GET['action'])) else if($method=== 'POST'&&isset($_POST['action'])) else if($method=== 'DELETE'&&isset($_DELETE['action'])) else if($method=== 'POST'&&isset($_GET["uploadfor"])) else
 
if(!preg_match("/^ $includefile [_a-zA-Z][_a-zA-Z0-9]*$/", $action)) = 'api/classes/'.$action.'.php'
 
if(!file_exists($includefile)) $thisisamanu = true
 
 $callarray = array($action, strtolower($method))
 
 $arguments = array()
 

Function Documentation

catchAll (   $e)

This function catches all uncaught Exceptions!

Parameters
Exception$e
json_response (   $array)

Echoes a given array as JSON

Variable Documentation

$method = $_SERVER['REQUEST_METHOD']
if ($method== 'DELETE') if (is_callable($callarray)) else
Initial value:
{
$error = new amaException(NULL, 400, "Action not defined")
Definition: amaException.php:16
if (!preg_match("/^ $includefile[_a-zA-Z][_a-zA-Z0-9]*$/", $action)) = 'api/classes/'.$action.'.php'
if (!file_exists($includefile)) $thisisamanu = true
$callarray = array($action, strtolower($method))
$arguments = array()