o: ActiveSupport::Cache::Entry :@compressedF: @value"‹¸"„¸
Web/AboutAuthors.en.html
113 113
          <li> ICQ: 191482091 <img src="http://status.icq.com/online.gif?icq=191482091&amp;img=21" alt="Stav ICQ"> </li>
114 114
          <li> VoIP: +420 380 120 249 </li>
115 115
          <li> E-mail: kaklik@mlab.cz</li>
116
          <li> Web: <a href="http://www.mlab.cz/~kaklik/index.cs.html">http://www.mlab.cz/~kaklik/index.cs.html</a> </li>
116
          <li> Web: <a href="http://www.mlab.cz/~kaklik/">http://www.mlab.cz/~kaklik/</a> </li>
117 117
        </ul>
118 118
      </div>
119 119

  
Web/AboutAuthors.cs.html
114 114
          <li> ICQ: 191482091 <img src="http://status.icq.com/online.gif?icq=191482091&amp;img=21" alt="Stav ICQ"> </li>
115 115
          <li> VoIP: +420 380 120 249 </li>
116 116
          <li> E-mail: kaklik@mlab.cz</li>
117
          <li> Web: <a href="http://www.mlab.cz/~kaklik/index.cs.html">http://www.mlab.cz/~kaklik/index.cs.html</a> </li>
117
          <li> Web: <a href="http://www.mlab.cz/~kaklik/">http://www.mlab.cz/~kaklik/</a> </li>
118 118
        </ul>
119 119
      </div>
120 120

  
photogallery/templates/MLAB/image.tpl.php
1
<p class="sgNavBar sgTopNavBar">
2
<?php echo $sg->previewThumbnails(); ?>
3
<br />
4
<?php if($sg->image->hasPrev()) echo $sg->image->prevLink()." | "; ?> 
5
<?php echo $sg->image->parentLink(); ?> 
6
<?php if($sg->image->hasNext()) echo " | ".$sg->image->nextLink(); ?>
7
</p>
8
<h2 class="sgTitle"><?php echo $sg->image->name(); ?></h2>
9
<h4 class="sgSubTitle"><?php echo $sg->image->byArtistText(); ?></h4>
10
  
11
<div class="sgShadow"><table class="sgShadow" cellspacing="0">
12
  <tr>
13
    <td class="tl"></td>
14
    <td class="tm"></td>
15
    <td class="tr"></td>
16
  </tr>
17
  <tr>
18
    <td class="ml"></td>
19
    <td class="mm">
20
    <?php echo $sg->image->imageHTML() ?> 
21
    </td>
22
    <td class="mr"></td>
23
  </tr>
24
  <tr>
25
    <td class="bl"></td>
26
    <td class="bm"></td>
27
    <td class="br"></td>
28
  </tr>
29
</table></div>
30
  
31
<p class="sgNavBar sgBottomNavBar">
32
<?php if($sg->image->hasPrev()) echo $sg->image->prevLink()." | "; ?> 
33
<?php echo $sg->image->parentLink(); ?> 
34
<?php if($sg->image->hasNext()) echo " | ".$sg->image->nextLink(); ?>
35
</p>
36

  
37
<h4 class="sgNameByArtist"><em><?php echo $sg->image->name() ?></em><?php echo $sg->image->byArtistText() ?></h4>
38
  
39
<p class="sgDetailsList">
40
<?php foreach($sg->image->detailsArray() as $key => $value): ?>
41
<strong><?php echo $key ?>:</strong> <?php echo $value ?><br />
42
<?php endforeach; ?>
43
</p>
44

  
45
<?php echo $sg->imageMap() ?>
photogallery/templates/MLAB/template.ini
1
;Option descriptions have been grouped together here.
2
;Do not uncomment the following lines, they are for illustration only.
3
;
4
;thumb_width_*
5
;   Width in pixels of thumbnails generated by the script.
6
;   This option is affected by the thumb_crop_* option (see below).
7
;
8
;thumb_height_*
9
;   Height in pixels of thumbnails generated by the script.
10
;   This option is affected by the thumb_crop_* option (see below).
11
;
12
;thumb_crop_*
13
;   By default, width and height are maximum dimensions and images will be 
14
;   resized, maintaining the same aspect ratio, to fit within these limits.
15
;   Turn force_size on to make the script crop images to the specified size.
16
;
17
;*_gallery
18
;   These options affect gallery pages (those that contain sub-galleries).
19
;
20
;*_album
21
;   These options affect album pages (those that contain only images).
22
;
23
;*_preview
24
;   These options affect the preview thumbnails displayed on image pages.
25
;
26
;*_image
27
;   These options affect full size display images and are only used if 
28
;   full_image_resize is on in singapore.ini
29

  
30
thumb_width_gallery  = 80
31
thumb_height_gallery = 80
32
thumb_crop_gallery = off
33
thumb_number_gallery = 10
34
     ;Maximum number of galleries to show on one gallery page.
