-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
954 lines (818 loc) · 25.3 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
<?php
// $Id$
//
// config.php - Configuration file for Mig
//
// Copyright 2000-2005 Daniel M. Lowe <dan@tangledhelix.com>
// Copyright 2005-2016 Boris Wachtmeister
//
// https://mig.wcht.de/
//
// Lines starting with // are comments.
//
// Please see the files in the docs subdirectory, especially
// docs/text/install.txt (or docs/html/install.html if you prefer HTML).
//
//
// $pageTitle
// The page title (seen in the title bar of the browser).
//
// Defaults to "My Photo Album".
//
// Example:
// $pageTitle = "My Photo Album";
//
$pageTitle = "My Photo Album";
//
// $maintAddr
// Email address of the person who runs this album. This is the
// global setting. A per-folder maintAddr can be defined using the
// MaintAddr keyword in a mig.cf file.
//
// Defaults to "webmaster@mydomain.com".
//
// Example:
// $maintAddr = "webmaster@mydomain.com";
//
$maintAddr = "webmaster@mydomain.com";
//
// $homeLink
// "Home" link (optional) - a "home" page to "go back" to from the
// main page. Leave blank if you don't want one.
//
// No default.
//
// Example:
// $homeLink = "http://mydomain.com/";
//
$homeLink = "";
//
// $homeLabel
// "Home" link label (optional) - the link label associated with the
// $homeLink. Leave value at '' if you don't want one. If you leave
// this blank but $homeLink is set, then this will default to the value
// of $homeLink.
//
// No default.
//
// Example:
// $homeLabel = "My Home Page";
//
$homeLabel = "";
//
// $maxFolderColumns
// Maximum number of columns to use (how many folders across the
// screen in a single row) in folder lists.
//
// Defaults to 2.
//
// Example:
// $maxFolderColumns = 2;
//
$maxFolderColumns = 2;
//
// $maxThumbColumns
// Maximum number of columns to use (how many images across the
// screen in a single row) in thumbnail lists. (see also
// $maxThumbRows)
//
// Defaults to 4.
//
// Example:
// $maxThumbColumns = 4;
//
$maxThumbColumns = 4;
//
// $maxThumbRows
// Maximum number of rows to use (how many rows of thumbnails on the
// screen on a single page) in thumbnail views. The total number of
// images on one "page" is ($maxThumbColumns * $maxThumbRows),
// so by default, 20 images per page. Mig will turn a given
// gallery into a set of pages if there are more than 20 images
// in a gallery.
//
// If you don't want to use "pages" at all, set this to some
// very large value like 1000. If you pages of more than 20,
// increase the value of $maxThumbRows and/or $maxThumbColumns
// as appropriate.
//
// Defaults to 5.
//
// Example:
// $maxThumbRows = 5;
//
$maxThumbRows = 5;
//
// $useThumbSubdir
// Boolean to turn thumbnail subdirectories on or off.
// When this is set to TRUE, $markerType and $markerLabel are ignored.
//
// Defaults to TRUE.
//
// Example:
// $useThumbSubdir = TRUE;
//
$useThumbSubdir = TRUE;
//
// $thumbSubdir
// What subdirectory to use for thumbnails. This is ignored if
// $useThumbSubdir is set to FALSE.
//
// Defaults to "thumbs".
//
// Example:
// $thumbSubdir = "thumbs";
//
$thumbSubdir = "thumbs";
//
// $randomFolderThumbs
// If TRUE, instead of the generic folder icon, a represenative
// thumbnail from the folder is shown. If Mig is unable to find a
// thumbnail to use, it will use the generic folder icon instead.
// Unless there are folders whose subfolders and their subfolders
// and so on have no thumbnails, the generic folder icon should
// never be used.
//
// Defaults to FALSE.
//
// Example:
// $randomFolderThumbs = FALSE;
//
$randomFolderThumbs = FALSE;
//
// $useRealRandThumbs
// If TRUE, a real random selection is done. It used to be that
// Mig would just look for the first thumbnail it could find and
// use that. A lot of people, including the author, thought that
// sucked, so $useRealRandThumbs was introduced which will find
// all available thumbnails and pick one randomly each time the
// script is called.
//
// This obviously results in more I/O and on large galleries could
// cause a problem with execution time. So I didn't "fix the bug"
// entirely, I made it an optional behavior. By default, real
// random behavior is used, but it can be turned off by setting this
// to FALSE.
//
// Generally, you want this to be TRUE unless you have trouble with
// it (most likely to happen if you have a slow server, a busy server,
// slow disks, or very large galleries).
//
// And of course this option is ignored if $randomFolderThumbs is
// set to FALSE.
//
// Defaults to TRUE.
//
// Example:
// $useRealRandThumbs = TRUE;
//
$useRealRandThumbs = TRUE;
//
// $useLargeImages
// Boolean to turn large image support on or off.
//
// Only turn this feature on if you intend to have three sizes of
// image - the thumbnail, the regular size version, and a full-size
// "large" version, such as the original file from the camera. Most
// users will want to leave this turned off.
//
// If set to TRUE, Mig will look for a "large" version of the image
// in $largeSubdir. If one is found, a link will be generated
// pointing to the large image.
//
// If $largeLinkFromMedium is TRUE, clicking on the medium image
// will also take the user to the large image. If you don't want
// a link printed, but just want to have people click on the medium
// image only, remove the %%largeLink%% tag from your image.html
// or mig_image.php template file.
//
// To use this feature, make sure the following tags are defined in
// your image.html or mig_image.php template:
//
// %%largeLink%% [optional, see above]
// %%largeHrefStart%%
// %%largeHrefEnd%%
// %%largeLinkBorder%%
//
// Also, copy large.html to your templates folder.
//
// Defaults to FALSE.
//
// Example:
// $useLargeImages = FALSE;
//
$useLargeImages = FALSE;
//
// $largeSubdir
// Name of subdirectory to use for "large" images. This option is
// ignored if $useLargeImages is FALSE.
//
// Defaults to "large".
//
// Example:
// $largeSubdir = "large";
//
$largeSubdir = "large";
//
// $largeLinkFromMedium
// If TRUE, when viewing a normal image, clicking the image will
// take you to the large version of the image (if present).
//
// If FALSE, clicking on the normal image will do nothing, regardless
// of the presence or absence a large version.
//
// In either case, if the template tag %%largeLink%% is used, a link
// to the image will be printed along with the other navigational
// links on the page.
//
// Defaults to TRUE.
//
// Example:
// $largeLinkFromMedium = TRUE;
//
$largeLinkFromMedium = TRUE;
//
// $largeLinkUseBorders
// When $largeLinkFromMedium is TRUE, this setting determines whether
// to show the link border around a medium image or not. If TRUE,
// the border is shown, if FALSE it is not shown.
//
// Defaults to FALSE.
//
// Example:
// $largeLinkUseBorders = FALSE;
//
$largeLinkUseBorders = FALSE;
//
// $folderNameLength
// If $randomFolderThumbs is TRUE, folder names will be truncated
// if they are longer than $folderNameLength characters. This is
// done to keep the tables formatted nicely. This option is ignored
// if $randomFolderThumbs is FALSE.
//
// Defaults to 15.
//
// Example:
// $folderNameLength = 15;
//
$folderNameLength = 15;
//
// $markerType
// Should I use a prefix or a suffix for thumbnails? This deals with
// the old way of doing thumbnail naming (i.e. img_4900_th.jpg
// instead of thumbs/img_4900.jpg).
//
// Valid values are 'prefix' and 'suffix'. Ignored if $useThumbSubdir
// is TRUE.
//
// If set to 'suffix', thumbnail will be named as in img_4900_th.jpg.
// If set to 'prefix', it will be named as in th_img_4900.jpg.
//
// This option is over-ridden by $useThumbSubdir. Using thumbnail
// subdirectories is recommended, so avoid this option (along with
// $markerLabel) if possible.
//
// Defaults to "suffix".
//
// Example:
// $markerType = "suffix";
//
$markerType = "suffix";
//
// $markerLabel
// String to use as marker for thumbnails. Ignored if $useThumbSubdir
// is TRUE.
//
// This deals with the old way of doing thumbnail naming (i.e.
// img_4900_th.jpg vs. thumbs/img_4900.jpg).
//
// The "th" part in the example is what is set by $markerLabel.
// So if you set $markerLabel to "small" then the thumbnail would
// instead be img_4900_small.jpg.
//
// This option is over-ridden by $useThumbSubdir. Using thumbnail
// subdirectories is recommended, so avoid this option and the option
// $markerType if possible.
//
// Defaults to "th".
//
// Example:
// $markerLabel = "th";
//
$markerLabel = "th";
//
// $suppressAltTags
// Boolean to use ALT tags or not in thumbnail lists.
// If you don't want image descriptions in ALT tags in thumbnail
// lists, set to TRUE.
//
// Defaults to FALSE.
//
// Example:
// $suppressAltTags = FALSE;
//
$suppressAltTags = FALSE;
//
// $suppressImageInfo
// Boolean to turn image information in thumbnail pages on or off.
// To suppress information below each thumbnail such as image size,
// image width/height, set to TRUE.
//
// Defaults to FALSE.
//
// Example:
// $suppressImageInfo = FALSE;
//
// NOTE: $suppressImageInfo is now replaced by $fileInfoFormatString and will
// be removed in Mig 2.0. If you don't want image information in
// thumbnail pages just set all $fileInfoFormatString to ""
//
$suppressImageInfo = FALSE;
//
// $fileInfoFormatString
// Defines the format of the ImageInfo:
//
// Valid items are:
// %n = Filename
// %s = FileSize
// %i = ImageSize
//
// Examples:
// Everything is shown (old mig behaviour)
// $fileInfoFormatString = "%n<br />(%i, %s)";
//
// Default to %n<br>(%i, %s)
//
$fileInfoFormatString['image'] = "%n<br />(%i, %s)";
$fileInfoFormatString['audio'] = "%n<br />(%s)";
$fileInfoFormatString['video'] = "%n<br />(%s)";
//
// $prevFormatString
// $nextFormatString
// Defines the format of the "previous" and
// "next image" links in the image-view.
//
// Valid items are:
// %l = "previous image" and "next image" text defined
// in the language-section
//
// Note:
// The whole String is clickable. If you don't want all
// to click on, please edit the templates/image.html-file.
//
// Examples:
// Show something like "<<< Previous"
// $prevFormatString = "<<< %l";
//
// Show just an image
// $prevFormatString = "<img src=\"path/to/prev.gif\" width=\"20\" height=\"20\" alt=\"%l\">";
//
//
// Default to "%l"
$prevFormatString ="%l";
$nextFormatString ="%l";
//
// $showShortOnThumbPage
// If set to TRUE, shows any short comment on the thumbnail page.
// Note that enabling this can lead to /very/ ugly formatting
// currently due to the way tables are laid out, if you forget
// to set a short comment on an image, but a long one exists.
//
// Defaults to FALSE.
//
// Example:
// $showShortOnThumbPage = FALSE;
//
$showShortOnThumbPage = FALSE;
//
// $omitImageName
// If set to FALSE, the image name is shown in the "path" line
// at the top of each page. If set TRUE, the image name is
// omitted. The "(#x of y)" in the same line in image views
// is not affected by this setting. If you don't want that to
// show up, get rid of %%currPos%% in your image.html template.
//
// Defaults to FALSE.
//
// Example:
// $omitImageName = FALSE;
//
$omitImageName = FALSE;
//
// $viewFolderCount
// Boolean to determine whether or not to show number of images and
// subdirectories in a given folder when in thumbnail views.
//
// Defaults to FALSE.
//
// Example:
// $viewFolderCount = FALSE;
//
$viewFolderCount = FALSE;
//
// $noThumbs
// Boolean to define whether to suppress thumbnails altogether or not.
// To not use thumbnails in your galleries at all, set to TRUE.
//
// Defaults to FALSE.
//
// Example:
// $noThumbs = FALSE;
//
$noThumbs = FALSE;
//
// $thumbExt
// If you wish you can define a filetype for all thumbnails. For
// example, all thumbnails could be PNG files. Define the extension
// here (without the leading "."). Case matters, so don't define
// 'png' and then upload foo.PNG files.
//
// No default.
//
// Example:
// $thumbExt = "png";
//
$thumbExt = "";
//
// $sortType
// Sorting type. Possible values are:
//
// default - Alphanumeric sorting
// bydate-ascend - By date, ascending (oldest is first)
// bydate-descend - By date, descending (newest is first)
//
// Note that if you define a <Sort> block in a mig.cf file, that will
// override this setting.
//
// Defaults to "default".
//
// Example:
// $sortType = "default";
//
$sortType = "default";
//
// $folderSortType
// If present, overrides the value of $sortType when sorting folders.
// Has the same possible values as $sortType (see above).
//
// Defaults to "default".
//
// Example:
// $folderSortType = "default";
//
$folderSortType = "default";
//
// $imagePopup
// If $imagePopup is set to TRUE, any time a thumbnail is clicked on,
// a pop-up window will be opened. See also $imagePopType,
// $imagePopLocationBar, $imagePopMenuBar, and $imagePopToolBar.
//
// Defaults to FALSE.
//
// Example:
// $imagePopup = FALSE;
//
$imagePopup = FALSE;
//
// $imagePopType
// If $imagePopType is set to 'reuse' then the same window will be used
// for every image. Otherwise you'll get a new window for every image.
// Ignored if $imagePopup is set to FALSE.
//
// Defaults to "reuse".
//
// Example:
// $imagePopType = "reuse";
//
$imagePopType = "reuse";
//
// $imagePopLocationBar
// If TRUE, a location bar will be visible in pop-up windows.
// A location bar is the box where one can type a URL into a
// web browser.
//
// Defaults to FALSE.
//
// Example:
// $imagePopLocationBar = FALSE;
//
$imagePopLocationBar = FALSE;
//
// $imagePopToolBar
// If TRUE, a toolbar will be visible in pop-up windows.
// This is sometimes called the navigation bar (where the back,
// reload buttons are found, and so forth).
//
// Defaults to FALSE.
//
// Example:
// $imagePopToolBar = FALSE;
//
$imagePopToolBar = FALSE;
//
// $imagePopMaxWidth
// The maximum initial width for a popup window (in pixels).
//
// Defaults to 640.
//
// Example:
// $imagePopMaxWidth = 640;
//
//
$imagePopMaxWidth = 640;
//
// $imagePopMaxHeight
// The maximum initial height for a popup window (in pixels).
//
// Defaults to 480.
//
// Example:
// $imagePopMaxHeight = 480;
//
//
$imagePopMaxHeight = 480;
//
// $commentFilePerImage
// If $commentFilePerImage is set to TRUE, then instead of using just
// the mig.cf file to contain comments, each image file will have a
// comment in its own text file (i.e. img_4900.jpg will have a comment
// file, named img_4900.txt, in the same directory).
//
// To have "normal" processing (all comments in mig.cf), set to FALSE.
//
// Defaults to FALSE.
//
// Example:
// $commentFilePerImage = FALSE;
//
$commentFilePerImage = FALSE;
//
// $commentFileShortComments
// If $commentFileShortComments is set to TRUE, and $commentFilePerImage
// is being used, the first line of a comment file will be used as a
// short comment (for ALT tags). The remaining lines will be used as
// the normal ("long") comment. If a comment file contains only one
// line, this line is used for both comments.
//
// To disable short comments and use the entire file for both, set
// $commentFileShortComments to FALSE. This option is ignored if
// $commentFilePerImage is FALSE.
//
// Defaults to FALSE.
//
// Example:
// $commentFileShortComments = FALSE;
//
$commentFileShortComments = FALSE;
//
// $ignoreDotDirectories
// If $ignoreDotDirectories is set to TRUE, any directory with a
// name starting with '.' (dot or period) will be ignored while
// looking at building folder lists.
//
// Defaults to FALSE.
//
// Example:
// $ignoreDotDirectories = FALSE;
//
$ignoreDotDirectories = FALSE;
//
// $exifFormatString
// Defines the display format for EXIF data blocks. Sections are
// separated by | characters. For example:
//
// "|%c<hr>|%M %D %Y, %T - |%m<br>|%l |%s |%a|"
//
// Each block is contained between two | characters. If any one
// item inside the block can be expanded, the block will be printed.
// If not, it will be ignored. (This way if you have some images
// with comments, some without, it won't always print that <HR>
// for example... it will ignore it... same with the hyphen after
// the timestamp, or the comma in between the year and the time).
//
// Valid items are:
// %a Aperture
// %c Embedded comment
// %f Flash used
// %i ISO equivalent
// %l Focal length
// %m Camera model
// %s Shutter speed
// %Y Year
// %M Month (alphabetic, i.e. "Mar")
// %D Day
// %T Time (i.e. "12:54PM")
//
// (Dates and times are original shooting date and time, not the
// timestamp of the file.)
//
// So in the above example, for instance, if there is an embedded
// comment, that comment would be printed followed by "<HR>". But
// if no comment is present for the image, nothing will be printed.
// If the month, day, year, or time (or all of them) can be expanded,
// that block will print. Otherwise it will be ignored. And so on.
//
// The default (shown below) might expand to look something like this
// on your screen:
//
// This is a comment
// --------------------------------------
// Jan 04 2002, 12:54PM - Canon EOS D30
// ISO 100 85mm 1/45 f5.6 (flash used)
//
// Defaults to "|%c|" - which is just embedded comments.
//
// Examples:
//
// Just the date and time:
// $exifFormatString = "|%M %D %Y, %T|";
//
// What used to be called $viewCamInfo would look like this:
// $exifFormatString = "|%c<hr>|%m<br>|ISO %i |%l |%s |%a |(%f)|";
//
// What used to be $viewCamInfo and $viewDateInfo together is:
// "|%c<hr>|%M %D %Y, %T - |%m<br>|ISO %i |%l |%s |%a |(%f)|";
//
$exifFormatString = "|%c|";
//
// $mig_language
// What language to use.
//
// Currently available languages:
// en English
// fr French
// de German
// no Norwegian
// br Portugese
// fi Finnish
// ro Romanian
// ru Russian (Windows-1251)
// koi8r Russian (KOI8-R)
// tr Turkish
// se Swedish
// dk Danish
// it Italian
// es Spanish
// sk Slovak
// nl Dutch
// pl Polish
// ee Estonian
// jp Japanese (ISO-2022-JP)
// pliso Polish ISO-8859-2
// zh Traditional Chinese (big5)
// cz Czech
//
// You can also define a language by using mig_dl in the URL. Just
// add a mig_dl={lang} to the query string. For example, if you have
// a default language of english (en) you can have a spanish translation
// by adding mig_dl=es to your URL as a parameter. Examples:
//
// http://mysite.com/gallery/index.php?currDir=./My_Stuff
//
// Change to:
//
// http://mysite.com/gallery/index.php?currDir=./My_Stuff&mig_dl=es
//
// In this way you can have multiple translations of your site by just
// having a different hyperlink for each one. See the install document
// for more information.
//
// See the template document for information on the 'newLang' template
// keyword which lets you easily build links into your templates for
// other languages.
//
// If you want to translate Mig into another language, please contact
// Boris via email (sirro.mig `at` gmail.com).
//
// (Note: this variable used to be called $language, but that is
// deprecated and it should be used as $mig_language as of
// version 1.2.2)
//
// Defaults to "en".
//
// Example:
// $mig_language = "en";
//
$mig_language = "en";
//
// $jumpMap
// You can add things to your "jump" map - see the "jump" document.
//
// Default is no jump map.
//
// Example:
// $jumpMap["example"] = "currDir=./Mig_Example_Gallery";
//
// -----------------------------------------------------------------
// Charset / Encoding
// -----------------------------------------------------------------
//
// $migCharset
// The charset that is used by mig
//
// Defaults to UTF-8
//
// Note: the charset in $httpContentType was "us-ascii" before the
// introduction of this setting with Mig 1.7.0
//
$migCharset = 'UTF-8';
// -----------------------------------------------------------------
// HTTP-Headers
// -----------------------------------------------------------------
//
// $httpContentType
// This sets the values, that is send as Content-Type
// in the HTTP-header
//
// Defaults to "text/html; charset=$migCharset"
//
// Examples:
// $httpContentType = "text/html; charset=$migCharset";
//
// if(strstr($_SERVER['HTTP_ACCEPT'],'application/xhtml+xml')) {
// $httpContentType = "application/xhtml+xml; charset=$migCharset";
// }
$httpContentType = "text/html; charset=$migCharset";
// -----------------------------------------------------------------
// FILE- AND DIRNAME REGEXPS
// -----------------------------------------------------------------
//
// These two variables control which file- and directorynames are allowed.
// Be careful when changing these, special characters like / or < and >
// may lead into possible XSS-exploits or exposure of system information.
//
// Since Mig 1.7.0 it SHOULD be safe to allow all filenames without causing
// XSS or directory traversals, but the changes have not been peer reviewed
// yet. If you want to give the code a review please let me know.
//
// Examples:
// $imageFilenameRegexpr = '=^[\._-\d\w \']*$=';
// $currDirNameRegexpr = '=^\.?[/_-\d\w\(\)\'%]*$=';
$imageFilenameRegexpr = '=^[^<>/]*$=';
$currDirNameRegexpr = '=^([^<>]|\.\.)*$=';
// -----------------------------------------------------------------
// SHOW TOTAL FILE-COUNT
// -----------------------------------------------------------------
//
// Mig 1.4.0 introduced an error which caused the "total_images"
// string (like "Showing images 21-40 of 47 total") to not be
// displayed anymore. This was fixed in 1.5.3.
// If you want the old behavior back where this string was not
// displayed, please set this to false.
//
// $showTotalImagesString = true;
// -----------------------------------------------------------------
// MODIFYING THE INCLUDE PATH
// -----------------------------------------------------------------
//
// $pathConvertFlag, $pathConvertRegex and $pathConvertTarget
// have moved to index.php. This is because they are used to
// include config.php, so obviously they can't be INSIDE it.
//
// -----------------------------------------------------------------
// FILE EXTENSION MAPPINGS
// -----------------------------------------------------------------
//
// These options allow to configure which file-extensions are mapped
// to which file type. You can use the options to add currently
// unhandled or new file formats.
//
// The order in which the extension-lists are checked is
// 1. $image_extensions
// 2. $video_extensions
// 3. $audio_extensions
// so if you have the same in extension in both $image_extensions
// and $video_extensions, then Mig will use "image" for this extension
// $image_extensions = array('jpg', 'jpeg', 'gif', 'png');
// $video_extensions = array();
// $audio_extensions = array();
// -----------------------------------------------------------------
// OPEN BASE DIR
// -----------------------------------------------------------------
//
// This option will reset PHP's open_basedir setting to the basedir
// of mig itself at the earliest possible time.
//
// Note: this defaults to "false" when unset, but this default config
// sets it to true as a safe default. Usually you should not need to
// disable this unless you have a special filesystem setup, in which
// you should prefer to specify additional directories with the
// option $migOpenBasedirExtraDirs (which is an array of paths)
//
// Example:
// $migOpenBasedir = TRUE;
// $migOpenBasedirExtraDirs = array('/path/to/special/dir', '/path/to/other/dir');
$migOpenBasedir = TRUE;
//$migOpenBasedirExtraDirs = array();
// -----------------------------------------------------------------
// ERROR REPORTING
// -----------------------------------------------------------------
//
// By default the error-reporting level is set so that notices are
// not displayed, because otherwise the legacy code could generate
// lots of notices for undefined variables.
// If you want to go ahead and fix them, feel free to configure
// just E_ALL.
//
// $error_reporting = E_ALL & ~E_NOTICE;
?>