Advertisement
Guest User

curl_image.tcl php

a guest
Jun 16th, 2012
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.26 KB | None | 0 0
  1.  
  2. // for use with http://forum.egghelp.org/viewtopic.php?t=19009
  3.  
  4. <?php
  5. $a=file("dupes.db");
  6. $i=0;
  7. foreach ($a as $inf) {
  8. $return[]='<a title="Click To Enlarge" target="_blank" href="'.trim(htmlspecialchars($inf)).'"><img border="0" width="150" height="150" src="'.trim(htmlspecialchars($inf)).'" alt="'.trim(htmlspecialchars($inf)).'" /></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
  9. if ($i>0 && $i%4 == 0)
  10. $return[]= "<br /><br />";
  11. $i++;
  12. }
  13.  
  14. $return = array_reverse($return);
  15.  
  16. print '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN"
  17. "http://www.w3.org/TR/html4/strict.dtd">
  18. <html>
  19. <head>
  20. <title>insert title here</title>
  21. </head>
  22. <style type=text/css>
  23. body, html {
  24. height:90%;
  25. background: #2D2D2D;
  26. font: 12px Verdana;
  27. color: black;
  28. }
  29. a:link {
  30.    text-decoration:none;
  31.    color: grey;
  32. }
  33. a:visited {
  34.    text-decoration:none;
  35.    color: grey;
  36. }
  37. a:hover {
  38.    text-decoration:none;
  39.    color: grey;
  40. }
  41. a:active {
  42.    text-decoration:none;
  43.    color: grey;
  44. }
  45. </style>
  46. <body>
  47. <center>
  48. <h2>Your page header</h2>
  49. <br />
  50. ';
  51. foreach ($return as $image) {
  52. print $image;
  53. }
  54. print '
  55. <br />
  56. <br />
  57. <a title="your titlel" href="http://yoursite.com">your footer here</a>
  58. </center>
  59. <br />
  60. <br />
  61. </body>
  62. </html>
  63. ';
  64.  
  65. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement