Changeset 55 for trunk/Modules/Meet
- Timestamp:
- Apr 7, 2020, 12:55:39 AM (5 years ago)
- Location:
- trunk/Modules/Meet
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Meet/Meet.php
r47 r55 34 34 function HumanDateTimeToTime($DateTime) 35 35 { 36 if ($DateTime == '') return(NULL);36 if ($DateTime == '') return NULL; 37 37 $DateTime = str_replace('. ', '.', $DateTime); 38 38 $Parts = explode(' ', $DateTime); … … 44 44 } else $TimeParts = array(0, 0, 0); 45 45 $Result = mktime($TimeParts[0], $TimeParts[1], $TimeParts[2], $DateParts[1], $DateParts[0], $DateParts[2]); 46 return ($Result);46 return $Result; 47 47 } 48 48 49 49 function HumanDateToTime($Date) 50 50 { 51 if ($Date == '') return(NULL);52 return (HumanDateTimeToTime($Date.' 0:0:0'));51 if ($Date == '') return NULL; 52 return HumanDateTimeToTime($Date.' 0:0:0'); 53 53 } 54 54 … … 60 60 $ret = html_entity_decode($str, ENT_COMPAT, 'UTF-8'); 61 61 $p2 = 0; 62 for (;;)62 for (;;) 63 63 { 64 64 $p = strpos($ret, $prefix, $p2); … … 105 105 function is_alpha($Char) 106 106 { 107 return (( ($Char >= 'a') and ($Char <= 'z')) or (($Char >= 'A') and ($Char <= 'Z')));107 return (($Char >= 'a') and ($Char <= 'z')) or (($Char >= 'A') and ($Char <= 'Z')); 108 108 } 109 109 … … 116 116 { 117 117 $Result = ''; 118 for (;;)118 for (;;) 119 119 { 120 120 $Pos = strpos($Text, $Needle); … … 142 142 { 143 143 $Result = ''; 144 for (;;)144 for (;;) 145 145 { 146 146 $Pos = strpos($Text, $Needle); … … 432 432 $Result = 1; 433 433 } else $Result = 0; 434 return ($Result);435 } 436 } 434 return $Result; 435 } 436 } -
trunk/Modules/Meet/MeetPage.php
r49 r55 84 84 '(SELECT MeetSource.URL FROM MeetSource WHERE MeetSource.Id = MeetItem.Source) AS SourceURL FROM MeetItem) AS T WHERE (T.Hidden=0) AND '. 85 85 $Where.$Order['SQL'].$PageList['SQLLimit']); 86 while ($MeetItem = $DbResult->fetch_assoc())86 while ($MeetItem = $DbResult->fetch_assoc()) 87 87 { 88 88 $Output .= '<tr>'. … … 109 109 $Output .= '<div><a href="'.$this->System->Link('/seznamka/rss/').'"><img src="'.$this->System->Link('/images/rss20.png').'" alt="rss20"/></a></div>'; 110 110 } 111 return ($Output);111 return $Output; 112 112 } 113 113 } … … 145 145 $this->Title = 'Inzerát - Seznamka - '.$this->Title; 146 146 $Output = ''; 147 if (count($this->System->PathItems) > 2)147 if (count($this->System->PathItems) > 2) 148 148 { 149 149 $id = $this->System->PathItems[2] * 1; … … 211 211 $DbResult = $this->Database->select('MeetItem', '*, (SELECT MeetSource.Name FROM MeetSource WHERE MeetSource.Id = MeetItem.Source) AS SourceName, '. 212 212 '(SELECT MeetSource.URL FROM MeetSource WHERE MeetSource.Id = MeetItem.Source) AS SourceURL', '`Hidden`=0 ORDER BY `Time` DESC LIMIT 30'); 213 while ($MeetItem = $DbResult->fetch_assoc())213 while ($MeetItem = $DbResult->fetch_assoc()) 214 214 { 215 215 $Title = $MeetItem['Name'];
Note:
See TracChangeset
for help on using the changeset viewer.