Changeset 65 for trunk/Modules/Meet/Import/Seznamka.php
- Timestamp:
- Apr 19, 2022, 10:25:41 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Meet/Import/Seznamka.php
r63 r65 25 25 $MeetItem = new MeetItem(); 26 26 //$MeetItem->Image = trim(GetTextBetween($Item, '<div', '</div>')); 27 $ MeetItem->Gender = trim(GetTextBetween($Item, "<span class=\"ipoh ", "\""));28 if ($ MeetItem->Gender == 'zena') $MeetItem->Gender = Gender::Female;29 else if ($ MeetItem->Gender == 'muz') $MeetItem->Gender = Gender::Male;30 else $ MeetItem->Gender = Gender::Undefined;27 $Gender = trim(GetTextBetween($Item, "<span class=\"ipoh ", "\"")); 28 if ($Gender == 'zena') $MeetItem->Gender = Gender::Female; 29 else if ($Gender == 'muz') $MeetItem->Gender = Gender::Male; 30 else $Gender = Gender::Undefined; 31 31 $MeetItem->Name = trim(GetTextBetween($Item, '>', '</span>')); 32 32 $MeetItem->Name = trim(strip_tags($MeetItem->Name)); … … 35 35 $MeetItem->Age = trim(str_replace('let', '', $MeetItem->Age)); 36 36 $MeetItem->Location = trim(strip_tags(GetTextBetween($Item, '<span class=\'imesto\'>', '</span>'))); 37 $ MeetItem->Time = trim(html_entity_decode(str_replace(' ', '', GetTextBetween($Item, 'TOP</a>', '</span>'))));38 if ($ MeetItem->Time == 'Včera') $MeetItem->Time = HumanDate(time() - 60*60*24);39 else if ($ MeetItem->Time == 'Dnes') $MeetItem->Time = HumanDate(time());40 $MeetItem->Time = HumanDateToTime($ MeetItem->Time);37 $Time = trim(html_entity_decode(str_replace(' ', '', GetTextBetween($Item, 'TOP</a>', '</span>')))); 38 if ($Time == 'Včera') $Time = HumanDate(time() - 60*60*24); 39 else if ($Time == 'Dnes') $Time = HumanDate(time()); 40 $MeetItem->Time = HumanDateToTime($Time); 41 41 $MeetItem->Message = trim(strip_tags(GetTextBetween($Item, '<p>', '</p>'))); 42 42 $MeetItem->Link = GetTextBetween($Item, "<a href='", "'");
Note:
See TracChangeset
for help on using the changeset viewer.