Image index of /blog/2019

Up to parent folder | Jump to files | Script: /var/images/photos/public_html/blog/2019/index.php ( source code )

Icon Name Filesize Timestamp
image 21815954-089D-400D-A9F1-BBA2FBFEB637.jpg (1422x1025) 209.84 KB Wed, 29 May 2019 14:21:51 +0000
image F46B2378-0F68-4CF3-8DA6-C54203C8BEE2.jpg (1280x960) 211.51 KB Thu, 06 Jun 2019 12:53:33 +0000
image IMG_0035.jpg (1869x1456) 494.28 KB Tue, 12 Mar 2019 20:28:11 +0000
image IMG_0080 (1).jpeg (944x610) 130.09 KB Fri, 17 Jan 2020 11:09:42 +0000
image IMG_0172.jpg (1280x962) 156.94 KB Thu, 14 Mar 2019 14:06:45 +0000
image IMG_0279.jpg (1280x960) 175.89 KB Thu, 14 Mar 2019 14:32:43 +0000
image IMG_0283.jpg (1280x960) 231.21 KB Thu, 14 Mar 2019 14:32:43 +0000
image IMG_0288 (1).jpg (1280x962) 186.7 KB Thu, 14 Mar 2019 14:32:42 +0000
image IMG_0288.jpg (1280x962) 186.7 KB Thu, 14 Mar 2019 14:06:47 +0000
image IMG_0308.jpg (960x1280) 195.54 KB Thu, 14 Mar 2019 14:32:43 +0000
image IMG_0321.jpg (960x1280) 276.75 KB Thu, 14 Mar 2019 14:32:42 +0000
image IMG_0412.jpg (1280x960) 213.84 KB Thu, 14 Mar 2019 14:06:49 +0000
image IMG_0422.jpg (1280x960) 236.36 KB Thu, 14 Mar 2019 14:32:42 +0000
image IMG_0517.jpg (1280x960) 174.41 KB Thu, 14 Mar 2019 14:06:46 +0000
image IMG_0526.jpg (1280x960) 103.37 KB Thu, 14 Mar 2019 14:06:46 +0000
image IMG_0558.jpg (1280x960) 100.54 KB Fri, 14 Jun 2019 17:29:05 +0000
image IMG_0561.jpg (960x1280) 225.94 KB Thu, 14 Mar 2019 14:06:48 +0000
image IMG_0578.jpg (1280x960) 281.09 KB Thu, 14 Mar 2019 14:06:45 +0000
image IMG_0595.jpg (1280x962) 225.31 KB Thu, 14 Mar 2019 14:06:46 +0000
image IMG_0597.jpg (1115x1280) 233.37 KB Tue, 28 May 2019 18:07:25 +0000
image IMG_0629.jpg (1280x960) 172.76 KB Thu, 14 Mar 2019 14:06:47 +0000
image IMG_0642.jpeg (1536x2048) 926.2 KB Tue, 28 May 2019 18:17:08 +0000
image IMG_0655.jpg (1280x960) 245.24 KB Thu, 14 Mar 2019 14:06:48 +0000
image IMG_0656.jpg (1280x960) 203.44 KB Thu, 14 Mar 2019 14:46:47 +0000
image IMG_0702.jpg (1280x960) 163.23 KB Sat, 06 Jul 2019 01:28:31 +0000
image IMG_0704.jpg (1280x960) 83.66 KB Sat, 06 Jul 2019 01:28:29 +0000
image IMG_0731.jpg (1280x960) 199.39 KB Thu, 14 Mar 2019 14:06:49 +0000
image IMG_0754.jpg (1280x960) 177.58 KB Thu, 14 Mar 2019 14:06:45 +0000
image IMG_0871.jpg (1280x960) 210.28 KB Thu, 14 Mar 2019 13:56:55 +0000
image IMG_0927.jpg (1280x960) 152.07 KB Fri, 03 May 2019 20:28:25 +0000
image IMG_1100.jpg (1280x960) 155.87 KB Fri, 03 May 2019 20:18:36 +0000
image IMG_1112.jpg (1280x960) 181.14 KB Fri, 14 Jun 2019 17:29:28 +0000
image IMG_1115.jpg (1280x960) 123.96 KB Fri, 14 Jun 2019 17:29:25 +0000
image IMG_1117.jpg (1280x960) 193.47 KB Fri, 14 Jun 2019 17:29:26 +0000
image IMG_1119.jpg (1280x960) 79.72 KB Fri, 14 Jun 2019 17:29:26 +0000
image IMG_1136.jpeg (3088x2320) 1.66 MB Fri, 03 May 2019 20:46:24 +0000
image IMG_1183.jpg (1280x960) 135.96 KB Fri, 14 Jun 2019 17:29:20 +0000
image IMG_1186.jpg (1280x960) 126.69 KB Fri, 14 Jun 2019 17:30:04 +0000
image IMG_1211.jpg (960x1280) 190.4 KB Fri, 14 Jun 2019 17:30:20 +0000
image IMG_1216.jpg (960x1280) 162.83 KB Fri, 14 Jun 2019 17:58:09 +0000
image IMG_1233.jpg (1280x960) 334.47 KB Fri, 14 Jun 2019 17:30:12 +0000
image IMG_1245.jpg (1280x960) 209.93 KB Tue, 07 May 2019 21:14:14 +0000
image IMG_1246.jpg (1280x960) 206.57 KB Tue, 07 May 2019 21:14:18 +0000
image IMG_1251.jpg (1280x960) 152.24 KB Tue, 07 May 2019 21:14:19 +0000
image IMG_1253.jpg (960x1280) 120.12 KB Tue, 07 May 2019 21:14:19 +0000
image IMG_1256.jpg (960x1280) 201.66 KB Tue, 07 May 2019 21:14:19 +0000
image IMG_1257.jpg (1280x960) 135.27 KB Tue, 07 May 2019 22:15:18 +0000
image IMG_1262.jpg (960x1280) 115.12 KB Tue, 07 May 2019 21:14:15 +0000
image IMG_1264.jpg (960x1280) 108.79 KB Tue, 07 May 2019 21:14:15 +0000
image IMG_1265.jpg (960x1280) 209.68 KB Tue, 07 May 2019 21:14:16 +0000
image IMG_1271.jpg (1280x960) 127.07 KB Tue, 07 May 2019 21:14:16 +0000
image IMG_1273.jpg (1280x960) 98.41 KB Tue, 07 May 2019 21:14:16 +0000
image IMG_1275.jpg (1280x960) 126.3 KB Tue, 07 May 2019 21:14:17 +0000
image IMG_1276.jpg (1280x960) 137.21 KB Tue, 07 May 2019 21:14:17 +0000
image IMG_1279.jpg (960x1280) 268.89 KB Tue, 07 May 2019 22:56:40 +0000
image IMG_1282.jpg (1280x960) 287.29 KB Tue, 07 May 2019 21:14:18 +0000
image IMG_1287.jpg (1280x960) 178.93 KB Tue, 07 May 2019 21:44:35 +0000
image IMG_1288.jpg (1280x960) 162.11 KB Tue, 07 May 2019 22:18:28 +0000
image IMG_1289.jpg (1280x960) 104.3 KB Fri, 14 Jun 2019 17:30:00 +0000
image IMG_1293.jpg (1280x960) 147.67 KB Fri, 14 Jun 2019 17:30:06 +0000
image IMG_1303.jpeg (4032x3024) 2.17 MB Tue, 28 May 2019 17:30:34 +0000
image IMG_1303.jpg (1280x960) 167.67 KB Tue, 28 May 2019 17:32:37 +0000
image IMG_1323.jpg (1280x960) 196.54 KB Tue, 28 May 2019 17:36:29 +0000
image IMG_1337.jpg (1280x960) 373.44 KB Tue, 28 May 2019 18:02:06 +0000
image IMG_1352.jpg (960x1280) 408.21 KB Tue, 28 May 2019 18:01:29 +0000
image IMG_1365.jpg (1280x962) 159.19 KB Tue, 28 May 2019 18:12:43 +0000
image IMG_1396.jpg (3961x2971) 902.4 KB Wed, 29 May 2019 13:56:57 +0000
image IMG_1410.jpg (4032x3024) 2.03 MB Wed, 29 May 2019 13:41:05 +0000
image IMG_1422.jpg (3829x2872) 1.29 MB Wed, 29 May 2019 14:14:53 +0000
image IMG_1424.jpeg (4032x3024) 2.15 MB Wed, 29 May 2019 14:14:31 +0000
image IMG_1424.jpg (4032x3024) 1.85 MB Wed, 29 May 2019 14:14:59 +0000
image IMG_1489.jpg (960x1280) 113.77 KB Thu, 06 Jun 2019 12:53:30 +0000
image IMG_1490.jpg (1280x960) 192.98 KB Thu, 06 Jun 2019 12:53:33 +0000
image IMG_1552.jpg (1280x960) 148.3 KB Thu, 06 Jun 2019 13:13:59 +0000
image IMG_1556.jpg (3024x4032) 6.08 MB Thu, 06 Jun 2019 12:53:36 +0000
image IMG_1557.jpg (4032x2614) 1.69 MB Thu, 06 Jun 2019 12:53:34 +0000
image IMG_1745.jpeg (4032x3024) 1012.75 KB Sat, 06 Jul 2019 00:50:42 +0000
image IMG_1745.jpg (1280x960) 85.98 KB Sat, 06 Jul 2019 00:53:33 +0000
image IMG_1761.jpeg (4032x3024) 1.71 MB Sat, 06 Jul 2019 00:51:27 +0000
image IMG_1761.jpg (1280x960) 143.68 KB Sat, 06 Jul 2019 00:53:34 +0000
image IMG_1765.jpeg (4032x3024) 1.53 MB Sat, 06 Jul 2019 00:51:05 +0000
image IMG_1767 (1).jpg (1280x960) 88.35 KB Sat, 06 Jul 2019 01:04:18 +0000
image IMG_1767.jpg (1280x960) 88.35 KB Sat, 06 Jul 2019 00:53:32 +0000
image IMG_1860.jpeg (4032x3024) 2.15 MB Sat, 06 Jul 2019 00:52:07 +0000
image IMG_1860.jpg (1280x960) 177.69 KB Sat, 06 Jul 2019 00:53:34 +0000
image IMG_1861.jpeg (3024x4032) 1.9 MB Sat, 06 Jul 2019 00:51:25 +0000
image IMG_1861.jpg (960x1280) 133.58 KB Sat, 06 Jul 2019 00:53:35 +0000
image IMG_1862.jpeg (3024x4032) 1.38 MB Sat, 06 Jul 2019 00:52:21 +0000
image IMG_1873.jpg (1280x960) 114.95 KB Sat, 06 Jul 2019 01:16:14 +0000
image IMG_1877.jpeg (3024x4032) 1.67 MB Sat, 06 Jul 2019 00:52:41 +0000
image IMG_1877.jpg (960x1280) 156.08 KB Sat, 06 Jul 2019 00:53:35 +0000
image IMG_1993.jpeg (1280x960) 143.95 KB Fri, 17 Jan 2020 11:09:51 +0000
image IMG_2003.jpeg (1280x960) 122.06 KB Fri, 17 Jan 2020 11:09:50 +0000
image IMG_2136.jpeg (1280x960) 189.48 KB Fri, 17 Jan 2020 11:09:52 +0000
image IMG_2144.jpeg (960x1280) 85.65 KB Fri, 17 Jan 2020 11:09:49 +0000
image IMG_2190.jpeg (1280x960) 140.45 KB Fri, 17 Jan 2020 11:09:44 +0000
image IMG_2201.jpeg (1280x960) 311.11 KB Fri, 17 Jan 2020 11:09:54 +0000
image IMG_2208.jpeg (1280x854) 141.88 KB Fri, 17 Jan 2020 11:09:55 +0000
image IMG_2241.jpeg (1280x854) 234.99 KB Fri, 17 Jan 2020 11:09:59 +0000
image IMG_2284.jpeg (1280x854) 225.8 KB Fri, 17 Jan 2020 11:09:59 +0000
Image Name Filesize Timestamp

