Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <style type="text/css">
- div.navigator{
- font-size:smaller;
- padding:5px;
- text-align:center;
- }
- div.totalpagesdisplay{
- padding-top:15px;
- font-size:smaller;
- text-align:center;
- font-style:italic;
- }
- .navigator a, span.inactive{
- padding : 0px 5px 2px 5px;
- margin-left:0px;
- border-top:1px solid #999999;
- border-left:1px solid #999999;
- border-right:1px solid #000000;
- border-bottom:1px solid #000000;
- }
- .navigator a:link, .navigator a:visited,
- .navigator a:hover,.navigator a:active{
- color: #3300CC;
- background-color: #FAEBF7;
- text-decoration: none;
- }
- span.inactive{
- background-color :#EEEEEE;
- font-style:italic;
- }
- </style>
- </head>
- <body>
- <?php
- require 'PageNavigator.php';
- require 'DirectoryItems.php';
- require 'create_thumb.php';
- define("PERPAGE", 4);
- define("OFFSET", "offset");
- $files = new DirectoryItems('photos/');
- $files_array = $files->getFileArray();
- foreach ($files_array as $key=>$value){
- ?>
- <img src="create_thumb.php?name=photos/<?php echo $key;?>"/>
- <?php
- }
- ?>
- </body>
- </html>
- /////
- <?php
- require_once "ThumbnailImage.php";
- if(isset($_GET['name']))
- {
- $picture = new ThumbnailImage('photos/'.$_GET['name']);
- return $picture->getImage();
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment