/*
######################### MyGallery 1.7.2 ###########################
### |-----------------------------------------------------------| ###
### | COPYRIGHT 2004 by Lukas Stalder, planetluc.com | ###
### | DO NOT REDISTRIBUTE OR RESELL THIS SCRIPT | ###
### | ANY WAYS WITHOUT MY EXPLICIT PERMISSION! | ###
### | For support use support@planetluc.com but | ###
### | please read README.txt for installation first! | ###
### | Or visit the board at www.planetluc.com | ###
### |-----------------------------------------------------------| ###
#####################################################################
*/
// ****************************** CONFIG ******************************
// ********************************************************************
// error reporting
error_reporting(0);
// login for admin
$mgConf['adminlogin'] = "aloni";
// password for admin
$mgConf['adminpwd'] = "5256441";
// time in seconds until admin has to relogin
$mgConf['adminexpire'] = 60*20;
// whether to have slideshow or not
$mgConf['slideshow'] = true;
// use lightbox by http://www.huddletogether.com/projects/lightbox2/
$mgConf['lightbox'] = true;
// autoslideshow for the lightbox
$mgConf['fancyslideshow'] = true;
// time until next picture is show in slideshow
$mgConf['slideshowtime'] = 3;
// watermark image (PNG), if != "" each fullsize image comes with
// a small watermark image at the location defined below
// file must be located in the mygallery folder root
$mgConf['watermarkimg'] = "watermark.png";
// watermark position (0/0 is top left corner)
// negative values for bottom right corner
$mgConf['watermark_x'] = -95;
$mgConf['watermark_y'] = -40;
// watermark transparancy
$mgConf['watermark_transparency'] = 100;
// thumbnails (thereore gd lib must be installed in php!)s
$mgConf['thumbnails'] = true;
// image size
$mgConf['imagewidth'] = 400;
$mgConf['imageheight'] = 400;
// there are 3 modes if image doesn't have above width/height
// 1) 'w' - resize image to width
// 2) 'h' - resize image to height
// 3) 'm' - resize image to bigger side's value given above
// 4) 'c' - resize and crop image to $mgConf['imagewidth'] & $mgConf['imageheight']
$mgConf['imagemode'] = "w";
// thumb size
$mgConf['thumbwidth'] = 100;
$mgConf['thumbheight'] =100;
// there are 3 modes if thumb doesn't have above width/height
// 1) 'w' - resize thumb to width
// 2) 'h' - resize thumb to height
// 3) 'm' - resize thumb to bigger side's value given above
// 4) 'c' - resize and crop thumb to $mgConf['thumbwidth'] & $mgConf['thumbhight']
$mgConf['thumbmode'] = "c";
// number of thumbnails cols
$mgConf['thumbcols'] = 4;
// number of thumbnails cols in admin cp
$mgConf['thumbcolsadmin'] = 4;
// when you include the script into a file that is
// outside the mygallery folder you have to put the
// path to the mygallery folder here (with trailing slash if set!)
$mgConf['pathtoscript'] = "";
// phpwcms alias name (only if you're using the script as module for phpwcms)
$mgConf['phpwcmsalias'] = "";
// if script is used as cms made simple module
$mgConf['is_cmsms_module'] = false;
// GET variables that need to be present all the time
$mgConf['getvars'][] = "page";
// jpg quality (0=bad, 100=good, standard is 80)
$mgConf['jpgquality'] = 85;
// galleries per page in galleries overview mode
$mgConf['gpp'] = 5;
// thumbs per page in gallery overview mode
// >> should be bigger than $mgConf['gpp'] and a multiple of it!
$mgConf['tpp'] = 12;
// FTP create directory for 'SAFE_MODE = on' workaround (new folder permissions not set to '0777')
// this may be the issue if MyGallery makes the gallery folders, but you cannot upload images to new galleries
$mgConf['ftp_mkdir'] = false; // set to 'true' to use SAFE_MODE workaround using ftp to create new folders because your server is in 'SAFE_MODE' - set to 'false' for default use of PHP's 'mkdir' function
$mgConf['ftpserver'] = "localhost"; // ftp server address - 'localhost' should work for most web servers
$mgConf['ftpuser'] = "username"; // ftp username
$mgConf['ftppass'] = "password"; // ftp password
$mgConf['ftpimagepath'] = "path/to/images/"; // directory path from ftp root to MyGallery 'images' folder
// language settings
$txtadmin= htmlentities("Admin");
$txtnextslide= htmlentities("Wait ".$mgConf['slideshowtime']." seconds or");
$txtclickpic= htmlentities("Click on the picture to get to the next one");
$txtback= htmlentities("Back to the Index");
$txtlogin= htmlentities("Login");
$txtpass= htmlentities("Password");
$txtlogout= htmlentities("Logout");
$txtnewgal= htmlentities("Creating New Gallery");
$txtzipdesc= htmlentities("To upload a new gallery you first have to put all photos together into a ZIP archive that you can upload afterwards. Except you just want to have a single picture in it");
$txtgalname= htmlentities("Gallery Name");
$txtselzip= htmlentities("Select a ZIP archive or a single picture (JPG) for uploading");
$txtbuild= htmlentities("Build");
$txtexgals= htmlentities("Existing Galleries");
$txtedit= htmlentities("edit");
$txtdelete= htmlentities("delete");
$txtasktodel= htmlentities("Do you really want to delete this gallery?");
$txtnodir= htmlentities("Couldn't create a new folder (check permissions!)");
$txtnochmod= htmlentities("Could not change the permissions for the new folder");
$txtnozip= htmlentities("No ZIP archive or picture selected or empty name field!");
$txtnoname= htmlentities("Empty name field!");
$txtname= htmlentities("Name");
$txtup= ("↑");
$txtdown= ("↓");
$txtediting= htmlentities("Editing Gallery");
$txtcaption= htmlentities("Caption");
$txtfilename= htmlentities("Filename");
$txtadd= htmlentities("Add");
$txtaddpicscap= htmlentities("Adding Picture(s)");
$txtaddpics= htmlentities("Select a single picture or a ZIP archive that you 'd like to add to this gallery");
$txtsavechange= htmlentities("Save Changes");
$txtsavedchanges=htmlentities("Changes saved");
$txtdescription=htmlentities("Description");
$txtviewthisgal=htmlentities("View the {gallery} Gallery!");
$txtfirstpage= htmlentities("«««");
$txtprevpage= htmlentities("««");
$txtnextpage= htmlentities("»»");
$txtlastpage= htmlentities("»»»");
$txtpicture = htmlentities("Picture");
$txtpictureof = htmlentities("of");
$txtcontinueslideshow = htmlentities("Continue Slideshow");
$txtincludewatermark = htmlentities("include watermark");
// ******************** INIT LIGHTBOX & STYLE DEFs ********************
// ********************************************************************
if ($mgRef != "JS"){
?>
}?>