Next Page

Up to parent folder


PHP Source:


<?php
// 2002-06-25 17:44 by Chris Snyder  (csnyder@chxo.com)
// 2002-07-28 16:44 added paging ($skip and $perpage)
// 2002-08-16 11:50 updated for REGISTER_GLOBALS turned off
// 2002-08-25 20:11 listing directories first
// 2003-01-06 12:56 alphabetize folders and files, use apache icons, and don't show thumbs over 500k
// 2003-01-09 18:08 skip-to-files link
// 2003-01-22 18:20 fix alt/title tags for filetype icons, add .zip
// 2003-02-14 10:50 add $filepath suggestion on line 78
// 2003-03-15 19:49 urlencode foldernames
//
// find and list images in path (a folder) as thumbnails
// drop in replacement for fancyindexing -> either drop into an image directory as index.php
//              -OR-  point to script in Apache DirectoryIndex directive:
//                    DirectoryIndex index.html index.htm /cgi-bin/image-list.php

/*
image-list.php -- fancy image indexing using PHP
Copyright (C) 2003 by Chris Snyder (csnyder@chxo.com)

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
*/

$thumbwidth=180;
$thumbheight=160;
$thumblimit10000;  // (Max filesize in KB for displaying thumbnail)
$skip$_REQUEST["skip"];
$perpage$_REQUEST["perpage"];
$showsource$_REQUEST["showsource"];
$REQUEST_URIgetenv("REQUEST_URI");
$DOCUMENT_ROOTgetenv("DOCUMENT_ROOT");
$SCRIPT_NAMEgetenv("SCRIPT_NAME");
$SCRIPT_FILENAMEgetenv("SCRIPT_FILENAME");
$SERVER_SIGNATUREgetenv("SERVER_SIGNATURE");

