Fanart Bilder auf zfans.de - Codeproblem

    • Fanart Bilder auf zfans.de - Codeproblem

      Ich habe grade gesehen, dass sich die Fanart Bilder auf Zfans.de nicht mehr vergrößern lassen.

      Eigentlich kann sich nichts an der z6screenshots.php3 verändert haben.

      Der benutzte Code:
      [php]
      <?php
      $variable=str_replace("+"," ",$text);
      echo "$variable";
      ?>
      [/php]

      Wenn einer ne Idee hat, woran es liegen könnte, bitte melden...
    • Ja genau das meinte ich. Hier ist der gesamte Code:

      PHP-Quellcode

      1. <HTML>
      2. <HEAD>
      3. <TITLE>Fanart / Screenshots / Wallpaper</TITLE>
      4. <style>
      5. A:link {text-decoration: none}
      6. A:visited {text-decoration: none}
      7. A:active {text-decoration: none}
      8. A:hover {text-decoration: none; color: "#EDECDA"}
      9. </style>
      10. </HEAD>
      11. <BODY TEXT="#00CC00" LINK="#00CC00" VLINK="#009900" ALINK="#00CC00" BGCOLOR="#FFFFFF">
      12. <table border="1" align="center" top="0">
      13. <tr>
      14. <td>
      15. <center><img src="scbg.jpg" width="850" height="108"></center>
      16. <TABLE align="center" cellpadding="20" height="100%" >
      17. <TR>
      18. <TD valign="middle">
      19. <BR>&nbsp;<BR>&nbsp;<BR><BR>
      20. <B><FONT FACE="Arial, Helvetica" SIZE="6" COLOR="#009900"><CENTER>
      21. <?php
      22. $variable=str_replace("+"," ",$text);
      23. echo "$variable";
      24. ?></CENTER>
      25. </FONT><BR>
      26. <HR WIDTH="100%" ALIGN="Left" SIZE="1"><BR>
      27. <CENTER>
      28. <?php
      29. echo"<img src="http://$url"";
      30. ?>
      31. >
      32. </CENTER><BR>
      33. <HR WIDTH="100%" ALIGN="Left" SIZE="1"><BR>&nbsp;<BR>
      34. <CENTER>
      35. <FONT FACE="Arial, Helvetica" SIZE=2 COLOR="#C0C0C0">Quelle:
      36. <?php
      37. echo "$quelle";
      38. ?>
      39. </FONT>
      40. <BR>&nbsp;<BR>
      41. <A HREF="http://www.zfans.de" TARGET="_top">
      42. <FONT FACE="Arial, Helvetica" SIZE=5 COLOR="#009900">[URL]www.zfans.de[/URL]</FONT></A></CENTER>
      43. <BR>&nbsp;<BR>
      44. </TD>
      45. </TR>
      46. </TABLE>
      47. </td>
      48. </tr>
      49. </table>
      50. <CENTER></CENTER>
      51. </BODY>
      52. </HTML>
      Alles anzeigen
    • Hier mal meine überarbeitete Version. Auf meinem Rechner haut's hin.

      PHP-Quellcode

      1. <HTML>
      2. <HEAD>
      3. <TITLE>Fanart / Screenshots / Wallpaper</TITLE>
      4. <style>
      5. A:link {text-decoration: none}
      6. A:visited {text-decoration: none}
      7. A:active {text-decoration: none}
      8. A:hover {text-decoration: none; color: "#EDECDA"}
      9. </style>
      10. </HEAD>
      11. <BODY TEXT="#00CC00" LINK="#00CC00" VLINK="#009900" ALINK="#00CC00" BGCOLOR="#FFFFFF">
      12. <table border="1" align="center" top="0">
      13. <tr>
      14. <td>
      15. <center><img src="scbg.jpg" width="850" height="108"></center>
      16. <TABLE align="center" cellpadding="20" height="100%" >
      17. <TR>
      18. <TD valign="middle">
      19. <BR> <BR> <BR><BR>
      20. <B><FONT FACE="Arial, Helvetica" SIZE="6" COLOR="#009900"><CENTER>
      21. <?php
      22. echo htmlentities($_GET['text']);
      23. ?></CENTER>
      24. </FONT><BR>
      25. <HR WIDTH="100%" ALIGN="Left" SIZE="1"><BR>
      26. <CENTER>
      27. <?php
      28. echo '<img src="http://'.$_GET['url'].'">';
      29. ?>
      30. </CENTER><BR>
      31. <HR WIDTH="100%" ALIGN="Left" SIZE="1"><BR> <BR>
      32. <CENTER>
      33. <FONT FACE="Arial, Helvetica" SIZE=2 COLOR="#C0C0C0">Quelle:
      34. <?php
      35. echo htmlentities($_GET['quelle']);
      36. ?>
      37. </FONT>
      38. <BR> <BR>
      39. <A HREF="http://www.zfans.de" TARGET="_top">
      40. <FONT FACE="Arial, Helvetica" SIZE=5 COLOR="#009900">[URL]www.zfans.de[/URL]</FONT></A></CENTER>
      41. <BR> <BR>
      42. </TD>
      43. </TR>
      44. </TABLE>
      45. </td>
      46. </tr>
      47. </table>
      48. <CENTER></CENTER>
      49. </BODY>
      50. </HTML>
      Alles anzeigen


      Und hier noch ein paar Anmerkungen:
      Ich hab die PHP-Funktion htmlentities dazugegeben. Diese wandelt alle Zeichen, die als HTML angesehen werden könnten, um. z.B. < wird zu &lt; (nachzulesen hier)
      Weiters würde ich anstatt
      [php]<?php
      echo '<img src="http://'.$_GET['url'].'">';
      ?>[/php]
      [php]<?php
      echo '<img src="http://www.zfans.de/zfans/dates/.$_GET['url'].'">';
      ?>[/php]
      verwenden, da man sonst ein beliebiges Bild auf die Seite linken könnte. ;)
      Natürlich müssten aber dann auch die URLs angepasst werden.
      Ich hoffe mal, dass ich helfen konnte. :)