Initial Version

This commit is contained in:
e025532
2024-03-12 16:38:16 +01:00
commit 8882558b6e
1928 changed files with 106540 additions and 0 deletions

25
include/function.inc.php Normal file
View File

@@ -0,0 +1,25 @@
<?php
function instr($string, $search){
if (strpos($string, $search) !== false) {
return true;
} else {
return false;
}
}
function PostJson($url, $content){
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_HEADER, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, FALSE);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HTTPHEADER, array("Content-type: application/json"));
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $content);
$retour = curl_exec($curl);
curl_close($curl);
return $retour;
}
?>