2014-09-04 17:52:18 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* This software is governed by the CeCILL-B license. If a copy of this license
|
|
|
|
* is not distributed with this file, you can obtain one at
|
|
|
|
* http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt
|
|
|
|
*
|
|
|
|
* Authors of STUdS (initial project): Guilhem BORGHESI (borghesi@unistra.fr) and Raphaël DROZ
|
2016-08-04 22:26:37 +02:00
|
|
|
* Authors of Framadate/OpenSondage: Framasoft (https://github.com/framasoft)
|
2014-09-04 17:52:18 +02:00
|
|
|
*
|
|
|
|
* =============================
|
|
|
|
*
|
|
|
|
* Ce logiciel est régi par la licence CeCILL-B. Si une copie de cette licence
|
|
|
|
* ne se trouve pas avec ce fichier vous pouvez l'obtenir sur
|
|
|
|
* http://www.cecill.info/licences/Licence_CeCILL-B_V1-fr.txt
|
|
|
|
*
|
|
|
|
* Auteurs de STUdS (projet initial) : Guilhem BORGHESI (borghesi@unistra.fr) et Raphaël DROZ
|
|
|
|
* Auteurs de Framadate/OpenSondage : Framasoft (https://github.com/framasoft)
|
|
|
|
*/
|
|
|
|
|
2015-06-23 22:03:56 +02:00
|
|
|
// Fully qualified domain name of your webserver.
|
|
|
|
// If this is unset or empty, the servername is determined automatically.
|
2017-02-05 04:19:04 +01:00
|
|
|
// You *have to set this* if you are running Framadate behind a reverse proxy.
|
2015-06-23 22:03:56 +02:00
|
|
|
// const APP_URL = '<www.mydomain.fr>';
|
|
|
|
|
2014-09-04 17:52:18 +02:00
|
|
|
// Application name
|
2014-12-05 01:09:14 +01:00
|
|
|
const NOMAPPLICATION = '<Application name>';
|
2014-09-04 17:52:18 +02:00
|
|
|
|
|
|
|
// Database administrator email
|
|
|
|
const ADRESSEMAILADMIN = '<email address>';
|
|
|
|
|
|
|
|
// Email for automatic responses (you should set it to "no-reply")
|
|
|
|
const ADRESSEMAILREPONSEAUTO = '<no-reply@mydomain.com>';
|
|
|
|
|
|
|
|
// Database user
|
2014-12-23 09:33:00 +01:00
|
|
|
const DB_USER= '<database user>';
|
2014-09-04 17:52:18 +02:00
|
|
|
|
|
|
|
// Database password
|
2014-12-23 09:33:00 +01:00
|
|
|
const DB_PASSWORD = '<database password>';
|
2014-09-04 17:52:18 +02:00
|
|
|
|
|
|
|
// Database server name, leave empty to use a socket
|
2014-12-23 09:33:00 +01:00
|
|
|
const DB_CONNECTION_STRING = 'mysql:host=<database host>;dbname=<database name>;port=<database port>';
|
2014-09-04 17:52:18 +02:00
|
|
|
|
2017-02-05 04:19:04 +01:00
|
|
|
// Name of the table that stores migration script already executed
|
2014-12-31 01:33:56 +01:00
|
|
|
const MIGRATION_TABLE = 'framadate_migration';
|
|
|
|
|
2014-12-31 15:19:15 +01:00
|
|
|
// Table name prefix
|
|
|
|
const TABLENAME_PREFIX = 'fd_';
|
|
|
|
|
2015-04-13 23:53:28 +02:00
|
|
|
// Default Language
|
2015-04-08 21:52:09 +02:00
|
|
|
const DEFAULT_LANGUAGE = 'fr';
|
2014-09-04 17:52:18 +02:00
|
|
|
|
|
|
|
// List of supported languages, fake constant as arrays can be used as constants only in PHP >=5.6
|
|
|
|
$ALLOWED_LANGUAGES = [
|
2015-04-17 13:43:36 +02:00
|
|
|
'fr' => 'Français',
|
|
|
|
'en' => 'English',
|
2016-02-23 09:25:05 +01:00
|
|
|
'oc' => 'Occitan',
|
2015-04-17 13:43:36 +02:00
|
|
|
'es' => 'Español',
|
|
|
|
'de' => 'Deutsch',
|
2016-10-13 17:36:39 +02:00
|
|
|
'nl' => 'Dutch',
|
2015-04-17 13:43:36 +02:00
|
|
|
'it' => 'Italiano',
|
2016-08-04 17:29:10 +02:00
|
|
|
'br' => 'Brezhoneg',
|
2014-09-04 17:52:18 +02:00
|
|
|
];
|
|
|
|
|
2017-02-05 04:19:04 +01:00
|
|
|
// Path to image file with the title
|
2014-09-04 17:52:18 +02:00
|
|
|
const IMAGE_TITRE = 'images/logo-framadate.png';
|
|
|
|
|
2016-12-22 16:10:45 +01:00
|
|
|
// Relative path to favicon
|
|
|
|
const FAVICON = 'favicon.ico';
|
|
|
|
|
2014-09-04 17:52:18 +02:00
|
|
|
// Clean URLs, boolean
|
|
|
|
const URL_PROPRE = false;
|
|
|
|
|
|
|
|
// Use REMOTE_USER data provided by web server
|
|
|
|
const USE_REMOTE_USER = true;
|
|
|
|
|
2014-12-24 23:44:40 +01:00
|
|
|
// Path to the log file
|
|
|
|
const LOG_FILE = 'admin/stdout.log';
|
|
|
|
|
2017-02-05 04:19:04 +01:00
|
|
|
// Days (after expiration date) before purging a poll
|
2015-02-28 19:18:59 +01:00
|
|
|
const PURGE_DELAY = 60;
|
|
|
|
|
2016-04-26 23:16:08 +02:00
|
|
|
// Max slots per poll
|
|
|
|
const MAX_SLOTS_PER_POLL = 366;
|
|
|
|
|
2016-04-29 19:39:06 +02:00
|
|
|
// Number of seconds before we allow to resend an "Remember Edit Link" email.
|
|
|
|
const TIME_EDIT_LINK_EMAIL = 60;
|
|
|
|
|
2014-11-14 17:35:22 +01:00
|
|
|
// Config
|
|
|
|
$config = [
|
|
|
|
/* general config */
|
|
|
|
'use_smtp' => true, // use email for polls creation/modification/responses notification
|
2018-02-21 11:07:11 +01:00
|
|
|
'smtp_options' => [
|
|
|
|
'host' => 'localhost', // SMTP server (you could add many servers (main and backup for example) : use ";" like separator
|
|
|
|
'auth' => false, // Enable SMTP authentication
|
|
|
|
'username' => '', // SMTP username
|
|
|
|
'password' => '', // SMTP password
|
|
|
|
'secure' => '', // Enable encryption (false, tls or ssl)
|
|
|
|
'port' => 25, // TCP port to connect to
|
|
|
|
],
|
2016-12-22 16:14:22 +01:00
|
|
|
'tracking_code' => '', // add HTML code to every page, useful for tools like Piwik
|
2014-11-14 17:35:22 +01:00
|
|
|
/* home */
|
|
|
|
'show_what_is_that' => true, // display "how to use" section
|
|
|
|
'show_the_software' => true, // display technical information about the software
|
2017-02-05 04:19:04 +01:00
|
|
|
'show_cultivate_your_garden' => true, // display "development and administration" information
|
2015-03-29 22:13:22 +02:00
|
|
|
/* create_classic_poll.php / create_date_poll.php */
|
2014-12-23 09:33:00 +01:00
|
|
|
'default_poll_duration' => 180, // default values for the new poll duration (number of days).
|
2015-03-29 22:13:22 +02:00
|
|
|
/* create_classic_poll.php */
|
2014-12-23 09:33:00 +01:00
|
|
|
'user_can_add_img_or_link' => true, // user can add link or URL when creating his poll.
|
2018-04-15 12:14:28 +02:00
|
|
|
'markdown_editor_by_default' => true, // The markdown editor for the description is enabled by default
|
|
|
|
'provide_fork_awesome' => true, // Whether the build-in fork-awesome should be provided
|
2016-08-04 17:29:10 +02:00
|
|
|
];
|