00001 ; <?php exit();
00002 ; DO NOT DELETE THE ABOVE LINE!!!
00003 ; Doing so will expose this configuration file through your web site!
00004 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
00005
00006 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
00007 ;
00008 ; config.TEMPLATE.inc.php
00009 ;
00010 ; Copyright (c) 2003-2012 John Willinsky
00011 ; Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
00012 ;
00013 ; OMP Configuration settings.
00014 ; Rename config.TEMPLATE.inc.php to config.inc.php to use.
00015 ;
00016 ;
00017 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
00018
00019
00020 ;;;;;;;;;;;;;;;;;;;;
00021 ; General Settings ;
00022 ;;;;;;;;;;;;;;;;;;;;
00023
00024 [general]
00025
00026 ; Set this to On once the system has been installed
00027 ; (This is generally done automatically by the installer)
00028 installed = Off
00029
00030 ; The canonical URL to the OMP installation (excluding the trailing slash)
00031 base_url = "http://pkp.sfu.ca/omp"
00032
00033 ; Path to the registry directory (containing various settings files)
00034 ; Although the files in this directory generally do not contain any
00035 ; sensitive information, the directory can be moved to a location that
00036 ; is not web-accessible if desired
00037 registry_dir = registry
00038
00039 ; Session cookie name
00040 session_cookie_name = OMPSID
00041
00042 ; Number of days to save login cookie for if user selects to remember
00043 ; (set to 0 to force expiration at end of current session)
00044 session_lifetime = 30
00045
00046 ; Enable support for running scheduled tasks
00047 ; Set this to On if you have set up the scheduled tasks script to
00048 ; execute periodically
00049 scheduled_tasks = Off
00050
00051 ; Short and long date formats
00052 date_format_trunc = "%m-%d"
00053 date_format_short = "%Y-%m-%d"
00054 date_format_long = "%B %e, %Y"
00055 datetime_format_short = "%Y-%m-%d %I:%M %p"
00056 datetime_format_long = "%B %e, %Y - %I:%M %p"
00057 time_format = "%I:%M %p"
00058
00059 ; Use URL parameters instead of CGI PATH_INFO. This is useful for
00060 ; broken server setups that don't support the PATH_INFO environment
00061 ; variable.
00062 disable_path_info = Off
00063
00064 ; Use fopen(...) for URL-based reads. Modern versions of dspace
00065 ; will not accept requests using fopen, as it does not provide a
00066 ; User Agent, so this option is disabled by default. If this feature
00067 ; is disabled by PHP's configuration, this setting will be ignored.
00068 allow_url_fopen = Off
00069
00070 ; Base URL override settings: Entries like the following examples can
00071 ; be used to override the base URLs used by OMP. If you want to use a
00072 ; proxy to rewrite URLs to OMP, configure your proxy's URL here.
00073 ; Syntax: base_url[press_path] = http://www.myUrl.com
00074 ; To override URLs that aren't part of a particular press, use a
00075 ; press_path of "index".
00076 ; Examples:
00077 ; base_url[index] = http:
00078 ; base_url[myPress] = http:
00079 ; base_url[myOtherPress] = http:
00080
00081 ; Allow javascript files to be served through a content delivery network (set to off to use local files)
00082 enable_cdn = On
00083
00084 ; Set the following parameter to off if you want to work with the uncompiled (non-minified) JavaScript
00085 ; source for debugging or if you are working off a development branch without compiled JavaScript.
00086 enable_minified = Off
00087
00088 ;;;;;;;;;;;;;;;;;;;;;
00089 ; Database Settings ;
00090 ;;;;;;;;;;;;;;;;;;;;;
00091
00092 [database]
00093
00094 driver = mysql
00095 host = localhost
00096 username = omp
00097 password = omp
00098 name = omp
00099
00100 ; Enable persistent connections (recommended)
00101 persistent = Off
00102
00103 ; Enable database debug output (very verbose!)
00104 debug = Off
00105
00106 ;;;;;;;;;;;;;;;;;;
00107 ; Cache Settings ;
00108 ;;;;;;;;;;;;;;;;;;
00109
00110 [cache]
00111
00112 ; The type of data caching to use. Options are:
00113 ; - memcache: Use the memcache server configured below
00114 ; - file: Use file-based caching; configured below
00115 ; - none: Use no caching. This may be extremely slow.
00116 ; This setting affects locale data, press settings, and plugin settings.
00117
00118 cache = file
00119
00120 ; Enable memcache support
00121 memcache_hostname = localhost
00122 memcache_port = 11211
00123
00124 ; For site visitors who are not logged in, many pages are often entirely
00125 ; static (e.g. About, the home page, etc). If the option below is enabled,
00126 ; these pages will be cached in local flat files for the number of hours
00127 ; specified in the web_cache_hours option. This will cut down on server
00128 ; overhead for many requests, but should be used with caution because:
00129 ; 1) Things like press metadata changes will not be reflected in cached
00130 ; data until the cache expires or is cleared, and
00131 ; 2) This caching WILL NOT RESPECT DOMAIN-BASED SUBSCRIPTIONS.
00132 ; However, for situations like hosting high-volume open access presses, it's
00133 ; an easy way of decreasing server load.
00134
00135 web_cache = Off
00136 web_cache_hours = 1
00137
00138
00139 ;;;;;;;;;;;;;;;;;;;;;;;;;
00140 ; Localization Settings ;
00141 ;;;;;;;;;;;;;;;;;;;;;;;;;
00142
00143 [i18n]
00144
00145 ; Default locale
00146 locale = en_US
00147
00148 ; Client output/input character set
00149 client_charset = utf-8
00150
00151 ; Database connection character set
00152 ; Must be set to "Off" if not supported by the database server
00153 ; If enabled, must be the same character set as "client_charset"
00154 ; (although the actual name may differ slightly depending on the server)
00155 connection_charset = Off
00156
00157 ; Database storage character set
00158 ; Must be set to "Off" if not supported by the database server
00159 database_charset = Off
00160
00161 ; Enable character normalization to utf-8 (recommended)
00162 ; If disabled, strings will be passed through in their native encoding
00163 charset_normalization = Off
00164
00165 ;;;;;;;;;;;;;;;;;
00166 ; File Settings ;
00167 ;;;;;;;;;;;;;;;;;
00168
00169 [files]
00170
00171 ; Complete path to directory to store uploaded files
00172 ; (This directory should not be directly web-accessible)
00173 ; Windows users should use forward slashes
00174 files_dir = files
00175
00176 ; Path to the directory to store public uploaded files
00177 ; (This directory should be web-accessible and the specified path
00178 ; should be relative to the base OMP directory)
00179 ; Windows users should use forward slashes
00180 public_files_dir = public
00181
00182 ; Permissions mask for created files and directories
00183 umask = 0022
00184
00185
00186 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;
00187 ; Fileinfo (MIME) Settings ;
00188 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;
00189
00190 [finfo]
00191 mime_database_path = /etc/magic.mime
00192
00193
00194 ;;;;;;;;;;;;;;;;;;;;;
00195 ; Security Settings ;
00196 ;;;;;;;;;;;;;;;;;;;;;
00197
00198 [security]
00199
00200 ; Force SSL connections site-wide
00201 force_ssl = Off
00202
00203 ; Force SSL connections for login only
00204 force_login_ssl = Off
00205
00206 ; This check will invalidate a session if the user's IP address changes.
00207 ; Enabling this option provides some amount of additional security, but may
00208 ; cause problems for users behind a proxy farm (e.g., AOL).
00209 session_check_ip = Off
00210
00211 ; The encryption (hashing) algorithm to use for encrypting user passwords
00212 ; Valid values are: md5, sha1
00213 ; Note that sha1 requires PHP >= 4.3.0
00214 encryption = md5
00215
00216 ; Allowed HTML tags for fields that permit restricted HTML.
00217 ; For PHP 5.0.5 and greater, allowed attributes must be specified individually
00218 ; e.g. <img src|alt> to allow "src" and "alt" attributes. Unspecified
00219 ; attributes will be stripped. For PHP below 5.0.5 attributes may not be
00220 ; specified in this way.
00221 allowed_html = "<a href|target> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <b> <i> <u> <img src|alt> <sup> <sub> <br> <p>"
00222
00223 ; Prevent VIM from attempting to highlight the rest of the config file
00224 ; with unclosed tags:
00225 ; </p></sub></sup></u></i></b></dd></dt></dl></li></ol></ul></code></cite></strong></em></a>
00226
00227
00228 ;Is implicit authentication enabled or not
00229
00230 ;implicit_auth = On
00231
00232 ;Implicit Auth Header Variables
00233
00234 ;implicit_auth_header_first_name = HTTP_TDL_GIVENNAME
00235 ;implicit_auth_header_last_name = HTTP_TDL_SN
00236 ;implicit_auth_header_email = HTTP_TDL_MAIL
00237 ;implicit_auth_header_phone = HTTP_TDL_TELEPHONENUMBER
00238 ;implicit_auth_header_initials = HTTP_TDL_METADATA_INITIALS
00239 ;implicit_auth_header_mailing_address = HTTP_TDL_METADATA_TDLHOMEPOSTALADDRESS
00240 ;implicit_auth_header_uin = HTTP_TDL_TDLUID
00241
00242 ; A space delimited list of uins to make admin
00243 ;implicit_auth_admin_list = "100000040@tdl.org 85B7FA892DAA90F7@utexas.edu 100000012@tdl.org"
00244
00245 ; URL of the implicit auth 'Way Finder' page. See pages/login/LoginHandler.inc.php for usage.
00246
00247 ;implicit_auth_wayf_url = "/Shibboleth.sso/wayf"
00248
00249
00250
00251 ;;;;;;;;;;;;;;;;;;
00252 ; Email Settings ;
00253 ;;;;;;;;;;;;;;;;;;
00254
00255 [email]
00256
00257 ; Use SMTP for sending mail instead of mail()
00258 ; smtp = On
00259
00260 ; SMTP server settings
00261 ; smtp_server = mail.example.com
00262 ; smtp_port = 25
00263
00264 ; Enable SMTP authentication
00265 ; Supported mechanisms: PLAIN, LOGIN, CRAM-MD5, and DIGEST-MD5
00266 ; smtp_auth = PLAIN
00267 ; smtp_username = username
00268 ; smtp_password = password
00269
00270 ; Allow envelope sender to be specified
00271 ; (may not be possible with some server configurations)
00272 ; allow_envelope_sender = Off
00273
00274 ; Default envelope sender to use if none is specified elsewhere
00275 ; default_envelope_sender = my_address@my_host.com
00276
00277 ; Enable attachments in the various "Send Email" pages.
00278 ; (Disabling here will not disable attachments on features that
00279 ; require them, e.g. attachment-based reviews)
00280 enable_attachments = On
00281
00282 ; Amount of time required between attempts to send non-editorial emails
00283 ; in seconds. This can be used to help prevent email relaying via OMP.
00284 time_between_emails = 3600
00285
00286 ; Maximum number of recipients that can be included in a single email
00287 ; (either as To:, Cc:, or Bcc: addresses) for a non-priveleged user
00288 max_recipients = 10
00289
00290 ; Maximum number of days before an unvalidated account expires and is deleted
00291 validation_timeout = 14
00292
00293
00294 ;;;;;;;;;;;;;;;;;;;
00295 ; Search Settings ;
00296 ;;;;;;;;;;;;;;;;;;;
00297
00298 [search]
00299
00300 ; Minimum indexed word length
00301 min_word_length = 3
00302
00303 ; The maximum number of search results fetched per keyword. These results
00304 ; are fetched and merged to provide results for searches with several keywords.
00305 results_per_keyword = 500
00306
00307 ; The number of hours for which keyword search results are cached.
00308 result_cache_hours = 1
00309
00310 ; Paths to helper programs for indexing non-text files.
00311 ; Programs are assumed to output the converted text to stdout, and "%s" is
00312 ; replaced by the file argument.
00313 ; Note that using full paths to the binaries is recommended.
00314 ; Uncomment applicable lines to enable (at most one per file type).
00315 ; Additional "index[MIME_TYPE]" lines can be added for any mime type to be
00316 ; indexed.
00317
00318 ; PDF
00319 ; index[application/pdf] = "/usr/bin/pstotext -enc UTF-8 -nopgbrk %s - | /usr/bin/tr '[:cntrl:]' ' '"
00320 ; index[application/pdf] = "/usr/bin/pdftotext -enc UTF-8 -nopgbrk %s - | /usr/bin/tr '[:cntrl:]' ' '"
00321
00322 ; PostScript
00323 ; index[application/postscript] = "/usr/bin/pstotext -enc UTF-8 -nopgbrk %s - | /usr/bin/tr '[:cntrl:]' ' '"
00324 ; index[application/postscript] = "/usr/bin/ps2ascii %s | /usr/bin/tr '[:cntrl:]' ' '"
00325
00326 ; Microsoft Word
00327 ; index[application/msword] = "/usr/bin/antiword %s"
00328 ; index[application/msword] = "/usr/bin/catdoc %s"
00329
00330
00331 ;;;;;;;;;;;;;;;;
00332 ; OAI Settings ;
00333 ;;;;;;;;;;;;;;;;
00334
00335 [oai]
00336
00337 ; Enable OAI front-end to the site
00338 oai = On
00339
00340 ; OAI Repository identifier
00341 repository_id = omp.pkp.sfu.ca
00342
00343
00344 ;;;;;;;;;;;;;;;;;;;;;;
00345 ; Interface Settings ;
00346 ;;;;;;;;;;;;;;;;;;;;;;
00347
00348 [interface]
00349
00350 ; Number of items to display per page; overridable on a per-press basis
00351 items_per_page = 50
00352
00353 ; Number of page links to display; overridable on a per-press basis
00354 page_links = 10
00355
00356
00357 ;;;;;;;;;;;;;;;;;;;;
00358 ; Captcha Settings ;
00359 ;;;;;;;;;;;;;;;;;;;;
00360
00361 [captcha]
00362
00363 ; Whether or not to enable Captcha features
00364 captcha = off
00365
00366 ; Whether or not to use Captcha on user registration
00367 captcha_on_register = on
00368
00369 ; Whether or not to use Captcha on user comments
00370 captcha_on_comments = on
00371
00372 ; Font location for font to use in Captcha images
00373 font_location = /usr/share/fonts/truetype/freefont/FreeSerif.ttf
00374
00375
00376 ;;;;;;;;;;;;;;;;;;;;;
00377 ; External Commands ;
00378 ;;;;;;;;;;;;;;;;;;;;;
00379
00380 [cli]
00381
00382 ; These are paths to (optional) external binaries used in
00383 ; certain plug-ins or advanced program features.
00384
00385 ; Using full paths to the binaries is recommended.
00386
00387 ; perl (used in paracite citation parser)
00388 perl = /usr/bin/perl
00389
00390 ; tar (used in backup plugin, translation packaging)
00391 tar = /bin/tar
00392
00393 ; On systems that do not have PHP4's Sablotron/xsl or PHP5's libxsl/xslt
00394 ; libraries installed, or for those who require a specific XSLT processor,
00395 ; you may enter the complete path to the XSLT renderer tool, with any
00396 ; required arguments. Use %xsl to substitute the location of the XSL
00397 ; stylesheet file, and %xml for the location of the XML source file; eg:
00398 ; /usr/bin/java -jar ~/java/xalan.jar -IN %xml -XSL %xsl %params
00399 ; See xslt_parameter_option below for information on the %params token.
00400 xslt_command = ""
00401
00402 ; For providing XSL parameters to the XSL transformer configured in
00403 ; xslt_command, the following snippet will be repeated once for each parameter
00404 ; to be supplied. %n will be replaced with the parameter name and %v will be
00405 ; replaced by the parameter value. The set of options thus constructed will be
00406 ; inserted into the xslt_command above in place of the %params token.
00407 xslt_parameter_option = "-PARAM %n %v "
00408
00409
00410 ;;;;;;;;;;;;;;;;;;
00411 ; Proxy Settings ;
00412 ;;;;;;;;;;;;;;;;;;
00413
00414 [proxy]
00415
00416 ; Note that allow_url_fopen must be set to Off before these proxy settings
00417 ; will take effect.
00418
00419 ; The HTTP proxy configuration to use
00420 ; http_host = localhost
00421 ; http_port = 80
00422 ; proxy_username = username
00423 ; proxy_password = password
00424
00425
00426 ;;;;;;;;;;;;;;;;;;
00427 ; Debug Settings ;
00428 ;;;;;;;;;;;;;;;;;;
00429
00430 [debug]
00431
00432 ; Display execution stats in the footer
00433 show_stats = Off
00434
00435 ; Display a stack trace when a fatal error occurs.
00436 ; Note that this may expose private information and should be disabled
00437 ; for any production system.
00438 show_stacktrace = Off
00439
00440 ; Display an error message when something goes wrong.
00441 display_errors = Off
00442
00443 ; Display deprecation warnings
00444 deprecation_warnings = Off
00445