Changeset 53
- Timestamp:
- Jan 12, 2020, 3:48:17 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Meet/Import/Seznamka.php
r37 r53 7 7 $Output = parent::Import(); 8 8 $Content = file_get_contents($this->URL); 9 $Content = str_replace("(adsbygoogle = window.adsbygoogle || []).push({});", "", $Content); 9 10 $BlockStart = '<h1>Tanec ... : Seznamka</h1>'; 10 11 $BlockEnd = '<h2>Doporučujeme</h2>'; 11 //echo($Content);12 12 $Content = GetTextBetween($Content, $BlockStart, $BlockEnd); 13 13 if ($Content == '') … … 28 28 if ($MeetItem->Gender == 'zena') $MeetItem->Gender = Gender::Female; 29 29 else if ($MeetItem->Gender == 'muz') $MeetItem->Gender = Gender::Male; 30 else $MeetItem->Gender = Gender::Undefined; 30 else $MeetItem->Gender = Gender::Undefined; 31 31 $MeetItem->Name = trim(GetTextBetween($Item, '>', '</span>')); 32 32 $MeetItem->Name = trim(strip_tags($MeetItem->Name)); … … 37 37 $MeetItem->Time = trim(GetTextBetween($Item, 'TOP</a> ', '</span>')); 38 38 if ($MeetItem->Time == 'Včera') $MeetItem->Time = HumanDate(time() - 60*60*24); 39 else if ($MeetItem->Time == 'Dnes') $MeetItem->Time = HumanDate(time()); 39 else if ($MeetItem->Time == 'Dnes') $MeetItem->Time = HumanDate(time()); 40 40 $MeetItem->Time = HumanDateToTime($MeetItem->Time); 41 41 $MeetItem->Message = trim(strip_tags(GetTextBetween($Item, '<p>', '</p>')));
Note:
See TracChangeset
for help on using the changeset viewer.