Replace deprecated instr function with str_contains and add include/global.php for central configurations.
This commit is contained in:
@@ -1,13 +1,5 @@
|
||||
<?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);
|
||||
|
||||
Reference in New Issue
Block a user