Rev Author Line No. Line
347 kaklik 1 ; singapore main configuration file <http://singapore.sourceforge.net>
2 ;
3 ; Split into sections (Basic, Paths, Functionality, SQL & Advanced)
4 ; for ease of reading. Sections are ignored by the script.
5 ;
6 ; Any of these settings can be overridden in gallery.ini or
7 ; template.ini files. See the readme for more information.
8 ;
9 ; Template specific settings may be found in the template.ini
10 ; file located in the template's root directory.
11  
12  
13 [Basic]
14 ;
15 ; settings that most users will want to look at and possibly change
16 ;
17  
18 thumbnail_software = "gd2"
19 ;the software to use to generate the thumbnails
20 ; gd1 = GD v1.x
21 ; gd2 = GD v2.x
22 ; im = ImageMagick v5.x
23 ; im6 = ImageMagick v6.x
24  
25 gallery_name = "MLAB"
26 ;this is the text that will appear in the title bar of all
27 ;generated pages and also the root node of the crumb line
28  
29 default_template = "MLAB"
30 ;the name of the template to use when none is specified
31  
32 default_language = "en"
33 ;the language code for the language that you would like to use.
34 ;you must have the appropriate language file in the locale directory.
35  
36 gallery_sort_order = "x"
37 ;the order in which galleries will be displayed. Can take the following values:
38 ; p = sort by directory name (ascending)
39 ; P = sort by directory name (descending)
40 ; n = sort by gallery name (ascending)
41 ; N = sort by gallery name (descending)
42 ; i = sort by gallery name (case insensitive, ascending)
43 ; I = sort by gallery name (case insensitive, descending)
44 ; a = sort by artist name (ascending)
45 ; A = sort by artist name (descending)
46 ; d = sort by date (ascending)
47 ; D = sort by date (descending)
48 ; note: date comparison is done as a string comparison on the 'date' database
49 ; field. So for example "2003-10-22" comes before "22 October 2003"
50 ; x = do not sort (default)
51  
52 image_sort_order = "x"
53 ;the order in which images will be displayed. Can take the following values:
54 ; f = sort by file name (ascending)
55 ; F = sort by file name (descending)
56 ; n = sort by image name (ascending)
57 ; N = sort by image name (descending)
58 ; i = sort by image name (case insensitive, ascending)
59 ; I = sort by image name (case insensitive, descending)
60 ; a = sort by artist name (ascending)
61 ; A = sort by artist name (descending)
62 ; d = sort by date (ascending)
63 ; D = sort by date (descending)
64 ; note: date comparison is done as a string comparison on the 'date' database
65 ; field. So for example "2003-10-22" comes before "22 October 2003"
66 ; l = sort by location (ascending)
67 ; L = sort by location (descending)
68 ; x = do not sort (default)
69  
70 upload_overwrite = 2
71 ;what to do when uploading an image or gallery that already exists:
72 ; 0 do not overwrite, raise an error (default)
73 ; 1 overwrite without prompting
74 ; 2 attempt to generate a new unique name
75  
76  
77 [Functionality]
78 ;
79 ; some features are turned off by default. Try them out by turning them on here.
80 ;
81  
82 language_flipper = on
83 ;turn on to display a select box which allows users to select a language
84  
85 template_flipper = on
86 ;turn on to display a select box which allows users to select a template
87  
88 full_image_resize = off
89 ;turn on to force all full-size images to be resized to the size specified
90 ;in the current template's template.ini
91  
92 imagemap_navigation = off
93 ;turns full-size images into image maps so that clicking on
94 ;them takes you forward/backward/up
95  
96 track_views = on
97 ;whether to keep track of how many times images and
98 ;galleries have been viewed
99  
100 show_views = on
101 ;whether to display how many times images and galleries
102 ;have been viewed
103  
104 show_execution_time = on
105 ;display script execution time in milliseconds
106  
107 enable_iifn = on
108 ;enables parsing of directory and file names of the form
109 ;'artist_name - image_name' into metadata information
110  
111 obfuscate_email = on
112 ;tries to conceal email addresses from spambots by
113 ;replacing '.' with ' dot ' and '@' with ' at '
114  
115 enable_clickable_urls = on
116 ;makes the script detect URLs in image & gallery descriptions
117 ;and make them 'clickable' by adding the appropriate HTML
118  
119 remove_jpeg_profile = off
120 ;true to tell ImageMagick to remove any profile information
121 ;from generated thumbnails. This has been known to cause some
122 ;problems hence it being disabled by default
123  
124 progressive_thumbs = on
125 ;generate progressive JPEG and interlaced GIF & PNG images.
126  
127 use_mod_rewrite = off
128 ;format generated URLs for use with Apache mod_rewrite
129 ;you need to enable mod_rewrite and create an appropriate .htaccess file
130  
131 detect_language = on
132 ;attempt to detect user language from browser information
133 ;if this fails the default_language will be used
134  
135  
136 [Paths]
137 ;
138 ; The default paths will be fine for most people.
139 ;
140  
141 pathto_templates = "templates/"
142 ;path to directory containing templates
143 ;must be specified relative to singapore root
144  
145 pathto_data_dir = "data/"
146 ;path to writable data directory
147 ;must be specified relative to singapore root
148  
149 pathto_galleries = "galleries/"
150 ;path to galleries directory
151 ;must be specified relative to singapore root
152  
153 pathto_locale = "locale/"
154 ;path to directory containing internationalisation files (singapore.LANG.pmo)
155 ;must be specified relative to singapore root
156  
157 pathto_convert = "convert"
158 ;full path to ImageMagick convert utility if it is not in your PATH
159  
160 pathto_unzip = "unzip"
161 ;full path to Info-Zip unzip utility or equivalent if it is not in your PATH
162  
163 ;base_path option is in the [Advanced] section below
164  
165 [SQL]
166 ;
167 ; settings relevant to all the SQL backends (except SQLite).
168 ; You may ignore these if you are not using one of these backends.
169 ; For security reasons username and password are stored in secret.ini.php
170 ;
171  
172 sql_host = "localhost"
173 ;name of computer running MySQL server (usually localhost)
174 ;a port number may be included as in "example.com:1234"
175  
176 sql_database = "singapore"
177 ;database in which information will be stored. this must already exist.
178  
179 sql_prefix = "sg_"
180 ;this will be prefixed to the names of the tables created (galleries, images & users).
181 ;each singapore installation running on same database should have a different prefix.
182  
183 [FTP]
184 ;
185 ; The safe_mode hack uses FTP to create galleries.
186 ; You may ignore these settings if your server is not runing in safe_mode.
187 ; For security reasons username and password are stored in secret.ini.php
188 ;
189  
190 safe_mode_hack = off
191 ;set to on to enable the hack
192  
193 ftp_server = ""
194 ;the hostname you use to login to your website
195 ;a port number may be included as in "example.com:1234"
196  
197 ftp_base_path = ""
198 ;path from ftp root to singapore root
199  
200 [Advanced]
201 ;
202 ; settings most users will not need to change
203 ;
204  
205 io_handler = "mysql"
206 ;the type of database to use. recognised values are:
207 ; csv = flat file, no database needed (default)
208 ; mysql = MySQL database (configure sql_* settings above and in secret.ini.php)
209 ; sqlite = SQLite database (does not require any further configuration)
210  
211 allow_dir_upload = 1
212 ;allow uploading archives containing arbitrary files.
213 ; 0 = allow no one
214 ; 1 = allow all registered users
215 ; 2 = allow only administrators
216  
217 admin_template_name = "admin_default"
218 ;the name of the admin template to use
219  
220 thumbnail_quality = 75
221 ;the JPEG quality of generated thumbnails
222 ;100 is the highest quality 0 is the lowest
223  
224 session_name = "PHPSESSID"
225 ;the name of the admin session. each independent singapore
226 ;installation on the same domain should have a different name
227  
228 default_charset = "utf-8"
229 ;the character encoding to use for generated pages if none
230 ;is specified in the current language file
231  
232 index_file_url = "index.php?"
233 ;filename of index file plus any query-string
234 ;if a path is specified it must be absolute
235  
236 base_path = ""
237 ;file-system-view absolute or relative path to installation
238 ;can usually be left blank
239  
240 base_url = ""
241 ;web-view absolute or relative url of installation.
242 ;can usually be left blank
243  
244 recognised_extensions = "jpeg|jpg|jpe|png|gif|bmp|tif|tiff"
245 ;list of file extensions that will be recognised as images
246 ;this forms part of a pcre hence the vertical bars (meaning OR)
247  
248 allowed_tags = "<a><b><i><u><em><strong><strike>"
249 ;list of HTML tags which will be allowed in multiline database entries
250 ;such as description and summary
251  
252 directory_mode = 0777
253 ;the permissions to set on directories
254 ;(i.e. galleries) created by the script
255  
256 file_mode = 0666
257 ;the permissions to set on files (thumbnails, logs,
258 ;images & metadata files) created by the script.
259  
260 [GET variable names]
261 ;
262 ; names of variables used to pass information in URLs
263 ; you will only need to change these if there is a conflict with
264 ; already existing variables and the installation is being integrated.
265 ;
266  
267 url_gallery = "gallery"
268 url_image = "image"
269 url_startat = "startat"
270 url_action = "action"
271 url_lang = "lang"
272 url_template = "template"