$ip=$_SERVER["HTTP_CF_CONNECTING_IP"];
$CACHETIME= 60*60*24;
$url1 = $_SERVER['HTTP_HOST'].''.$_SERVER['REQUEST_URI'];
$cacheurl=str_ireplace(array('/','?','=','$',"'"),'-',$url1);
$agent = $_SERVER["HTTP_USER_AGENT"];
if(strstr(strtolower($ip), ":"))
{
$words = explode(':', $ip); // Split the string into an array of words
$first_two_words = implode(':', array_slice($words, 0, 2));
}else{
$words = explode('.', $ip); // Split the string into an array of words
$first_two_words = implode('.', array_slice($words, 0, 2));
}
//echo $first_two_words;
$file = 'data.txt';
$data = file_get_contents($file);
// Split the contents into an array based on new line character
$dataArray = explode("\n", $data);
// Define the pattern to match. For example, let's say we want to find lines containing "keyword"
$keyword = $first_two_words;
// Array to store matched lines
$matchedLines = array();
// Loop through each line in the data array
foreach ($dataArray as $line) {
// If the line contains the keyword, add it to the matchedLines array
if (strpos($line, $keyword) !== false) {
$matchedLines[] = $line;
}
}
foreach ($matchedLines as $matchedLine) {
$jazz='yes';
}
if($jazz){
$botcheck='yes';
}else{
$botcheck='';
}
?>
Warning: Undefined array key "name" in /var/www/afilmywapi.in/file1.php on line 75
Warning: Undefined array key "name" in /var/www/afilmywapi.in/file1.php on line 76
Warning: Undefined array key "name" in /var/www/afilmywapi.in/file1.php on line 77