35

  
36
thumb_width_album  = 100
37
thumb_height_album = 100
38
thumb_crop_album = off
39
thumb_number_album = 20
40
     ;Maximum number of image thumbnails to show on one album page.
41

  
42
thumb_width_preview  = 50
43
thumb_height_preview = 50
44
thumb_crop_preview = off
45
thumb_number_preview = 5
46
     ;Maximum number of preview thumbnails to display (including
47
     ;current image). An odd number is usually preferred.
48
     
49
thumb_width_image  = 700
50
thumb_height_image = 500     
photogallery/templates/MLAB/index.tpl.php
1
<?php
2

  
3
/**
4
 * Default singapore template.
5
 * 
6
 * @author Tamlyn Rhodes <tam at zenology dot co dot uk>
7
 * @copyright (c)2003, 2004 Tamlyn Rhodes
8
 * @version 1.0
9
 */
10

  
11
//include header file
12
include $sg->config->base_path.$sg->config->pathto_current_template."header.tpl.php";
13

  
14
switch($sg->action) {
15
case "addcomment" :
16
  include $sg->config->base_path.$sg->config->pathto_current_template."addcomment.tpl.php";
17
default :
18
  if($sg->isImagePage()) { 
19
    //this is an 'image' page so include the 'image' template file
20
    include $sg->config->base_path.$sg->config->pathto_current_template."image.tpl.php";
21
  } elseif($sg->isAlbumPage()) {
22
    //this is an 'album' page so include the 'album' template file
23
    include $sg->config->base_path.$sg->config->pathto_current_template."album.tpl.php";
24
  } else {
25
    //this is a 'gallery' page so include the 'gallery' template file
26
    include $sg->config->base_path.$sg->config->pathto_current_template."gallery.tpl.php";
27
  }
28
}
29
//include footer file
30
include $sg->config->base_path.$sg->config->pathto_current_template."footer.tpl.php";
31

  
32
?>
photogallery/templates/MLAB/main.css
1
/* * * * * * * * * * */
2
/* Generic elements  */
3
/* * * * * * * * * * */
4

  
5
body {
6
  margin: 1em;
7
  font: small sans-serif;
8
  color: #000;
9
  background-color: #fff;
10
}
11

  
12
p, td, th, li, h4 {
13
  font: small sans-serif;
14
}
15

  
16
h1, h2, h3 {
17
  color: #f60;
18
}
19

  
20
h1 {
21
  font-size: large;
22
}
23

  
24
a:link, a:visited {
25
  color: #09f;
26
  text-decoration: underline;
27
}
28

  
29
a:hover {
30
  text-decoration: none;
31
}
32

  
33
input, textarea, select, .inputbox {
34
  border: 1px solid #f60;
35
  color: #000;
36
  background-color: #fff;
37
}
38

  
39
input.radio {
40
  border: none;
41
  background-color: #fff;
42
}
43

  
44
input.button {
45
  font-weight: bold;
46
  border: 1px outset #fff;
47
  color: #fff;
48
  background-color: #f60;
49
}
50

  
51
a img {
52
  border: 0;
53
}
54

  
55

  
56
/* * * * * * * * * * */
57
/* Elements with IDs */
58
/* * * * * * * * * * */
59

  
60

  
61
/* header: image and/or title */
62
#header { }
63

  
64
/* crumb line: (You are here: ...) */
65
#crumb { }
66

  
67
/* footer: copyright notices */
68
#footer {
69
  text-align: center; 
