right
other domains
Quote:
to prevent hotlinking to unauthorized domains im trying to limit the img tag to only a couple
mysite.com and somefreeimagesite.com
|
so if they type some other domain functions_bbcodeparse.php
will jumble things up
i think i see where to do it but any help would be appreciated
its a bit below $bbcode = preg_replace that it actually starts outputting whats shown in the post
btw, i got the first part working by just duplicating that line with the 2nd domain
so i now have 2 $bbcode = preg_replace..... lines one above the other and it works but ????
i was reading for a day trying things and it said the | character is like a either or but when i tried the regex on the single line it did not work
domain1|domain2...rest of line
so now i have to lines with the only diff being domain 1 and domain 2
but its still will allow anything that starts with
http://img
would rather it match the
http://img (somthing here) .cx