if (
$skip==""$skip0;
if (
$perpage==""$perpage100;

function 
myfilesize($file) {
// First check if the file exists.
if(!is_file($file)) exit("File does not exist!");

// Setup some common file size measurements.
$kb 1024;         // Kilobyte
$mb 1024 $kb;   // Megabyte
$gb 1024 $mb;   // Gigabyte
$tb 1024 $gb;   // Terabyte

// Get the file size in bytes.
$size filesize($file);

if(
$size $kb) return $size." B";
else if(
$size $mb) return round($size/$kb,2)." KB";
else if(
$size $gb) return round($size/$mb,2)." MB";
else if(
$size $tb) return round($size/$gb,2)." GB";
else return 
round($size/$tb,2)." TB";
}

if (
substr($REQUEST_URI,-1)=="/") {
  
$lengthstrlen($REQUEST_URI)-1;
  
$uripathsubstr($REQUEST_URI,0,$length);
} else {
  
$uripathdirname($REQUEST_URI);
}

$filepath$DOCUMENT_ROOT.urldecode($uripath);
// Some users have suggested: 
//$filepath= realpath("."); 
// instead of using $DOCUMENT_ROOT.
//print "filepath= $filepath and realpath=".realpath(".")." and uripath= $uripath ";

$lastslashstrrpos($uripath,"/");
$parenturisubstr($uripath,0,$lastslash+1);
if (
$parenturi==""$parenturi"/";
$displayuripathurldecode($uripath);

// show source code?
if ($showsource$sourceinfo"| Script: $SCRIPT_FILENAME ( <a href='#source'>source code</a> )";
else 
$sourceinfo"| <a href='$SCRIPT_NAME?showsource=1#source'>show source code</a>";

print 
"<html>
<head>
<title>
$displayuripath</title>
<style type='text/css'>
body { font-family: Verdana, Geneva, sans-serif; font-size: 12px; background-color: #ffffee;}
table { font-family: Verdana, Geneva, sans-serif; font-size: 12px; }
.heading { font-size: 12px; font-weight: bold; background-color: #666677; color: #dddddd; border: 1px; border-style: solid; }
.oddrow { background-color: #ffffff; }
.evenrow { background-color: #eeffee; }
</style>
</head>
<body>
<h1>Image index of 
$displayuripath</h1>
<p><a href='
$parenturi'><img src='/icons/back.gif' border=0 hspace=5 align=absmiddle>Up to parent folder</a> | <a href='#files'>Jump to files</a> $sourceinfo</p>";

if (
$skip) {
$prevskip$skip $perpage;
if (
$prevskip<0$prevskip0;
$prevtag"<a href='?skip=$prevskip'>Previous Page</a>";
print 
"<p>$prevtag</p>";
}

if (
$handle opendir($filepath)) {
print 
"
<table cellpadding=5>
<tr class=heading>
<td align=center>Icon</td>
<td>Name</td>
<td align=center>Filesize</td>
<td>Timestamp</td>
</tr>"
;

// FIRST PASS for subdirectories only -- makes $mydirarray, which can be sorted alphabetically
$count0;
while (
$file readdir($handle)) {
if (
substr($file,0,1)==".") continue;
if (
$file=="index.php") continue;
if (@
is_dir("$filepath/$file")) {
$mydirarray[$count]="$file";
$count$count+1;
}
}
closedir($handle);

// now sort and print subfolders...
if (is_array($mydirarray)) {
sort($mydirarray);
reset($mydirarray);
foreach (
$mydirarray AS $key=>$file) {
$timestampfilemtime("$filepath/$file");
$modifieddate("r"$timestamp);
if (
$evenrow) {
$evenrow=0;
$rowclass"evenrow";
}
else {
$evenrow=1;
$rowclass"oddrow";
}
if (
$key==($count-1)) $separator"<a name='files'> </a>";
$safefileurlencode($file);
print 
"
<tr class='
$rowclass'>
<td align=right><img src='/icons/folder.gif' alt=folder title=folder></td>
<td><a href='
$uripath/$safefile/'>$file/</a>$separator</td>
<td align=center>-</td>
<td>
$modified</td>
</tr>"
;
}
}


// SECOND PASS for files only
$handle opendir($filepath);
$skipped0;
$index0;
$count0;
while (
$file readdir($handle)) {
// don't show .dotfiles, self, directories, or links (links are bad??? hmm)
if (substr($file,0,1)==".") continue;
if (
$file=="index.php") continue;
if (@
is_dir("$filepath/$file")) continue;
if (@
is_link("$filepath/$file")) continue;
$myfilearray[$count]= $file;
$count$count+1;
}
closedir($handle);

// now sort on filename
if (is_array($myfilearray)) {
sort($myfilearray);
reset($myfilearray);
foreach (
$myfilearray AS $key=>$file) {
if (
$index >= $perpage) {
$shownext1;
break;
}
if (
$skipped<$skip && $skip!= 0) {
$skipped$skipped 1;
continue;
}
$index$index 1;
$timestampfilemtime("$filepath/$file");
$modifieddate("r"$timestamp);
if (
$evenrow) {
$evenrow=0;
$rowclass"evenrow";
}
else {
$evenrow=1;
$rowclass"oddrow";
}
unset(
$info);
unset(
$extrainfo);
unset(
$sizetag);
$filesizemyfilesize("$filepath/$file");
if (
$imagesize=@getimagesize("$filepath/$file",$info)) {
$width$imagesize[0];
$height$imagesize[1];
if (
$width>$thumbwidth) {
$ratio$thumbwidth $width;
$width=$thumbwidth;
$height$height*$ratio;
}
if (
$height>$thumbheight) {
$ratio$thumbheight $height;
$height=$thumbheight;
$width$width*$ratio;
}

switch (
$imagesize[2]) {
case 
5$icontag"<img src='/icons/image3.gif' alt=file title='photoshop image'>"; break;
case 
7$icontag"<img src='/icons/image2.gif' alt=file title='tiff image'>"; break;
case 
8$icontag"<img src='/icons/image2.gif' alt=file title='tiff image'>"; break;
default: 
$icontag"<img src='$uripath/$file' width=$width height=$height alt=image title=image>"; break;
}
$sizetag"($imagesize[0]x$imagesize[1])";

if (isset (
$info['APP13'])) {
$iptc iptcparse ($info['APP13']);
if (
is_array($iptc)) {
foreach (
$iptc AS $key=>$val) {
if (
$key=="2#000") continue;
$extrainfo.="$val[0]<br>";
}
}
}
// don't show thumbnails bigger than 500K!
if (filesize("$filepath/$file")>($thumblimit*1024)) $icontag"<img src='/icons/image2.gif' alt=file title='image'>";
}
else {
// try to determine from extension...
$lastdotstrrpos($file".");
$extensionstrtolower(substr($file,$lastdot+1));
//flerror("File extension is $extension.");
switch ($extension) {
case 
"pdf"$icontag"<img src='/icons/layout.gif' alt=pdf title=pdf>"; break;
case 
"txt"$icontag"<img src='/icons/text.gif' alt=text title=text>"; break;
case 
"htm"$icontag"<img src='/icons/text.gif' alt=html title=html>"; break;
case 
"html"$icontag"<img src='/icons/text.gif' alt=html title=html>"; break;
case 
"wav"$icontag"<img src='/icons/sound1.gif' alt=sound title=sound>"; break;
case 
"au"$icontag"<img src='/icons/sound1.gif' alt=sound title=sound>"; break;
case 
"aiff"$icontag"<img src='/icons/sound1.gif' alt=sound title=sound>"; break;
case 
"mp3"$icontag"<img src='/icons/sound2.gif' alt=sound title=sound>"; break;
case 
"ogg"$icontag"<img src='/icons/sound2.gif' alt=sound title=sound>"; break;
case 
"mov"$icontag"<img src='/icons/movie.gif' alt=video title=video>"; break;
case 
"avi"$icontag"<img src='/icons/movie.gif' alt=video title=video>"; break;
case 
"mpg"$icontag"<img src='/icons/movie.gif' alt=video title=video>"; break;
case 
"mpeg"$icontag"<img src='/icons/movie.gif' alt=video title=video>"; break;
case 
"mp4"$icontag"<img src='/icons/movie.gif' alt=video title=video>"; break;
case 
"divx"$icontag"<img src='/icons/movie.gif' alt=video title=video>"; break;
case 
"zip"$icontag"<img src='/icons/compressed.gif' alt='archive' title='zip archive'>"; break;
default: 
$icontag"<img src='/icons/generic.gif' alt=file title=file>"; break;
}
}
// file row
$safefileurlencode($file);
print 
"
<tr class='
$rowclass'>
<td valign=top align=right>
$icontag</td>
<td valign=top><a href='
$uripath/$safefile'>$file</a> $sizetag</td>
<td valign=top align=center>
$filesize</td>
<td valign=top>
$modified</td>
</tr>"
;
}
}
else print 
"
<tr>
<td valign=middle colspan='4'>&nbsp; No files here.</td>
</tr>"
;

print 
"
<tr class=heading>
<td align=center>Image</td>
<td>Name</td>
<td align=center>Filesize</td>
<td>Timestamp</td>
</tr>
</table>"
;

if (
$shownext) {
$nextskip$skip $index;
if (
$prevtag$prevtag .= " | ";
print 
"<p>$prevtag <a href='?skip=$nextskip'>Next Page</a></p>";
}
elseif (
$skip) {
print 
"<p>$prevtag</p>";
}

print 
"
<p><a href='
$parenturi'><img src='/icons/back.gif' border=0 hspace=5 align=absmiddle>Up to parent folder</a></p>";
}

if (
$showsource) {
print 
"<hr><a name='source'> </a><h1>PHP Source:</h1>";
$voidshow_source($SCRIPT_FILENAME);
}
print 
"
<hr>
</body>
</html>"
;
?>