$CACHETIME= 60*60*24; $url1 = $_SERVER['HTTP_HOST'].''.$_SERVER['REQUEST_URI']; $cacheurl=str_ireplace(array('/','?','=','$',"'"),'-',$url1); $agent = $_SERVER['HTTP_USER_AGENT']; $ip=$_SERVER["HTTP_CF_CONNECTING_IP"]; include'bot.php'; $current_time = date("H:i"); if($botcheck){ $CACHESOURCE='cache/bot/'.$cacheurl.'.html'; }else if(empty($agent) or strstr(strtolower($agent), "baidu") or strstr(strtolower($agent), "bing") or strstr(strtolower($agent), "microsoft") or strstr(strtolower($agent), "yahoo") or strstr(strtolower($agent), "search") or strstr(strtolower($agent), "image") or strstr(strtolower($agent), "video") or strstr(strtolower($agent), "news") or strstr(strtolower($agent), "bot") or strstr(strtolower($agent), "ads") or strstr(strtolower($agent), "spider") or strstr(strtolower($agent), "tool")) { $CACHESOURCE='cache/bot/'.$cacheurl.'.html'; }else if(strstr(strtolower($agent), "mobile")) { $CACHESOURCE='cache/server/'.$cacheurl.'-'.$current_time.'.html'; }else{ $CACHESOURCE='cache/server/'.$cacheurl.'-'.$current_time.'.html'; } $CHECKLOAD=time() - $CACHETIME; if(file_exists($CACHESOURCE) AND ($CHECKLOAD < filemtime($CACHESOURCE))){ include($CACHESOURCE); die(); } else { ob_start(); include'connect.php'; $pageurl = 'https://'.$_SERVER['HTTP_HOST'].''.$_SERVER['REQUEST_URI']; $id=$_GET['c']; $sql = $conn->query("SELECT * FROM `movies_links` WHERE `url`='$id'"); $files=$sql->num_rows; $rerow=$sql->fetch_assoc(); $homepage = 'https://'.$_SERVER['HTTP_HOST']; $pageurl = 'https://'.$_SERVER['HTTP_HOST'].''.$_SERVER['REQUEST_URI']; if($files =='0' or $rerow['check'] =='no'){ include'404.php'; die(); } $name=$_GET['c']; $name=ucwords(str_ireplace('-',' ',$name)); $title=trim($name).' Free Download Mp4Moviez Filmywap FilmyHit Mp4 movies filmyfly filmy4wap'; $description=''.trim($name).' Download, '.$rerow['name'].' '.$cat1.' Download, '.$rerow['name'].' '.$cat2.' Free Download, '.$rerow['name'].' download mp4moviez filmywap filmyhit Mp4 movies filmyfly filmy4wap filmywap download 300MB 480p HD 720p From filmywap.Com'; $description = preg_replace('/\s+/', ' ',$description); $description = ucwords($description); include'head.php'; $minutes=trim($rerow['duration']); if ( ! preg_match('/^-?\d+$/', $minutes) ) { $d='N/A'; }else{ $minutes=$minutes+3; $d = floor($minutes / 60).' Hrs '.($minutes - floor($minutes / 60) * 60).' Mins'; } $string = $rerow['name']; preg_match_all('!\d+!', $string, $matches); $lastNumber = end($matches[0]); if ( ! preg_match('/^-?\d+$/', $lastNumber) ) { $year='N/A'; }else{ $year=$lastNumber; } ?> $file_name=$rerow['file_name']; $name = preg_replace('/\s+/', ' ',$file_name); $name=trim($name); $name = str_replace(' ', '_', $name); $name=trim($name); ?>