function display_advertisement($name, $html, $width, $height){ $content = ''; if($name === 'FixedBottomLeft'){ $html = str_replace(array("'", "\r", "\n", "/"), array("\'", "", "", "\\/"), $html); $content .= "\n"; }elseif($name === 'FixedBottomRight'){ $html = str_replace(array("'", "\r", "\n", "/"), array("\'", "", "", "\\/"), $html); $content .= "\n"; }elseif($name === 'CoupletAdLeft'){ $html = str_replace(array("'", "\r", "\n", "/"), array("\'", "", "", "\\/"), $html); $content .= "\n"; }elseif($name === 'CoupletAdRight'){ $html = str_replace(array("'", "\r", "\n", "/"), array("\'", "", "", "\\/"), $html); $content .= "\n"; }else{ $content .= $html; } return $content; }