This commit is contained in:
salam committed 2026-01-15 13:03:29 +01:00
1 parent 4855409af0
commit d11882ddba
2 files changed
+7 -13

No files matched your search

@@ -63,8 +63,6 @@ class Authentication
$file = curl_exec($ch);
echo $file;
$data = json_decode($file, true);
$header = [];
@@ -49,23 +49,19 @@ class LogifutureData
}
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_URL, $_POST['url']);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
'username' => 'nuhodds',
'password' => self::$password,
]));
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'accept: application/json',
'content-type: application/json',
]);
curl_setopt($ch, CURLOPT_HTTPHEADER, Logifuture::$auth_header);
}
$file = curl_exec($ch);
dd($file);
if (curl_errno($ch)) {
echo curl_error($ch);
}
return json_decode($file, true);
}