|
| | $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() |
| |