70
}
71

  
72

  
73
/* * * * * * * * * */
74
/* Custom classes  */
75
/* * * * * * * * * */
76

  
77

  
78
/* image or gallery name header */
79
.sgTitle {
80
  margin-bottom: 0;
81
}
82

  
83
/* image or gallery artist subheader */
84
.sgSubTitle {
85
  margin-top: 0;
86
}
87

  
88
/* image and artist name displayed beneath image */
89
p.sgNameByArtist { }
90

  
91
/* image and gallery details such as date, location, camera model, hits etc. */
92
p.sgDetailsList { }
93

  
94
/* language select box and template select box respectively */
95
div.sgLanguageFlipper, div.sgTemplateFlipper {
96
  float: right;
97
  clear: right;
98
}
99

  
100
div.sgClear {
101
  clear: both;
102
}
103

  
104
/* wraps the drop-shadow table to allow IE to center it */
105
div.sgShadow {
106
  text-align: center;
107
  padding: 1em;
108
}
109

  
110
/* the main content table that does the drop-shadow effect */
111
table.sgShadow {
112
  margin-left: auto;
113
  margin-right: auto;
114
  clear: both;
115
}
116

  
117
table.sgShadow {
118
  background-color: #f0f0f0;
119
  padding: 0;
120
  text-align: left;
121
}
122

  
123
table.sgShadow td {
124
  padding: 0;
125
  margin: 0;
126
}
127

  
128
/* div containing each gallery sub-gallery on a gallery page */
129
div.sgGallery {
130
  margin: 5px;
131
  padding: 5px;
132
  border: 1px solid #ccc;
133
  background-color: #fff;
134
}
135

  
136
/* the table cell containing the gallery thumbnail */
137
td.sgGalleryThumb {
138
  width: 100px;
139
  text-align: center;
140
}
141

  
142
/* the gallery thumbnail itself */
143
img.sgGalleryThumb {
144
  border: 1px solid #000;
145
}
146

  
147
/* the descriptive text (title, summary, contents) */
148
div.sgGallery p {
149
  margin-top: 0;
150
  margin-bottom: 2px;
151
}
152

  
153

  
154
/* full size image on an image page*/
155
img.sgImage {
156
  border: none;
157
}
158

  
159
/* the preview thumbnails and previous, thumbnails, next links */
160
p.sgTopNavBar, p.sgBottomNavBar {
161
  text-align: center;
162
  float: right;
163
}
164

  
165
/* wraps the thumbnail and rounded-corner code on an album page */
166
div.sgThumbnail {
167
  width:  124px;
168
  height: 124px;
169
  margin: 10px 5px;
170
  float: left;
171
	padding: 0px;
172
  text-align: center;
173
}
174

  
175
div.sgThumbnail table {
176
  width:  114px;
177
  height: 114px;
178
  margin: 0px;
179
  text-align: center;
180
  vertical-align: middle;
181
}
182

  
183
.sgThumbnailContent {
184
  background: #fff;
185
	margin: 0px;
186
	padding: 0px;
187
	border: 1px solid #ccc;
188
}
189

  
190

  
191
/* the following code does the rounded corners of the 35mm slide effect on 
192
   the album pages. Taken from http://www.albin.net/CSS/roundedCorners/ */
