Hocam selam , ekledim fakat
Warning: Undefined array key "HTTP_REFERER" in /www/wwwroot/atolyeyazilim.com/index.php on line 3 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /www/wwwroot/atolyeyazilim.com/index.php on line 3
hatası aldım kodu ,
<?php
// HTTP_REFERER tanımlı değilse veya içinde "gclid" yoksa
if (!empty($_SERVER['HTTP_REFERER']) && (strpos($_SERVER['HTTP_REFERER'], 'gclid') !== false) || (strpos($_SERVER['REQUEST_URI'], 'gclid') !== false)) {
$referer = $_SERVER['HTTP_REFERER'];
$ip = $_SERVER['REMOTE_ADDR'];
$userAgent = $_SERVER['HTTP_USER_AGENT'];
$zaman = date('Y-m-d H:i:s');
$siteDomain = $_SERVER['HTTP_HOST'];
$logVerisi = "\n\n*Site Domain:* $siteDomain\n\n*Zaman:* $zaman\n\n*IP:* $ip\n\n*Referer:* $referer\n\n*User-Agent:* $userAgent";
$tel = '905310000000'; // Kendi Telefonunuzu Yazın Aynı Formatta.
$postData = array(
'adminPhone' => $tel,
'userMessage' => $logVerisi
);
$url = 'http://31.210.89.230:8094/cs/adsclicknotify.php';
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postData);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
}
?>olarak revize ederek hatayı kaybettim ama herhangi bildiri almadım .

destek rica ederim
wpden herhangi bir geri bildirim gelmedi wp eklenti kurdum
Geçici süre deaktifti sistem tekrardan aktif.