- Timestamp:
- Dec 27, 2018, 3:47:30 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Import/AstraPraha.php
r11 r26 29 29 if ($MeetItem->Gender == 'Hledám partnerku') $MeetItem->Gender = Gender::Male; 30 30 else $MeetItem->Gender = Gender::Female; 31 $MeetItem->Message = trim( GetTextBetween($Item, '<p class=\'last-element\'>', '</p>'));31 $MeetItem->Message = trim(strip_tags(GetTextBetween($Item, '<p class=\'last-element\'>', '</p>'))); 32 32 $MeetItem->Email = trim(GetTextBetween($Item, 'class="nowrap text-link">', '</a>')); 33 33 $MeetItem->Name = ''; -
trunk/Import/Csts.php
r24 r26 34 34 $MeetItem->Message = trim(html_entity_decode(strip_tags(GetTextBetween($Item, '<td colspan="3">', '</td>')))); 35 35 // Replace unicode non-breakable space by normal space 36 $MeetItem->Message = str_replace("\xc2\xa0", "\x20", $MeetItem->Message); 37 $MeetItem->Age = GetAgeFromText($MeetItem->Message); 36 $MeetItem->Message = str_replace("\xc2\xa0", "\x20", $MeetItem->Message); 37 $MeetItem->Age = GetAgeFromText($MeetItem->Message); 38 38 $MeetItem->Height = GetHeightFromText($MeetItem->Message); 39 39 $MeetItem->Weight = GetWeightFromText($MeetItem->Message); -
trunk/Meet.php
r25 r26 129 129 $Start++; 130 130 $Result = trim(substr($Result, $Start, $Pos - $Start)); 131 break;131 if (is_numeric($Result)) break; 132 132 } else break; 133 133 } … … 165 165 { 166 166 $Text = strtolower($Text); 167 $Result = GetNumberBeforeText($Text, 'let'); 167 $Result = GetNumberAfterText($Text, 'je mi'); 168 if ($Result == '') $Result = GetNumberAfterText($Text, 'jsem'); 168 169 if ($Result == '') $Result = GetNumberBeforeText($Text, 'rokov'); 169 170 if ($Result == '') $Result = GetNumberBeforeText($Text, 'letou'); 170 if ($Result == '') $Result = GetNumberAfterText($Text, 'je mi'); 171 if ($Result == '') $Result = GetNumberAfterText($Text, 'jsem'); 171 if ($Result == '') $Result = GetNumberBeforeText($Text, 'let'); 172 172 if ($Result == '') $Result = GetNumberAfterText($Text, 'čerstvých'); 173 173 if ($Result == '') $Result = GetAgeHeightWeightFromText($Text)[0]; … … 181 181 function GetHeightFromText($Text) 182 182 { 183 $Text = strtolower($Text); 184 $Result = GetNumberBeforeText($Text, 'cm'); 185 if ($Result == '') $Result = GetNumberAfterText($Text, 'měřím'); 183 $Text = strtolower($Text); 184 $Result = GetNumberAfterText($Text, 'měřím'); 186 185 if ($Result == '') $Result = GetNumberAfterText($Text, 'merim'); 186 if ($Result == '') $Result = GetNumberBeforeText($Text, 'cm'); 187 187 if ($Result == '') $Result = GetNumberBeforeText($Text, 'bez podpatků'); 188 188 if ($Result == '') $Result = GetAgeHeightWeightFromText($Text)[1]; -
trunk/index.php
r22 r26 377 377 $this->Database->Prefix = $this->Config['Database']['Prefix']; 378 378 $this->Database->charset($this->Config['Database']['Charset']); 379 $this->Database->ShowSQLError = false; 380 $this->Database->ShowSQLQuery = false; 379 381 $this->PathItems = $this->ProcessURL(); 380 382
Note:
See TracChangeset
for help on using the changeset viewer.