c6b911cc29
* Version number now starts at 0.3.7 * Added thumbnail cache. * Added optional folder comment and image title/caption * darkgold2 theme from version 0.2.3 adapted to this version. * darkgold2 is now the default theme. * Increased thumbnail size. * Increased number of images per page. * Page is now in UTF-8 by default to support international characters. * Removed many warnings. * Corrected XSS vulnerability. * Added htaccess to prevent raw browsing of images folder. * Removed version check against original author's website.
43 lines
No EOL
2.2 KiB
PHP
43 lines
No EOL
2.2 KiB
PHP
<?php
|
|
/*
|
|
MINIGAL NANO
|
|
- A PHP/HTML/CSS based image gallery script
|
|
|
|
This script and included files are subject to licensing from Creative Commons (http://creativecommons.org/licenses/by-sa/2.5/)
|
|
You may use, edit and redistribute this script, as long as you pay tribute to the original author by NOT removing the linkback to www.minigal.dk ("Powered by MiniGal Nano x.x.x")
|
|
|
|
MiniGal Nano is created by Thomas Rybak
|
|
|
|
Copyright 2010 by Thomas Rybak
|
|
Support: www.minigal.dk
|
|
Community: www.minigal.dk/forum
|
|
|
|
Please enjoy this free script!
|
|
*/
|
|
|
|
// EDIT SETTINGS BELOW TO CUSTOMIZE YOUR GALLERY
|
|
$thumbs_pr_page = "39"; //Number of thumbnails on a single page
|
|
$gallery_width = "80%"; //Gallery width. Eg: "500px" or "70%"
|
|
$backgroundcolor = "white"; //This provides a quick way to change your gallerys background to suit your website. Use either main colors like "black", "white", "yellow" etc. Or HEX colors, eg. "#AAAAAA"
|
|
$templatefile = "darkgold2"; //Template filename (must be placed in 'templates' folder)
|
|
$title = "MiniGal Nano test gallery"; // Text to be displayed in browser titlebar
|
|
$author = "John Doe";
|
|
$folder_color = "black"; // Color of folder icons: blue / black / vista / purple / green / grey
|
|
$sorting_folders = "name"; // Sort folders by: [name][date]
|
|
$sorting_files = "name"; // Sort files by: [name][date][size]
|
|
$sortdir_folders = "ASC"; // Sort direction of folders: [ASC][DESC]
|
|
$sortdir_files = "ASC"; // Sort direction of files: [ASC][DESC]
|
|
|
|
//LANGUAGE STRINGS
|
|
$label_home = "Home"; //Name of home link in breadcrumb navigation
|
|
$label_new = "New"; //Text to display for new images. Use with $display_new variable
|
|
$label_page = "Page"; //Text used for page navigation
|
|
$label_all = "All"; //Text used for link to display all images in one page
|
|
$label_noimages = "No images"; //Empty folder text
|
|
$label_loading = "Loading..."; //Thumbnail loading text
|
|
|
|
//ADVANCED SETTINGS
|
|
$thumb_size = 320; //Thumbnail height/width (square thumbs). Changing this will most likely require manual altering of the template file to make it look properly!
|
|
$label_max_length = 40; //Maximum chars of a folder name that will be displayed on the folder thumbnail
|
|
$display_exif = 0;
|
|
?>
|