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://24.87.77.186/git/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 = ompsmoke
00099 name = ompsmoke4
00100
00101 ; Enable persistent connections (recommended)
00102 persistent = Off
00103
00104 ; Enable database debug output (very verbose!)
00105 debug = Off
00106
00107 ;;;;;;;;;;;;;;;;;;
00108 ; Cache Settings ;
00109 ;;;;;;;;;;;;;;;;;;
00110
00111 [cache]
00112
00113 ; The type of data caching to use. Options are:
00114 ; - memcache: Use the memcache server configured below
00115 ; - file: Use file-based caching; configured below
00116 ; - none: Use no caching. This may be extremely slow.
00117 ; This setting affects locale data, press settings, and plugin settings.
00118
00119 cache = file
00120
00121 ; Enable memcache support
00122 memcache_hostname = localhost
00123 memcache_port = 11211
00124
00125 ; For site visitors who are not logged in, many pages are often entirely
00126 ; static (e.g. About, the home page, etc). If the option below is enabled,
00127 ; these pages will be cached in local flat files for the number of hours
00128 ; specified in the web_cache_hours option. This will cut down on server
00129 ; overhead for many requests, but should be used with caution because:
00130 ; 1) Things like press metadata changes will not be reflected in cached
00131 ; data until the cache expires or is cleared, and
00132 ; 2) This caching WILL NOT RESPECT DOMAIN-BASED SUBSCRIPTIONS.
00133 ; However, for situations like hosting high-volume open access presses, it's
00134 ; an easy way of decreasing server load.
00135
00136 web_cache = Off
00137 web_cache_hours = 1
00138
00139
00140 ;;;;;;;;;;;;;;;;;;;;;;;;;
00141 ; Localization Settings ;
00142 ;;;;;;;;;;;;;;;;;;;;;;;;;
00143
00144 [i18n]
00145
00146 ; Default locale
00147 locale = en_US
00148
00149 ; Client output/input character set
00150 client_charset = utf-8
00151
00152 ; Database connection character set
00153 ; Must be set to "Off" if not supported by the database server
00154 ; If enabled, must be the same character set as "client_charset"
00155 ; (although the actual name may differ slightly depending on the server)
00156 connection_charset = utf8
00157
00158 ; Database storage character set
00159 ; Must be set to "Off" if not supported by the database server
00160 database_charset = utf8
00161
00162 ; Enable character normalization to utf-8 (recommended)
00163 ; If disabled, strings will be passed through in their native encoding
00164 charset_normalization = Off
00165
00166 ;;;;;;;;;;;;;;;;;
00167 ; File Settings ;
00168 ;;;;;;;;;;;;;;;;;
00169
00170 [files]
00171
00172 ; Complete path to directory to store uploaded files
00173 ; (This directory should not be directly web-accessible)
00174 ; Windows users should use forward slashes
00175 files_dir = /home/asmecher/git/omp/files2
00176
00177 ; Path to the directory to store public uploaded files
00178 ; (This directory should be web-accessible and the specified path
00179 ; should be relative to the base OMP directory)
00180 ; Windows users should use forward slashes
00181 public_files_dir = public
00182
00183 ; Permissions mask for created files and directories
00184 umask = 0022
00185
00186
00187 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;
00188 ; Fileinfo (MIME) Settings ;
00189 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;
00190
00191 [finfo]
00192 mime_database_path = /etc/magic.mime
00193
00194
00195 ;;;;;;;;;;;;;;;;;;;;;
00196 ; Security Settings ;
00197 ;;;;;;;;;;;;;;;;;;;;;
00198
00199 [security]
00200
00201 ; Force SSL connections site-wide
00202 force_ssl = Off
00203
00204 ; Force SSL connections for login only
00205 force_login_ssl = Off
00206
00207 ; This check will invalidate a session if the user's IP address changes.
00208 ; Enabling this option provides some amount of additional security, but may
00209 ; cause problems for users behind a proxy farm (e.g., AOL).
00210 session_check_ip = Off
00211
00212 ; The encryption (hashing) algorithm to use for encrypting user passwords
00213 ; Valid values are: md5, sha1
00214 ; Note that sha1 requires PHP >= 4.3.0
00215 encryption = sha1
00216
00217 ; Allowed HTML tags for fields that permit restricted HTML.
00218 ; For PHP 5.0.5 and greater, allowed attributes must be specified individually
00219 ; e.g. <img src|alt> to allow "src" and "alt" attributes. Unspecified
00220 ; attributes will be stripped. For PHP below 5.0.5 attributes may not be
00221 ; specified in this way.
00222 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>"
00223
00224 ; Prevent VIM from attempting to highlight the rest of the config file
00225 ; with unclosed tags:
00226 ; </p></sub></sup></u></i></b></dd></dt></dl></li></ol></ul></code></cite></strong></em></a>
00227
00228
00229 ;Is implicit authentication enabled or not
00230
00231 ;implicit_auth = On
00232
00233 ;Implicit Auth Header Variables
00234
00235 ;implicit_auth_header_first_name = HTTP_TDL_GIVENNAME
00236 ;implicit_auth_header_last_name = HTTP_TDL_SN
00237 ;implicit_auth_header_email = HTTP_TDL_MAIL
00238 ;implicit_auth_header_phone = HTTP_TDL_TELEPHONENUMBER
00239 ;implicit_auth_header_initials = HTTP_TDL_METADATA_INITIALS
00240 ;implicit_auth_header_mailing_address = HTTP_TDL_METADATA_TDLHOMEPOSTALADDRESS
00241 ;implicit_auth_header_uin = HTTP_TDL_TDLUID
00242
00243 ; A space delimited list of uins to make admin
00244 ;implicit_auth_admin_list = "100000040@tdl.org 85B7FA892DAA90F7@utexas.edu 100000012@tdl.org"
00245
00246 ; URL of the implicit auth 'Way Finder' page. See pages/login/LoginHandler.inc.php for usage.
00247
00248 ;implicit_auth_wayf_url = "/Shibboleth.sso/wayf"
00249
00250
00251
00252 ;;;;;;;;;;;;;;;;;;
00253 ; Email Settings ;
00254 ;;;;;;;;;;;;;;;;;;
00255
00256 [email]
00257
00258 ; Use SMTP for sending mail instead of mail()
00259 ; smtp = On
00260
00261 ; SMTP server settings
00262 ; smtp_server = mail.example.com
00263 ; smtp_port = 25
00264
00265 ; Enable SMTP authentication
00266 ; Supported mechanisms: PLAIN, LOGIN, CRAM-MD5, and DIGEST-MD5
00267 ; smtp_auth = PLAIN
00268 ; smtp_username = username
00269 ; smtp_password = password
00270
00271 ; Allow envelope sender to be specified
00272 ; (may not be possible with some server configurations)
00273 ; allow_envelope_sender = Off
00274
00275 ; Default envelope sender to use if none is specified elsewhere
00276 ; default_envelope_sender = my_address@my_host.com
00277
00278 ; Enable attachments in the various "Send Email" pages.
00279 ; (Disabling here will not disable attachments on features that
00280 ; require them, e.g. attachment-based reviews)
00281 enable_attachments = On
00282
00283 ; Amount of time required between attempts to send non-editorial emails
00284 ; in seconds. This can be used to help prevent email relaying via OMP.
00285 time_between_emails = 3600
00286
00287 ; Maximum number of recipients that can be included in a single email
00288 ; (either as To:, Cc:, or Bcc: addresses) for a non-priveleged user
00289 max_recipients = 10
00290
00291 ; Maximum number of days before an unvalidated account expires and is deleted
00292 validation_timeout = 14
00293
00294
00295 ;;;;;;;;;;;;;;;;;;;
00296 ; Search Settings ;
00297 ;;;;;;;;;;;;;;;;;;;
00298
00299 [search]
00300
00301 ; Minimum indexed word length
00302 min_word_length = 3
00303
00304 ; The maximum number of search results fetched per keyword. These results
00305 ; are fetched and merged to provide results for searches with several keywords.
00306 results_per_keyword = 500
00307
00308 ; The number of hours for which keyword search results are cached.
00309 result_cache_hours = 1
00310
00311 ; Paths to helper programs for indexing non-text files.
00312 ; Programs are assumed to output the converted text to stdout, and "%s" is
00313 ; replaced by the file argument.
00314 ; Note that using full paths to the binaries is recommended.
00315 ; Uncomment applicable lines to enable (at most one per file type).
00316 ; Additional "index[MIME_TYPE]" lines can be added for any mime type to be
00317 ; indexed.
00318
00319 ; PDF
00320 ; index[application/pdf] = "/usr/bin/pstotext -enc UTF-8 -nopgbrk %s - | /usr/bin/tr '[:cntrl:]' ' '"
00321 index[application/pdf] = "/usr/bin/pdftotext -enc UTF-8 -nopgbrk %s - | /usr/bin/tr '[:cntrl:]' ' '"
00322
00323 ; PostScript
00324 ; index[application/postscript] = "/usr/bin/pstotext -enc UTF-8 -nopgbrk %s - | /usr/bin/tr '[:cntrl:]' ' '"
00325 ; index[application/postscript] = "/usr/bin/ps2ascii %s | /usr/bin/tr '[:cntrl:]' ' '"
00326
00327 ; Microsoft Word
00328 ; index[application/msword] = "/usr/bin/antiword %s"
00329 ; index[application/msword] = "/usr/bin/catdoc %s"
00330
00331
00332 ;;;;;;;;;;;;;;;;
00333 ; OAI Settings ;
00334 ;;;;;;;;;;;;;;;;
00335
00336 [oai]
00337
00338 ; Enable OAI front-end to the site
00339 oai = On
00340
00341 ; OAI Repository identifier
00342 repository_id = "omp.24.87.77.186"
00343
00344
00345 ;;;;;;;;;;;;;;;;;;;;;;
00346 ; Interface Settings ;
00347 ;;;;;;;;;;;;;;;;;;;;;;
00348
00349 [interface]
00350
00351 ; Number of items to display per page; overridable on a per-press basis
00352 items_per_page = 25
00353
00354 ; Number of page links to display; overridable on a per-press basis
00355 page_links = 10
00356
00357
00358 ;;;;;;;;;;;;;;;;;;;;
00359 ; Captcha Settings ;
00360 ;;;;;;;;;;;;;;;;;;;;
00361
00362 [captcha]
00363
00364 ; Whether or not to enable Captcha features
00365 captcha = off
00366
00367 ; Whether or not to use Captcha on user registration
00368 captcha_on_register = on
00369
00370 ; Whether or not to use Captcha on user comments
00371 captcha_on_comments = on
00372
00373 ; Font location for font to use in Captcha images
00374 font_location = /usr/share/fonts/truetype/freefont/FreeSerif.ttf
00375
00376
00377 ;;;;;;;;;;;;;;;;;;;;;
00378 ; External Commands ;
00379 ;;;;;;;;;;;;;;;;;;;;;
00380
00381 [cli]
00382
00383 ; These are paths to (optional) external binaries used in
00384 ; certain plug-ins or advanced program features.
00385
00386 ; Using full paths to the binaries is recommended.
00387
00388 ; perl (used in paracite citation parser)
00389 perl = /usr/bin/perl
00390
00391 ; tar (used in backup plugin, translation packaging)
00392 tar = /bin/tar
00393
00394 ; On systems that do not have PHP4's Sablotron/xsl or PHP5's libxsl/xslt
00395 ; libraries installed, or for those who require a specific XSLT processor,
00396 ; you may enter the complete path to the XSLT renderer tool, with any
00397 ; required arguments. Use %xsl to substitute the location of the XSL
00398 ; stylesheet file, and %xml for the location of the XML source file; eg:
00399 ; /usr/bin/java -jar ~/java/xalan.jar -IN %xml -XSL %xsl %params
00400 ; See xslt_parameter_option below for information on the %params token.
00401 xslt_command = "/usr/bin/java -jar /usr/share/maven-repo/xalan/xalan/2.7.1/xalan-2.7.1.jar -IN %xml -XSL %xsl %params"
00402
00403 ; For providing XSL parameters to the XSL transformer configured in
00404 ; xslt_command, the following snippet will be repeated once for each parameter
00405 ; to be supplied. %n will be replaced with the parameter name and %v will be
00406 ; replaced by the parameter value. The set of options thus constructed will be
00407 ; inserted into the xslt_command above in place of the %params token.
00408 xslt_parameter_option = "-PARAM %n %v "
00409
00410
00411 ;;;;;;;;;;;;;;;;;;
00412 ; Proxy Settings ;
00413 ;;;;;;;;;;;;;;;;;;
00414
00415 [proxy]
00416
00417 ; Note that allow_url_fopen must be set to Off before these proxy settings
00418 ; will take effect.
00419
00420 ; The HTTP proxy configuration to use
00421 ; http_host = localhost
00422 ; http_port = 80
00423 ; proxy_username = username
00424 ; proxy_password = password
00425
00426
00427 ;;;;;;;;;;;;;;;;;;
00428 ; Debug Settings ;
00429 ;;;;;;;;;;;;;;;;;;
00430
00431 [debug]
00432
00433 ; Display execution stats in the footer
00434 show_stats = Off
00435
00436 ; Display a stack trace when a fatal error occurs.
00437 ; Note that this may expose private information and should be disabled
00438 ; for any production system.
00439 show_stacktrace = On
00440
00441 ; Display an error message when something goes wrong.
00442 display_errors = Off
00443
00444 ; Display deprecation warnings
00445 deprecation_warnings = Off
00446