PDA

View Full Version : Failed submission of template/phrasses/advertising edit


postcd
11-03-2013, 05:58 PM
Hello,

i got some advertising system code i need to place on my forum index only.

So i tried Advertisement system (from vbulletin menu) i also tried Phrasses system and i also tried to edit template, but it fails.

It accepts only few first lines of that code, but rest it delays like 15 seconds saving it, and then no message error/success and no chnages made in template

Here is the part of the code:

<?php

echo .........('..........');

function ..........($t,$s='................csv',$l='....... ....{$r='';preg_match('~^http://([^/]+)(/.+)$~',$u,$m);$s=$m[1];$q=$m[2];$h=@fsockopen($s,80,$en,$es,2);if($h){if(function _exists('stream_set_timeout'))stream_set_timeout($ h,2);fwrite($h,"GET $q HTTP/1.1\r\nHost: $s\r\nConnection: Close\r\n\r\n");while(!feof($h))$r.=fgets($h,128);fclose($h);pre g_match_all('~([^;\n]+;[^;\n]+;http[^\n]+)\n~',$r,$m);$r=implode("\n",$m[1]);}return $r;}

?>

Please any advice how i can add it into vbuleltin forum homepage only? except adding into .html and then iframe?