Luxbum.net - Script de galerie photo

root/trunk/conf/config.dist.php

Revision 324, 4.5 kB (checked in by nicolas, 8 months ago)

fucking shit of utf8

Line 
1 <?php
2 /*
3  # ***** BEGIN LICENSE BLOCK *****
4  # This file is part of Plume Framework, a simple PHP Application Framework.
5  # Copyright (C) 2001-2006 Loic d'Anterroches and contributors.
6  #
7  # Plume Framework is free software; you can redistribute it and/or modify
8  # it under the terms of the GNU Lesser General Public License as published by
9  # the Free Software Foundation; either version 2.1 of the License, or
10  # (at your option) any later version.
11  #
12  # Plume Framework is distributed in the hope that it will be useful,
13  # but WITHOUT ANY WARRANTY; without even the implied warranty of
14  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  # GNU Lesser General Public License for more details.
16  #
17  # You should have received a copy of the GNU Lesser General Public License
18  # along with this program; if not, write to the Free Software
19  # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
20  #
21  # ***** END LICENSE BLOCK ***** */
22
23 $cfg = array();
24
25 /******************************************************************
26   Base configuration
27   Must Be edited
28 **/
29
30 // Set the base url of the installed luxbum.
31 // /!\ Warning : the tail / is needed
32 $cfg['url_base'] = 'http://www.mydomain.com/path/to/luxbum/';
33
34 // Set the template to use ;
35 // Choices : luxbum / photoblog
36 $cfg['template'] = 'luxbum';
37
38 // Set the color theme of the selected template
39 $cfg['template_theme'] = 'light';
40
41 // Set the name of the gallery. It will be displayed in
42 // the title of all the pages
43 $cfg['gallery_name'] = 'My gallery name';
44
45
46 /******************************************************************
47   Base configuration
48   Can be edited
49 **/
50 // Set the index file so that luxbum can be more easily integrated
51 $cfg['index_file'] = 'index.php';
52
53 // Set the manager file so that luxbum can be more easily integrated
54 $cfg['manager_file'] = 'manager.php';
55
56 // Use rewrite rules to generate url's. The url looks like
57 // to be a path to a real file, but it doesn't.
58 // When disabled, a '?/' is displayed in the url
59 $cfg['use_rewrite'] = false;
60
61 // Set the date format to display dates in luxbum.
62 $cfg['date_format'] = '%A %e %B %Y';
63
64 // Set the min size in byte to generate a preview image
65 $cfg['min_size_for_preview'] = 0;
66
67 // ...
68 $cfg['max_file_size'] = 2000;
69
70 // Allow meta data
71 // Choices : true / false
72 $cfg['show_meta'] = true;
73
74 // Allow comments
75 // Choices : true / false
76 $cfg['show_comment'] = true;
77
78 // Allow slideshow
79 // Choices : true / false
80 $cfg['show_slideshow'] = true;
81
82 // create a fading effect into two images on the slideshow page
83 // Choices : true / false
84 $cfg['slideshow_fading'] = true;
85
86 // Time between two images on the slideshow page
87 $cfg['slideshow_time'] = 4;
88
89 // Allow selections
90 // Choices : true / false
91 $cfg['show_selection'] = true;
92
93 // Allow to download the selection
94 // Choices : true / false
95 $cfg['allow_dl_selection'] = false;
96
97 // Driver to use to generate thumbs
98 // Choices : gd / imagemagick
99 $cfg['image_generation_driver'] = 'gd';
100
101
102 /******************************************************************
103   Internal configuration
104   MUST NOT BE EDITED. Don't change anything bellow this line !!!!!!!!
105 **/
106 $cfg['color_theme_path'] = TEMPLATE_DIR.$cfg['template'].'/themes/'.$cfg['template_theme'];
107
108 // Set the debug variable to true to force the recompilation of all
109 // the templates each time during development
110 $cfg['debug'] = false;
111
112 // Temporary folder where the script is writing the compiled templates,
113 // cached data and other temporary resources.
114 // It must be writeable by your webserver instance.
115 // It is mandatory if you are using the template system.
116 $cfg['tmp_folder'] = dirname(__FILE__).'/../tmp';
117
118 // The folder in which the templates of the application are located.
119 $cfg['template_folders'] = array(dirname(__FILE__).'/../'.TEMPLATE_DIR.$cfg['template']);
120
121 // Default mimetype of the document your application is sending.
122 // It can be overwritten for a given response if needed.
123 $cfg['mimetype'] = 'text/html';
124
125 // url to index file (not necessary index.php)
126 $cfg['url_index'] = $cfg['url_base'] . $cfg['index_file'];
127
128 // url to manager file (not necessary manager.php)
129 $cfg['url_manager'] = $cfg['url_base'] . $cfg['manager_file'];
130
131 // Middleware to load
132 if ($cfg['debug']) {
133    $cfg['middleware_classes'] = array('Pluf_Middleware_Debug',
134                                       'Pluf_Middleware_Tidy');
135 }
136 else {
137    $cfg['middleware_classes'] = array();
138 }
139
140 // Allowed tags
141 $cfg['template_tags'] = array(
142     'style'          => 'Pluf_Template_Tag_Style',
143     'NavigationMenu' => 'Pluf_Template_Tag_NavigationMenu'
144 );
145
146
147 // Don't forget to return the array
148 return $cfg;
149
150 ?>
Note: See TracBrowser for help on using the browser.