File: config.inc.php

package info (click to toggle)
zoph 0.6-2.1etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 1,716 kB
  • ctags: 2,283
  • sloc: php: 8,560; perl: 1,601; sh: 760; sql: 382; python: 338; makefile: 71
file content (210 lines) | stat: -rw-r--r-- 7,231 bytes parent folder | download | duplicates (2)
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
<?php
/*
 * This file is part of Zoph.
 *
 * Zoph is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * 
 * Zoph is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * You should have received a copy of the GNU General Public License
 * along with Zoph; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */

    define('VERSION', '0.6');

    define('DB_HOST', 'localhost');
    define('DB_NAME', 'zoph');
    define('DB_USER', 'zoph_rw');
    define('DB_PASS', 'zoph_rw');
    define('DB_PREFIX', 'zoph_'); // prefix for tables, '' for none

    // Temporary addition until CSS sheet can be chosen from config page
    define('CSS_SHEET', 'css.php');

    define('USE_IMAGE_SERVICE', 1);
    define('IMAGE_DIR', "/var/lib/zoph/");
    // Only needed when imaga service is off:
    // define('WEB_IMAGE_DIR', "/images/"); // from webserver doc root

    // authentication method used from auth.inc.php
    // (this needs to be the name of a function in validator.inc.php)
    $VALIDATOR = 'default_validate';
    //$VALIDATOR = 'htpasswd_validate';
    //$VALIDATOR = 'php_validate';

    // Set this to 1 if you want to have your users (logon) over SSL.
    // Make sure you set ZOPH_URL and ZOPH_SECURE_URL as well.
    define('FORCE_SSL_LOGIN', 0);
    define('FORCE_SSL', 0);

    define('ZOPH_TITLE', "Zoph");

    define('LANG_DIR', "lang"); // where language files are stored

    define('EMAIL_PHOTOS', 1); // enable email photo feature

    // sent all emails also to this address
    // set to '' if not needed
    define('BCC_ADDRESS', '');

    // URL used in Notification EMail and for https logons
    // set to '' if not needed, example:
    // define('ZOPH_URL', 'http://myserver.com/zoph');
    // define('ZOPH_SECURE_URL', 'https://myserver.com/zoph');
    define('ZOPH_URL', '');
    define('ZOPH_SECURE_URL', '');


    // allow annotation of photos for emailing
    define('ANNOTATE_PHOTOS', 1);
    define('ANNOTATE_TEMP_DIR', '/tmp');
    define('ANNOTATE_TEMP_PREFIX', 'zoph');

    // Enable watermarking
    // Image service must be enabled to make this work!
    define('WATERMARKING', 0);
    // Watermark must be a GIF image, transparancy is honoured!
    // the filename is relative to the image root (IMAGE_DIR)
    define('WATERMARK', 'watermark.gif');

    // If set to 1, users can leave comments with photos
    define('ALLOW_COMMENTS', 0);


    // web import of photos
    define('CLIENT_WEB_IMPORT', 1);
    define('SERVER_WEB_IMPORT', 0);

    // Maximum filesize to be uploaded, in bytes:
    // Make sure you also change "upload_max_filesize" "post_max_size"
    // and possibly "max_execution_time" and "max_input_time" in php.ini
    define('MAX_UPLOAD', 10000000);
        
    // commands to use to expand uploaded archives.  set to 0 to disable.
    //define('UNZIP_CMD', 0);
    define('UNZIP_CMD', 'unzip');
    //define('UNTAR_CMD', 0);
    define('UNTAR_CMD', 'tar xvf');

    // directory to use to temporarily extract uploaded archives
    define('EXTRACT_DIR', '/tmp');

    // Remove zip or tar file after successful import
    define('REMOVE_ARCHIVE', 0);

    // destination path params for importing
    // "date(format)" will be expanded to today's date
    define('DEFAULT_DESTINATION_PATH', 'uploads/date(Y.m.d)');

    // Use dated dirs with web import 
    define('USE_DATED_DIRS', 0);
    // Use hierarchical dated dirs like 2005/12/21
    // This parameter is ignored when USE_DATED_DIRS is not set
    define('HIER_DATED_DIRS', 0);

    define('SHOW_DESTINATION_PATH', 0); // show for non admin users

    // let users rate photos
    define('ALLOW_RATINGS', 1);

    define('MAX_CRUMBS', 100);

    // max days for photos taken/modified X days ago pulldown
    define('MAX_DAYS_PAST', 30);

    // the maximum number of characters of a description to display
    // under a thumbnail (see also desc_thumbnail pref).  Set this
    // to 0 to disable this feature (and override a user's pref).
    define('MAX_THUMB_DESC', 40);

    // Maximum number of people that can be added to a photo at once.
    // Each user can set his own preference through the pref screen, with
    // The number below as max.
    define('MAX_PEOPLE_SLOTS', 10);

    // support for optgroups in many browsers seems incomplete or buggy
    define('GROUPED_PULLDOWN_SIZE', 9999);
    define('MAX_PULLDOWN_SIZE', 400);

    define('THUMB_SIZE', 120);
    define('MID_SIZE', 480);

    define('THUMB_PREFIX', 'thumb');
    define('MID_PREFIX', 'mid');

    // beginning with Zoph 0.3, all thumbnails may be jpegs.
    // however, if you wish to avoid regenerating thumbnails for
    // other types (gif, tiff, etc.), you can set this var to 1.
    define('MIXED_THUMBNAILS', 1);

    // the extension used for thumbnails.  this should correspond
    // to what is found in zophImport.pl.  this is ignored (for some
    // image types - jpg, gif, tif) if MIXED_THUMBNAILS is set.
    define('THUMB_EXTENSION', "jpg");

    // allow images to be rotated
    define('ALLOW_ROTATIONS', 1);
    define('ROTATE_CMD', 'convert');
    //define('ROTATE_CMD', 'jpegtran');
    // set to 1 to backup the original before it is rotated
    define('BACKUP_ORIGINAL', 1);
    // copy the original to a file with this prefix
    define('BACKUP_PREFIX', 'orig_');

    // width of the main table
    // May be in pixels ("px") or percent ("%").
    // As of v0.6, the entity is required.
    define('DEFAULT_TABLE_WIDTH', "600px");
    // define('DEFAULT_TABLE_WIDTH', "90%");

    // set to the id of a non admin user or to 0 to disable
    // note that this is a user_id, not a person_id
    define('DEFAULT_USER', 0);

    // if this is non-zero the people and places pages will default to
    // "show all" instead of "a".
    define('DEFAULT_SHOW_ALL', 1);

    // these two are for the importer
    define('IMPORT_UMASK', 022);
    define('DIR_MODE', 0755);

    define('DEBUG', 0);

    // default photo results ordering
    $DEFAULT_ORDER = "date";
    // default direction of ordering
    $DEFAULT_DIRECTION = "asc";

    // the following values are defaults that can be overriden
    // by a user's preferences
    $SHOW_BREADCRUMBS = 1;
    $MAX_CRUMBS_TO_SHOW = 8;
    $DEFAULT_ROWS = 3;
    $DEFAULT_COLS = 4;
    $MAX_PAGER_SIZE = 10;
    $RANDOM_PHOTO_MIN_RATING = 5;
    $TOP_N = 5;
    $SLIDESHOW_TIME = 5; // seconds

    $PAGE_BG_COLOR = "#ffffff";
    $TEXT_COLOR = "#000000";
    $LINK_COLOR = "#111111";
    $VLINK_COLOR = "#444444";
    $TABLE_BG_COLOR = "#ffffff";
    $TABLE_BORDER_COLOR = "#000000";
    $BREADCRUMB_BG_COLOR = "#ffffff";
    $TITLE_BG_COLOR = "#f0f0f0";
    $TITLE_FONT_COLOR = "#000000";
    $TAB_BG_COLOR = "#000000";
    $TAB_FONT_COLOR = "#ffffff";
    $SELECTED_TAB_BG_COLOR = "#c0c0c0";
    $SELECTED_TAB_FONT_COLOR = "#000000";

?>