Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // for use with http://forum.egghelp.org/viewtopic.php?t=19009
- <?php
- $a=file("dupes.db");
- $i=0;
- foreach ($a as $inf) {
- $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> ';
- if ($i>0 && $i%4 == 0)
- $return[]= "<br /><br />";
- $i++;
- }
- $return = array_reverse($return);
- print '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN"
- "http://www.w3.org/TR/html4/strict.dtd">
- <html>
- <head>
- <title>insert title here</title>
- </head>
- <style type=text/css>
- body, html {
- height:90%;
- background: #2D2D2D;
- font: 12px Verdana;
- color: black;
- }
- a:link {
- text-decoration:none;
- color: grey;
- }
- a:visited {
- text-decoration:none;
- color: grey;
- }
- a:hover {
- text-decoration:none;
- color: grey;
- }
- a:active {
- text-decoration:none;
- color: grey;
- }
- </style>
- <body>
- <center>
- <h2>Your page header</h2>
- <br />
- ';
- foreach ($return as $image) {
- print $image;
- }
- print '
- <br />
- <br />
- <a title="your titlel" href="http://yoursite.com">your footer here</a>
- </center>
- <br />
- <br />
- </body>
- </html>
- ';
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement