Need help to fix this script? Phpbb, kinda confused:P

Discussion in 'PHP' started by Brae, Aug 11, 2008.

  1. #1
    as seen on my website:

    http://www.pengushare.info/viewtopic.php?f=2&t=2

    I've posted a few links, using this new script I've been trying out.

    Now what has happened, when the links are posted it goes:

    http://www.pengushare.info/<font color=

    http://rapidshare.com/files/134066111/ds.part01.rar">http://rapidshare.com/files/134066111/ds.part01.rar

    			'<img src="http://www.pengushare.info/images/117vk1e.png"> <font color="green"><span title="Link is valid as of ' . ceil($ages[$id] / 60) . ' minutes ago">' . $text . ' </span></font>',
    				$page_content);
    				
    		}
    		
    	}
    	
    	// Replace dead links
    	if (count($dead_links) > 0) {
    
    		foreach ($dead_links as $id) {
    			
    			// Determine which text to use
    			if (isset($GLOBALS['anchor_text'][$id])) {
    				
    				$text = $GLOBALS['anchor_text'][$id];
    				
    			} else {
    				
    				$text = $GLOBALS['links_to_check'][$id];
    				
    			}
    			
    			$page_content = str_replace('testRsComLink{' . $id . '}',
    				'<img src="http://www.pengushare.info/images/24xh1dk.png"><font color="red" STYLE="text-decoration: line-through"><span title="Link is dead">' . $text . '</span></font>',
    				$page_content);
    				
    		}
    	
    Code (markup):
    I think the error may be there, however I can't understand how it is?
     
    Brae, Aug 11, 2008 IP