mirror of
https://github.com/samsonjs/mit-license.git
synced 2026-03-26 09:35:48 +00:00
yup, no idea how php works anymore
This commit is contained in:
parent
6e26a7fa81
commit
082fbd18e7
1 changed files with 3 additions and 1 deletions
|
|
@ -16,7 +16,9 @@
|
|||
$user_file = 'users/' . $cname . '.json';
|
||||
|
||||
if ($_SERVER['REQUEST_METHOD'] === 'POST' && $cname) {
|
||||
Throw new Exception('>>> curl API has been temporarily disabled. Please send a pull request in the short term. Service will resume as normal again soon ❤');
|
||||
echo ('>>> curl API has been temporarily disabled. Please send a pull request in the short term. Service will resume as normal again soon ❤');
|
||||
exit;
|
||||
|
||||
try {
|
||||
$data = json_decode(file_get_contents('php://input'));
|
||||
if (!property_exists($data, 'copyright')) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue