Changeset 54 for trunk


Ignore:
Timestamp:
Feb 1, 2020, 1:57:23 PM (5 years ago)
Author:
chronos
Message:
  • Fixed: Seznamka.cz meet import.
Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Global.php

    r52 r54  
    192192  {
    193193    $Output = '';
    194     foreach ($this->rItems as $Item)
     194    foreach ($this->Items as $Item)
    195195    {
    196196      if (($Item['Type'] == 'String') or ($Item['Type'] == 'Enumeration') or ($Item['Type'] == 'Boolean'))
  • trunk/Modules/Meet/Import/Seznamka.php

    r53 r54  
    3434      $MeetItem->Age = trim(GetTextBetween($Item, '" >', '</a>'));
    3535      $MeetItem->Age = trim(str_replace('let', '', $MeetItem->Age));
    36       $MeetItem->Location = trim(GetTextBetween($Item, '" >', '</a>'));
    37       $MeetItem->Time = trim(GetTextBetween($Item, 'TOP</a> &nbsp;', '</span>'));
     36      $MeetItem->Location = trim(strip_tags(GetTextBetween($Item, '<span class=\'imesto\'>', '</span>')));
     37      $MeetItem->Time = trim(html_entity_decode(str_replace('&nbsp;', '', GetTextBetween($Item, 'TOP</a>', '</span>'))));
    3838      if ($MeetItem->Time == 'Včera') $MeetItem->Time = HumanDate(time() - 60*60*24);
    3939        else if ($MeetItem->Time == 'Dnes') $MeetItem->Time = HumanDate(time());
  • trunk/index.php

    r51 r54  
    4040  function IsAdmin()
    4141  {
    42     return ($_SESSION['IsAdmin'] == 1);
     42    return (array_key_exists('IsAdmin', $_SESSION) and ($_SESSION['IsAdmin'] == 1));
    4343  }
    4444
Note: See TracChangeset for help on using the changeset viewer.