- Timestamp:
- Dec 25, 2018, 1:51:34 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Meet.php
r18 r19 8 8 include_once('Import/Amblar.php'); 9 9 include_once('Import/MajkluvSvet.php'); 10 include_once('Import/Csts.php'); 10 11 11 12 abstract class Gender … … 156 157 $Text = strtolower($Text); 157 158 $Result = GetNumberBeforeText($Text, 'let'); 159 if ($Result == '') $Result = GetNumberBeforeText($Text, 'rokov'); 160 if ($Result == '') $Result = GetNumberBeforeText($Text, 'letou'); 158 161 if ($Result == '') $Result = GetNumberAfterText($Text, 'je mi'); 159 162 if ($Result == '') $Result = GetNumberAfterText($Text, 'jsem'); 160 163 if ($Result == '') $Result = GetNumberAfterText($Text, 'čerstvých'); 161 164 if ($Result == '') $Result = GetAgeHeightWeightFromText($Text)[0]; 165 if ($Result == '') $Result = date('Y', time()) - GetNumberAfterText($Text, 'ročník'); 162 166 return $Result; 163 167 } … … 217 221 218 222 $Locations = array( 219 'Praha' => 'Praha', 220 'Prahy' => 'Praha', 221 'Praze' => 'Praha', 222 'Ostrava' => 'Ostrava', 223 'Ostravě' => 'Ostrava', 224 'Ostravy' => 'Ostrava', 225 'Mladé Boleslavi' => 'Mladá Boleslav', 223 'praha' => 'Praha', 224 'prahy' => 'Praha', 225 'praze' => 'Praha', 226 'brno' => 'Brno', 227 'brně' => 'Brno', 228 'ostrava' => 'Ostrava', 229 'ostravě' => 'Ostrava', 230 'ostravy' => 'Ostrava', 231 'olomouc' => 'Olomouc', 232 'liberec' => 'Liberec', 233 'opava' => 'Opava', 234 'opave' => 'Opava', 235 'plzeň' => 'Plzeň', 236 'plzni' => 'Plzeň', 237 'vyškov' => 'Vyškov', 238 'mladá boleslav' => 'Mladá Boleslav', 239 'mladé boleslavi' => 'Mladá Boleslav', 240 'litoměřice' => 'Litoměřice', 241 'sokolov' => 'Sokolov', 242 'mikulov' => 'Mikulov', 226 243 ); 227 244 … … 229 246 { 230 247 global $Locations; 248 249 $Text = strtolower($Text); 231 250 232 251 foreach ($Locations as $Index => $Location) … … 256 275 else if ($Method == 'amblar') $Source = new MeetSourceAmblar(); 257 276 else if ($Method == 'majkluvsvet') $Source = new MeetSourceMajkluvSvet(); 277 else if ($Method == 'csts') $Source = new MeetSourceCsts(); 258 278 else { 259 279 echo('Unsupported parse method: '.$Method.'<br/>'); -
trunk/index.php
r15 r19 273 273 $Output .= $PageList['Output']; 274 274 $Output .= '</div>'; 275 $Output .= '<a href="'.$this->Link('/seznamka-rss/').'"><img src="'.$this->Link('/images/rss20.png').'" alt="rss20"/></a><br/>'; 275 if (array_key_exists('lvm', $_GET) and ($_GET['lvm'] == 'seznam')) 276 { 277 } 278 else 279 { 280 $Output .= '<a href="'.$this->Link('/seznamka-rss/').'"><img src="'.$this->Link('/images/rss20.png').'" alt="rss20"/></a><br/>'; 281 } 276 282 277 283 return($Output);
Note:
See TracChangeset
for help on using the changeset viewer.