193
.roundedCornerSpacer {
194
    margin: 0px; padding: 0px; border: 0px;
195
    clear: both;
196
    font-size: 1px; line-height: 1px;
197
}
198
.borderTL, .borderTR, .borderBL, .borderBR {
199
    width: 5px; height: 5px;
200
    padding: 0px; border: 0px;
201
    z-index: 99;
202
}
203
.borderTL, .borderBL { float: left; clear: both; }
204
.borderTR, .borderBR { float: right; clear: right; }
205
.borderTL { margin: -1px 0px 0px -1px; }
206
.borderTR { margin: -1px -1px 0px 0px; }
207
.borderBL { margin: -5px 0px 0px 0px; }
208
.borderBR { margin: -5px 0px 0px 0px; }
209

  
210

  
211
/* appropriate background images for drop-shadow effect */
212
table.sgShadow td.tabl { background-image: url('images/shadow-tabl.gif'); width: 16px; height: 16px; }
213
table.sgShadow td.tabm { background-color: #fff; }
214
table.sgShadow td.tabr { background-color: #fff; }
215

  
216
table.sgShadow td.tl {  background-image: url('images/shadow-tl.gif'); width: 32px; height: 16px; }
217
table.sgShadow td.tm {  background-image: url('images/shadow-tm.gif');}
218
table.sgShadow td.tr {  background-image: url('images/shadow-tr.gif');}
219
table.sgShadow td.ml {  background-image: url('images/shadow-ml.gif');}
220
table.sgShadow td.mm {  padding: 10px;} /* cell containing image */
221
table.sgShadow td.mr {  background-image: url('images/shadow-mr.gif');}
222
table.sgShadow td.bl {  background-image: url('images/shadow-bl.gif');}
223
table.sgShadow td.bm {  background-image: url('images/shadow-bm.gif');}
224
table.sgShadow td.br {  background-image: url('images/shadow-br.gif'); width: 32px; height: 32px; }
225

  
226
/* the bit with previous, next */
227
table.sgShadow td.tabm div { 
228
  font-size: 13px;
229
  background: #f0f0f0 url('images/shadow-tabm.gif') top right;
230
  padding-right: 30px;
231
  float: left; 
232
}
photogallery/templates/MLAB/header.tpl.php
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
2
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3

  
4
<html xmlns="http://www.w3.org/1999/xhtml">
5
<head>
6
<title><?php echo $sg->pageTitle(); ?></title>
7
<link rel="stylesheet" type="text/css" href="<?php echo $sg->config->base_url.$sg->config->pathto_current_template ?>main.css" />
8
<?php echo $sg->navigationLinks(); ?>
9
<!-- 
10
  This page was generated by singapore <http://singapore.sourceforge.net>
11
  singapore is free software licensed under the terms of the GNU GPL.
12
-->
13
</head>
14

  
15
<body>
16

  
17
<?php echo $sg->languageFlipper(); ?> 
18
<?php echo $sg->templateFlipper(); ?>
19

  
20
<div id="crumb"><?php echo $sg->crumbLine(); ?></div>
21

  
22
<div id="header"><img src="<?php echo $sg->config->base_url.$sg->config->pathto_current_template ?>images/header.gif" alt="<?php echo$sg->config->gallery_name ?>" /></div>
23

  
24
<!-- start of generated content -->
25

  
photogallery/templates/MLAB/footer.tpl.php
1

  
2
<div id="footer"><p>
3
  <?php echo $sg->allRightsReserved(); ?>
4
  <?php echo $sg->licenseText(); ?>
5
  <br />
6
  <?php echo $sg->poweredByText(); ?> 
7
  <?php echo $sg->scriptExecTimeText(); ?> |
8
  <?php echo $sg->adminLink(); ?>
9
</p></div>
10

  
11
</body>
12
</html>
photogallery/templates/MLAB/gallery.tpl.php
1
<p class="sgNavBar sgTopNavBar">
2
<?php if($sg->gallery->hasPrev()) echo $sg->gallery->prevLink()." | "; ?> 
3
<?php if(!$sg->gallery->isRoot()) echo $sg->gallery->parentLink(); ?> 
4
<?php if($sg->gallery->hasNext()) echo " | ".$sg->gallery->nextLink(); ?>
5
</p>
6

  
7
<h2 class="sgTitle"><?php echo $sg->gallery->name(); ?></h2>
8
<h4 class="sgSubTitle"><?php echo $sg->gallery->byArtistText(); ?></h4>
9

  
10
<div class="sgShadow"><table class="sgShadow" cellspacing="0">
11
  <tr>
12
    <td class="tabl"></td>
13
    <td class="tabm">
14
    <div><?php echo $sg->galleryTab(); ?></div>
15
    </td>
16
    <td class="tabr"></td>
17
  </tr>
18
  <tr>
19
    <td class="tl"></td>
20
    <td class="tm"></td>
21
    <td class="tr"></td>
22
  </tr>
23
  <tr>
24
    <td class="ml"></td>
25
    <td class="mm">
26
  
27
    <?php for($index = $sg->gallery->startat; $index < $sg->gallery->galleryCountSelected()+$sg->gallery->startat; $index++): ?> 
28
    <div class="sgGallery"><table class="sgGallery"><tr valign="top">
29
      <td class="sgGalleryThumb">
30
        <?php echo $sg->gallery->galleries[$index]->thumbnailLink(); ?> 
31
      </td>
32
      <td>
33
        <p><strong><?php echo $sg->gallery->galleries[$index]->nameLink(); ?></strong></p>
34
        <p><?php echo $sg->gallery->galleries[$index]->summary(); ?></p>
35
        <p>[<?php echo $sg->gallery->galleries[$index]->itemCountText(); ?>]</p>
36
      </td>
37
    </tr></table></div>
38
    <?php endfor; ?> 
39

  
40
    </td>
41
    <td class="mr"></td>
42
  </tr>
43
  <tr>
44
    <td class="bl"></td>
45
    <td class="bm"></td>
46
    <td class="br"></td>
47
  </tr>
48
</table></div>
49

  
50
  
51
  
52
<p class="sgDetailsList">
53
<?php foreach($sg->gallery->detailsArray() as $key => $value): ?>
54
<strong><?php echo $key; ?>:</strong> <?php echo $value; ?><br />
55
<?php endforeach; ?>
56
</p>
photogallery/templates/MLAB/album.tpl.php
1
<p class="sgNavBar sgTopNavBar">
2
<?php if($sg->gallery->hasPrev()) echo $sg->gallery->prevLink()." | "; ?> 
3
<?php if(!$sg->gallery->isRoot()) echo $sg->gallery->parentLink(); ?> 
4
<?php if($sg->gallery->hasNext()) echo " | ".$sg->gallery->nextLink(); ?>
5
</p>
6

  
7
<h2 class="sgTitle"><?php echo $sg->gallery->name(); ?></h2>
8
<h4 class="sgSubTitle"><?php echo $sg->gallery->byArtistText(); ?></h4>
9

  
10
<div class="sgShadow"><table class="sgShadow" cellspacing="0">
11
  <tr>
12
    <td class="tabl"></td>
13
    <td class="tabm">
14
    <div><?php echo $sg->galleryTab(); ?></div>
15
    </td>
16
    <td class="tabr"></td>
17
  </tr>
18
  <tr>
19
    <td class="tl"></td>
20
    <td class="tm"></td>
21
    <td class="tr"></td>
22
  </tr>
23
  <tr>
24
    <td class="ml"></td>
25
    <td class="mm">
26
  
27
    <?php for($index = $sg->gallery->startat; $index < $sg->gallery->imageCountSelected()+$sg->gallery->startat; $index++): ?>
28
    <div class="sgThumbnail">
29
      <div class="sgThumbnailContent">
30
        <img class="borderTL" src="<?php echo $sg->config->base_url.$sg->config->pathto_current_template ?>images/slide-tl.gif" alt="" />
31
        <img class="borderTR" src="<?php echo $sg->config->base_url.$sg->config->pathto_current_template ?>images/slide-tr.gif" alt="" />
32
        
33
        <table><tr><td>
34
          <?php echo $sg->gallery->images[$index]->thumbnailLink(); ?> 
35
        </td></tr></table>
36
        
37
        <div class="roundedCornerSpacer">&nbsp;</div>
38
      </div>
39
      <div class="bottomCorners">
40
        <img class="borderBL" src="<?php echo $sg->config->base_url.$sg->config->pathto_current_template ?>images/slide-bl.gif" alt="" />
41
        <img class="borderBR" src="<?php echo $sg->config->base_url.$sg->config->pathto_current_template ?>images/slide-br.gif" alt="" />
42
      </div>
43
    </div>
44
    <?php endfor; ?>
45
  
46
    </td>
47
    <td class="mr"></td>
48
  </tr>
49
  <tr>
50
    <td class="bl"></td>
51
    <td class="bm"></td>
52
    <td class="br"></td>
53
  </tr>
54
</table></div>
55
  
56
<p class="sgDetailsList">
57
<?php foreach($sg->gallery->detailsArray() as $key => $value): ?>
58
<strong><?php echo $key; ?>:</strong> <?php echo $value; ?><br />
59
<?php endforeach; ?>
60
</p>
photogallery/singapore.ini
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 = "modern"
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 = off
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 = 0
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"
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"
:@created_atf1421091962.1973541¡s:@expires_in0