AddCompareTime = false; $this->AddCompareRemoteId = true; $Content = file_get_contents($this->URL); $BlockStart = '
'; $BlockEnd = ''; $Content = GetTextBetween($Content, $BlockStart, $BlockEnd); if ($Content == '') { $Output .= 'Main block not isolated.
'; return $Output; } $ItemStart = '
'; $ItemEnd = "
"; while (strpos($Content, $ItemStart) !== false) { $Item = GetTextBetween($Content, $ItemStart, $ItemEnd); $MeetItem = new MeetItem(); $MeetItem->Link = 'https://latropical.cz'.trim(GetTextBetween($Item, 'Title = trim(GetTextBetween($Item, '>', '<')); $Date = substr(trim(strip_tags(GetTextBetween($Item, '

', '

'))), -10); $MeetItem->Time = HumanDateToTime($Date); $MeetItem->Message = $MeetItem->Title."\n".trim(html_entity_decode(strip_tags(GetTextBetween($Item, "
", "
")))); $MeetItem->Age = GetAgeFromText($MeetItem->Message); $MeetItem->Height = GetHeightFromText($MeetItem->Message); $MeetItem->Weight = GetWeightFromText($MeetItem->Message); $MeetItem->Name = GetNameFromText($MeetItem->Message); if ($MeetItem->Name != '') $MeetItem->Gender = GetGenderFromName($MeetItem->Name); $MeetItem->Email = GetEmailFromText($MeetItem->Message); $MeetItem->Location = GetLocationFromText($MeetItem->Message); $MeetItem->Database = $this->Database; $MeetItem->Source = $this->Id; $this->MeetItems[] = $MeetItem; } return $Output; } }