Changeset 54
- Timestamp:
- Feb 1, 2020, 1:57:23 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Global.php
r52 r54 192 192 { 193 193 $Output = ''; 194 foreach ($this-> rItems as $Item)194 foreach ($this->Items as $Item) 195 195 { 196 196 if (($Item['Type'] == 'String') or ($Item['Type'] == 'Enumeration') or ($Item['Type'] == 'Boolean')) -
trunk/Modules/Meet/Import/Seznamka.php
r53 r54 34 34 $MeetItem->Age = trim(GetTextBetween($Item, '" >', '</a>')); 35 35 $MeetItem->Age = trim(str_replace('let', '', $MeetItem->Age)); 36 $MeetItem->Location = trim( GetTextBetween($Item, '" >', '</a>'));37 $MeetItem->Time = trim( GetTextBetween($Item, 'TOP</a> ', '</span>'));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 38 if ($MeetItem->Time == 'Včera') $MeetItem->Time = HumanDate(time() - 60*60*24); 39 39 else if ($MeetItem->Time == 'Dnes') $MeetItem->Time = HumanDate(time()); -
trunk/index.php
r51 r54 40 40 function IsAdmin() 41 41 { 42 return ( $_SESSION['IsAdmin'] == 1);42 return (array_key_exists('IsAdmin', $_SESSION) and ($_SESSION['IsAdmin'] == 1)); 43 43 } 44 44
Note:
See TracChangeset
for help on using the changeset viewer.