'############################################################################################
' This section contains important LP settings. You can edit them to fit your needs.
' Lines with an apostophe ( ' ) in front of them are commented out and therefore inactive. Uncomment them if necessary.
' The script uses Zip and Image ActiveX controls (regsrv32 the included DLL and OCX controls)
'############################################################################################
'############################################################################################
'### System settings
'############################################################################################
'### General
Application("Debugging")=True '### If true: All error messages will be shown and script processing is stopped when an error occurs (Normally debugging should be disabled)
Application("DBConnection")="DBQ=" & server.mappath("database/listpics.mdb") & ";Driver={Microsoft Access Driver (*.mdb)}" '### Database connection string.
'Application("DBConnection")="DSN=LP"
Application("Language")="English.dat" '### Default language file to use
Application("DefaultAdminPass")="" '### Default admin passwords (separate multiple entries with a comma). Note: only to change folder settings, not used to determine access in Find results.
Application("DefaultAdminSettings")="1111000011011111111111111111111111101000" '### Settingsmask for admins (overrides all folder settings for admin users)
Application("DefaultSettings")="1111000011011011111101110000011111001000" '### Default settingsmask for new rootfolder
Application("OverrideSettingsForAdmins")=True '### Override current folders settings with DefaultAdminSettings when logged in as admin
Application("ShowDBCompactLink")="" '### Show a link to compact the database for admins (folder config view)
Application("AutoRebuild")=True '### Perform database cleanup automatically on each folder listing (delete non-existing items from DB and add new objects). You will have to visit each folder at least once to get the thumbs created properly.
Application("ShowRebuildProgress")=True '### Show rebuild progress for regular users (non-forced rebuild)
Application("ScriptTimeOut")=120 '### Set default script timeout in s
Application("LongScriptTimeOut")=3600 '### Script timeout used when rebuilding the database and Lowres images and uploading (may take very long for large listings)
Application("ValidImageTypes")="BMP,TIF,TIFF,GIF,JPG,JPEG,J2K,JP2,PNG,PCX,TGA,ICO,AVI" '### These types will be treated as images
Application("MaxConfigFolderLevel")=15 '### Maximum folder level to search up for config settings
Application("ExcludeFromSearchbots")=True '### Generate a robots.txt file in the LP folder to prevent your pics from showing up in search engines on the web :o)
Application("HomeLink")="/" '### If defined: show a home button linked to this page
Application("MailComponent")="cdo" '### Defines which email component to use. Valid values are: "jmail", "aspmail", "cdo" or "cdonts" (cdonts does not work on server 2003!)
Application("SMTPMailServer")="localhost" '### SMTP server to use to send mail. Make sure relaying is allowed on that server from the IP where LP is hosted!
Application("LogFile")="listpics.log"
Application("CropOnChangeRatio")=True '### Crop images to 3:2 ratio when using the change ratio function for commercial digital printing. If disabled, white bars will be added to the image as necessary.
Application("MaxFindItems")=1000 '### Maximum # files to return on find actions to preserve server resources (Uses TOP in query)
Application("LogLevel")=2 '### 0=No logging, 1=basic logging, 2=Full logging, 3=Debug level
Application("MaxZipItems")=500 '### Maximum number of files allowed in a Zip file to prevent server overload. Only for the full version.
Application("MultiMediaTypes")="AVI,WMV,MOV,QT,MPG,MPEG,RM,RAM,SWF,MP3,WAV,MID" '### These types will be treated as video (display media player object in the clients browser)
'Application("BaseURL")="" '### Get the applications base URL as users can access it on the web (e.g.: http"//www.dom.com/listpics/"). Empty=Auto-Detect
'### Security
'Application("AllowedIP")="10.*" '### Comma delimited list of allowed IP numbers/ranges. Example: "192.*,10.0.0.*"
Application("DeniedIP")="" '### Comma delimited list of denied IP numbers/ranges (this setting overrides AllowedIP). Example: "192.*,10.0.0.*"
Application("ShowIPWithComments")=True '### Include visitor's IP address to image comments added
Application("AllowDirectLinks")=True '### Allow direct links to images (listpics.asp?a=show&ID=2). NOTE: if enabled, the password protection is bypassed partially, use only if images are not very "secret"!
'Application("HidePassprotected")=True '### Hide all folders that have a password defined that is different from the users currently entered password.
'Application("HideList")="thumbs.db" '### Do not include files and folders that contain these partial strings in their name (not even for admins). Example: "secret,.dat" Note: will be applied after a rebuild of an existing folder (not realtime)!
'Application("HideAll")=True '### If enabled, this option will hide all folders for browsing. Users can only access images if they have a direct link that you sent them (for example: listpics.asp?dir=MyPics)
'### Upload
Application("DisAllowedTypes")="EXE,BAT,ASP,ASPX,ASA,CFG,CMD,VBS" '### Disallow upload or rename of these file types
Application("NumUploadFields")=6 '### Number of upload slots on the upload page
Application("MaxUploadSize")=50*1024*1024 '### Maximum total size for uploads
Application("UploadInfo")="You can upload images or zip files. Maximum upload size=%MaxSize." '### Display this info on the upload page, for example upload instructions or rules. Use %MaxSize for maximum upload size.
Application("DefaultNewFileStatusAdmins")=2 '### Default status of new images found when an admin is logged in (0=New, 1=Pending, 2=Published, 3=Hidden, 4=Archived)
Application("DefaultNewFileStatusUsers")=2 '### Default status of new images when a user is logged in (0=New, 1=Pending, 2=Published, 3=Hidden, 4=Archived)
Application("AutoUnzip")=True '### Auto unzip images from uploaded zip files
'### Image and lowres settings
Application("PrecacheImages")=True '### Preload the next image on image view/slideshow (may not improve speeds behind a Proxy).
'Application("RootFolder")="c:\temp\Images" '### Folder where picture subfolders are located. If not defined, the \_Images subfolder of the folder containing this ASP script will be used.
'Application("LowResRootFolder")="c:\temp\Lowres" '### Full path to folder where all LowRes material is stored (both Thumbnails and Lowres). If not defined, the \_Lowres subfolder of the folder containing this ASP script will be used.
Application("TNPrefix")="TN_" '### Prefix to use for thumbnail files. Thumbnails are always JPG files.
Application("LowResPrefix")="LR_" '### Prefix to use for low resolution files.
Application("UseLowRes")=True '### Users can download LowRes sized images (lower bandwidth). Generated on-the-fly on first page load.
Application("LowResImageSize")=800 '### LP will generate LowRes sized images of this size for viewing of larger images (default=800)
'Application("LowResPortraitImageSize")=600 '### If defined, Lowres images of portrait images will be scaled to this size (This way they will be as high as landscape images)
Application("ResizeSmallerImages")=True '### Enlarge images smaller than LowResImageSize
Application("TNSize")=160 '### Default thumbnail size
Application("JPEGQuality")=80 '### Default JPG quality (TN, Lowres and modify JPG)
Application("UseExifCreationDate")=True '### Use the original creation date from EXIF info of present
Application("RetainExifheaders")=True '### Copy EXIF header on image manipulation (rotate, etc.)
Application("AutoRotate")=True '### If the camera supports the Exif "Orientation" tag (not many do!), the lowres images of original images taken rotated Left or Right (landscape) will be rotated back to upright position. Use only if you do not rotate originals.
'Application("MakeBackups")=True '### Create a backup of original images that are modified by the admin (Rotate, resize, etc.)
'Application("CopyRightText")="Generated by ListPics - www.iisworks.com" '### If defined, this text will be added to all Lowres images. (Variables: %d=Date, %t=Time, %f=Filename)
Application("DisableImageToolbar")=True '### Disable the image toolbar in IE6+
Application("OverviewCols")=4 '### Number of thumbnail columns to show on image overview page (contact sheet)
Application("OverviewZoom")="1" '### Default zoom factor in image overview (default=1)
Application("OverviewTruncateChars")=25 '### Truncate file names in overview
Application("OverviewShowNumbers")=True '### Show file number with the name
Application("TimelineZoom")="0.5" '### Default zoom factor in timeline
Application("TimelineMaxCols")=8 '### Maximum # images in one row in timeline
'Application("TimelineMissingDaySeparator")="..." '### Show a row with this separator for non adjacent days (empty=disabled)
Application("AllowRandomImages")=True '### Allow users to view a random image selection of the current folder + subfolders
'Application("RandomizeAll")=True '### If enabled, the random function will return a selection from all files in the database rather than only from the current folder + subfolders
Application("NumRandomImages")=8 '### Number of random images to show.
'Application("AutocreateFolderKeywords")=True '### Automatically create keywords for new files, based on folder name
Application("UseExifInfo")=True '### Use Exif info of new images (User comment, Title, Description and Keywords)
'############################################################################################
'### View settings
'############################################################################################
Application("MaxSlideshowTime")=30 '### Maximum time for slideshow to prevent users keeping their show running endlessly (in minutes)
Application("SlideShowDelay")=4 '### Default slideshow delay (s)
Application("AllowLoopSlideshow")=True '### Allow to play slideshow continuously
Application("NumRows")=2 '### Default # images per page
Application("NumCols")=4 '### Default # columns
Application("MultiplePreviewImages")=True '### Use more preview images in big folder icons
'Application("AutoRefreshFolderIcons")=True '### Auto-update folder icon when parent folder changes (slows down admin functions like copy/paste)
Application("Sortby")="name" '### Default sort order (Name, ModDate, CreDate, Size, NumViews)
Application("BeautifyFilenames")=True '### Format file/folde names ("ThisFILe" becomes "Thisfile")
Application("AllowChangeRowsAndCols")=True
Application("AllowChangeSortorder")=True
Application("AllowShowImageInfo")=True
Application("AllowChangeLanguage")=True
Application("AllowUseBigFolderIcons")=True
Application("UseBigFolderIcons")=True '### Default value for this user setting
Application("UseContextMenu")=True
Application("MinimalPagingButtons")=True '### Show only Prev/Next and page dropdown
Application("ShowImageBorder")=True '### Show thin border around images in image view
Application("NewItemsTag")=" New!" '### HTML Tag to add to items new since last user visit (empty=disable)
Application("ShowImageDimension")=2 '### Show image dimensions in image info (0=None, 1=inch, 2=cm)
Application("CenterLP")=False '### Center the listpics page instead of Left-align
Application("ShowSaveButton")=True '### Display image save button in view window
Application("ShowOriginalSizeButton")=True '### Display button for original image in view window
Application("UseFullScreenViewWindow")=True '### Open view popups fullscreen or windowed (note: if not fullscreen the extra-fullscreen mode F11 will not work properly!)
Application("UseTitleInsteadOfName")=True '### Use the image title (if defined) instead of the file name in view windows
'### Folder info view settings in listing
Application("UseFolderComments")=True '### Also use Folder comments besides image comments (if AllowComments is also enabled in folder settings)
Application("ShowFolderSize")=True
Application("ShowFolderName")=True
Application("ShowFolderNumFiles")=True
Application("ShowFolderNumFolders")=True
Application("ShowFolderModDate")=True
'Application("ShowFolderCreDate")=True
Application("ShowFolderDescription")=True
'############################################################################################
- ©2002 iisworks.com -