kepas

Untitled

Mar 10th, 2019
459
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.36 KB | None | 0 0
  1.  
  2. <html>
  3. <head>
  4. <style type="text/css">
  5.         div.navigator{
  6.             font-size:smaller;
  7.             padding:5px;
  8.             text-align:center;
  9.         }
  10.         div.totalpagesdisplay{
  11.             padding-top:15px;
  12.             font-size:smaller;
  13.             text-align:center;
  14.             font-style:italic;
  15.         }
  16.         .navigator a, span.inactive{
  17.             padding : 0px 5px 2px 5px;
  18.             margin-left:0px;
  19.             border-top:1px solid #999999;
  20.             border-left:1px solid #999999;
  21.             border-right:1px solid #000000;
  22.             border-bottom:1px solid #000000;
  23.         }
  24.         .navigator a:link, .navigator a:visited,
  25.             .navigator a:hover,.navigator a:active{
  26.             color: #3300CC;
  27.             background-color: #FAEBF7;
  28.             text-decoration: none;
  29.         }
  30.         span.inactive{
  31.             background-color :#EEEEEE;
  32.             font-style:italic;
  33.         }
  34. </style>
  35. </head>
  36. <body>
  37.  
  38.  
  39.  
  40.  
  41. <?php
  42. require 'PageNavigator.php';
  43. require 'DirectoryItems.php';
  44. require 'create_thumb.php';
  45. define("PERPAGE", 4);
  46. define("OFFSET", "offset");
  47.  
  48.  
  49. $files = new DirectoryItems('photos/');
  50.  
  51. $files_array = $files->getFileArray();
  52.  
  53.  
  54. foreach ($files_array  as $key=>$value){
  55.  
  56.  ?>
  57.  
  58.                 <img src="create_thumb.php?name=photos/<?php echo $key;?>"/>
  59.  
  60. <?php
  61.  
  62.     }
  63. ?>
  64.  
  65. </body>
  66. </html>
  67.  
  68.  
  69. /////
  70.  
  71.  
  72.  
  73.  
  74.  
  75. <?php
  76.  
  77.  
  78. require_once "ThumbnailImage.php";
  79.  
  80.  
  81. if(isset($_GET['name']))
  82. {
  83.     $picture = new ThumbnailImage('photos/'.$_GET['name']);
  84.     return $picture->getImage();
  85. }
  86.  
  87.  
  88. ?>
Advertisement
Add Comment
Please, Sign In to add comment