> $cfg['adminpwd']='password'; //admin system password <> // Database related parameters from here $cfg['dbuser']='username'; //database username <> $cfg['dbpwd']='password'; //database password <> $cfg['dbaseName']='DB name'; //database name $cfg['dbaseServer']='server_address'; //the database server that you are connecting to. Leave as 'localhost' if you are not sure $cfg['dbaseTables']=array('images'=>'al_images','folders'=>'al_directories','comments'=>'al_comments','users'=>'al_users'); //the names of the 4 required database tables // path settings $cfg['imagePath']='images'; //the path to the directory full of image collections //locality settings $cfg['timeAdjust']=54000; //difference in seconds, between your local time and the time on your server (number is to be added to server time) // general settings $cfg['commentsOn']=true; //allow users to add comments to your images $cfg['autoThumbnail']=true; //create the thumbnails on the fly - this requires the PHP graphics library $cfg['popupImages']=true; //popup images in a separate window $cfg['albumTitle']='ALBUM'; //set the title of your photo album here $cfg['indexBullet']=''; //set the character to be displayed as the bullet next to each entry on the album index page $cfg['acceptTypes']=array('jpg','jpeg'); //set the allowable image types (auto thumbnail mode can currently only support jpeg's) $cfg['sortFolders']="desc"; //sort the labels of your folders alphabetically for display on the index page - this allows chronological ordering by placing the date at the start //of the folder label. eg "03-12-24 My birthday' // desc - will be sorted in DESCENDING order // asc - will be sorted in ASCENDING order // table sizes $cfg['viewerWidth']='700'; //the width in pixels, of the table that the images are displayed in (thumbnails also) $cfg['indexWidth']='700'; //the width in pixels of the table on the album's index page // Colour configuration starts here $cfg['colours']['border']='#999999'; //the colour of the table borders throughout the album $cfg['colours']['titleBack']='#EEEEEF'; //the colour behind the title section throughout the album and admin system $cfg['colours']['indexBack']='#FFFFFF'; //the background colour for the body of the page throughout the album and admin system $cfg['colours']['tableLine']='#515151'; //the colour of the lines used to separate rows on tables throughout the admin section $cfg['colours']['picBack']='#FFFFFF'; //the colour behind the full sized images $cfg['colours']['thumbBack']='#FFFFFF'; //the colour behind the thumbnail previews $cfg['colours']['picHeaderBack']='#EEEEEF'; //the background colour of the title on the enlarged picture view page $cfg['colours']['comment1']="#AC5D00"; //the colour of the first comment displayed beneath the images $cfg['colours']['comment2']="#E07900"; //the colour of the alternate comment displayed beneath the images $cfg['colours']['commentsBack']='#EEEEEF'; //the colour behind the comments on the image viewing page $cfg['colours']['commentsEntry']='#EEEEEF'; //the colour behind the comments entry form on the picture viewing page //Slideshow settings $cfg['windowHeight']=700; //the size of the popup window that hosts the slideshow $cfg['windowWidth']=700; // Thumbnail settings from here $cfg['thumbnailsprow']=5; //the number of columns of thumbnails to display on the preview page $cfg['longestSide']=120; //the length in pixels of the longest side of the thumbnails $cfg['numThumbs'] = 20; //num thumbnails per page //NEW to v2// $cfg['thumbDirectory'] = "thumbnails/"; //the name of the folder that your thumbnails are saved in. This is for those //who are not 'autogenerating' thumbnails. A folder of this name should exist //in each directory of images //Index page settings $cfg['sampleThumbsOnHome'] = 2; //number of sample thumbnails to display from each folder, on the Album index page //NEW to v2// $cfg['noSubdirsDisplayed'] = 3; //number of subdirectories of each folder to display on the index page //NEW to v2// // Text formatting settings $cfg['stylesheet']='albumstyle.css'; //specify the name and path of the stylesheet to be used from the ablum root directory. see example stylesheet for a list of required styles $cfg['pics']['dirNameCaps']='TRUE'; //whether to display the folder titles in CAPS on the pictures page $cfg['index']['dirNameCaps']='FALSE'; //whether to display the folder titles in CAPS on the index page $cfg['imageOrder']='asc'; //choose how the image names will be indexed when stored in the dbase ('asc' or 'dec') $cfg['adminImagePath']='../'.$cfg['imagePath']; // attempt to create a database connection if(!$db=mysql_connect($cfg['dbaseServer'],$cfg['dbuser'],$cfg['dbpwd'])){ printf("Unable to connect to your database on: %s
Check the server, username and password in the config.php file.
",$cfg['dbaseServer']); } else { if(!mysql_select_db($cfg['dbaseName'],$db)) printf("Unable to connect to your database : %s
Check the database name the config.php file.
",$cfg['dbaseName']); } ?>