You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
333 B
8 lines
333 B
<?php |
|
if($_SERVER['REQUEST_METHOD'] == "PUT" || $_SERVER['REQUEST_METHOD'] == 'DELETE'){ |
|
header($_SERVER["SERVER_PROTOCOL"]." 403 Forbidden", true, 403); |
|
print("Modification forbidden, resource doesn't exist"); |
|
}else if($_SERVER['REQUEST_METHOD'] == 'POST'){ |
|
header($_SERVER["SERVER_PROTOCOL"]." 400 Bad Request", true, 400); |
|
} |
|
?>
|