forked from tsunaminoai/flatgallery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
executable file
·75 lines (56 loc) · 1.67 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?
/*******************
FlatGallery was written by Ben Craton (Tsunami.No.AI)
http://www.falseblue.com
This code is licenced under the GPL and may not be
redistributed in any altered form without the author's
express consent. The author is also not liable for any
damage this code may, or may not, cause.
See the README file that came with your archive
for more information.
********************/
####################
#
#Configure:
#
# Title: The name of your gallery
$title="FlatGallery";
#Stylesheet: The style sheet you want to use
$stylesheet="style.css";
#Image Directory: Set where your images are located
# This MUST be chmod 0777
$img_dir="images";
#Thumbs Directory: Set where your thumbnails will be placed
# This MUST be chmod 0777
$thumb_dir="thumbs";
#Folder Icon: This image must be PNG and will be sized to $thumb_size
# and saved as folder.png. If you change this from the deault
# run rebuild_thumbs();
$folder_icon="folder_default_icon.png";
#Thumb Size: Set the maximum width/length of your thumbnails in pixels
$thumb_size=100;
#Cols: how many collumns to display per page
$cols=5;
#Rows: how many rows to display per page
$rows=50;
#Show filename or filesize: 0 for false, 1 for true
$show_name=0;
$show_size=1;
##########################
# DO NOT EDIT BELOW THIS LINE #
##########################
require("flatgallery.class.php");
$gal = new flatgallery();
$gal->set_title($title);
$gal->set_thumb_size($thumb_size);
$gal->set_cols($cols);
$gal->set_rows($rows);
$gal->set_show_filename($show_name);
$gal->set_show_filesize($show_size);
#Display: Displays the gallery
if (!empty($_GET['image'])) {
$gal->display_image();
} else {
$gal->display_default();
}
?>