Thread: Picture wont show in a forum, but only in the page!

Results 1 to 2 of 2
  1. #1 Picture wont show in a forum, but only in the page! 
    Registered Member Chrham_2's Avatar
    Join Date
    Aug 2008
    Posts
    146
    Thanks given
    3
    Thanks received
    0
    Rep Power
    12
    I write:
    [img ]http://212.251.247.82/statuscheck/server_status.php?ip=chrhamscape.no-ip.biz&port=43594[/img]
    but the picture won't show up. Only this appears:

    btw here's the code:
    Code:
    <?php error_reporting (E_ALL ^ E_NOTICE); ?>
    <?php
    $ip = "$_GET[ip]"; //put your ipaddress here
    $port= "$_GET[port]"; //the port number
    $online = '<img src="online.png">'; //This can be text or image
    $offline = '<img src="offline.png">';   //This can be text or image
    if (! $sock = @fsockopen($ip, $port, $num, $error, 5)) //Checks the server's status 
    {
    echo "$offline"; //When server status is offline, output this
    echo "<br><font color=blue>To get this image on forums use this code:<br>";
    echo "</font>";
    }
    else
    {
    echo "$online"; //Else, output this
    echo "<br><font color=blue>To get this image on forums use this code:<br>";
    echo " </font>";
    }
    Reply With Quote  
     

  2. #2  
    Cryptic
    Guest
    you can't use that on any forum that has decent xss protection, as that code INJECTS html into websites

    if you want to embed it into forums then you'll need to use php GD or other graphics functions to make the whole output an image
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •