Changeset 452 for trunk/aktuality/news.php
- Timestamp:
- Oct 28, 2012, 10:20:32 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/aktuality/news.php
r440 r452 22 22 { 23 23 $I = strpos($Content, 'http://'); 24 if(($I > 0) and ($Content{$I - 1} != '"')) 24 if((($I == 0)) or 25 (($I > 0) and ($Content{$I - 1} != '"'))) 25 26 { 26 27 $Result .= substr($Content, 0, $I); 27 28 $Content = substr($Content, $I); 28 if(strpos($Content, ' ') !== false) 29 $URL = substr($Content, 0, strpos($Content, ' ')); 30 else $URL = substr($Content, 0); 31 if(strpos($Content, '<') !== false) 32 $URL = substr($Content, 0, strpos($Content, '<')); 33 else $URL = substr($Content, 0); 29 $URL = $Content; 30 if(strpos($URL, '<') !== false) $URL = substr($URL, 0, strpos($URL, '<')); 31 if(strpos($URL, ' ') !== false) $URL = substr($URL, 0, strpos($URL, ' ')); 34 32 $Result .= '<a href="'.$URL.'">'.$URL.'</a>'; 35 33 $Content = substr($Content, strlen($URL));
Note:
See TracChangeset
for help on using the changeset viewer.