2015-08-31 08:56:26 +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
|
|
|
|
*
|
2016-05-03 17:24:05 +02:00
|
|
|
* 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)
|
2015-08-31 08:56:26 +02:00
|
|
|
*
|
|
|
|
* =============================
|
|
|
|
*
|
2016-05-03 17:24:05 +02:00
|
|
|
* Ce logiciel est régi par la licence CeCILL-B. Si une copie de cette licence
|
2015-08-31 08:56:26 +02:00
|
|
|
* ne se trouve pas avec ce fichier vous pouvez l'obtenir sur
|
|
|
|
* http://www.cecill.info/licences/Licence_CeCILL-B_V1-fr.txt
|
|
|
|
*
|
2016-05-03 17:24:05 +02:00
|
|
|
* Auteurs de STUdS (projet initial) : Guilhem BORGHESI (borghesi@unistra.fr) et Raphaël DROZ
|
2015-08-31 08:56:26 +02:00
|
|
|
* Auteurs de Framadate/OpenSondage : Framasoft (https://github.com/framasoft)
|
|
|
|
*/
|
|
|
|
|
|
|
|
// Fully qualified domain name of your webserver.
|
|
|
|
// If this is unset or empty, the servername is determined automatically.
|
|
|
|
// You *have to set this* if you are running Framedate behind a reverse proxy.
|
|
|
|
// const APP_URL = '<www.mydomain.fr>';
|
|
|
|
|
|
|
|
// Application name
|
2016-07-07 14:15:34 +02:00
|
|
|
const NOMAPPLICATION = '{$appName|addslashes_single_quote}';
|
2015-08-31 08:56:26 +02:00
|
|
|
|
|
|
|
// Database administrator email
|
|
|
|
const ADRESSEMAILADMIN = '{$appMail}';
|
|
|
|
|
|
|
|
// Email for automatic responses (you should set it to "no-reply")
|
|
|
|
const ADRESSEMAILREPONSEAUTO = '{$responseMail}';
|
|
|
|
|
|
|
|
// Database server name, leave empty to use a socket
|
|
|
|
const DB_CONNECTION_STRING = '{$dbConnectionString}';
|
|
|
|
|
|
|
|
// Database user
|
|
|
|
const DB_USER= '{$dbUser}';
|
|
|
|
|
|
|
|
// Database password
|
2016-07-07 14:15:34 +02:00
|
|
|
const DB_PASSWORD = '{$dbPassword|addslashes_single_quote}';
|
2015-08-31 08:56:26 +02:00
|
|
|
|
|
|
|
// Table name prefix
|
|
|
|
const TABLENAME_PREFIX = '{$dbPrefix}';
|
|
|
|
|
|
|
|
// Name of the table that store migration script already executed
|
|
|
|
const MIGRATION_TABLE = '{$migrationTable}';
|
|
|
|
|
|
|
|
// Default Language
|
|
|
|
const DEFAULT_LANGUAGE = '{$defaultLanguage}';
|
|
|
|
|
|
|
|
// List of supported languages, fake constant as arrays can be used as constants only in PHP >=5.6
|
|
|
|
$ALLOWED_LANGUAGES = [
|
2016-05-03 17:24:05 +02:00
|
|
|
'fr' => 'Français',
|
2015-08-31 08:56:26 +02:00
|
|
|
'en' => 'English',
|
2016-05-04 01:01:11 +02:00
|
|
|
'oc' => 'Occitan',
|
2016-05-03 17:24:05 +02:00
|
|
|
'es' => 'Español',
|
2015-08-31 08:56:26 +02:00
|
|
|
'de' => 'Deutsch',
|
|
|
|
'it' => 'Italiano',
|
2016-08-04 17:29:10 +02:00
|
|
|
'br' => 'Brezhoneg',
|
2015-08-31 08:56:26 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
// Nom et emplacement du fichier image contenant le titre
|
|
|
|
const IMAGE_TITRE = 'images/logo-framadate.png';
|
|
|
|
|
|
|
|
// Clean URLs, boolean
|
|
|
|
const URL_PROPRE = {if in_array($cleanUrl, array('1', 'on', 'true'))}true{else}false{/if};
|
|
|
|
|
|
|
|
// Use REMOTE_USER data provided by web server
|
|
|
|
const USE_REMOTE_USER = true;
|
|
|
|
|
|
|
|
// Path to the log file
|
|
|
|
const LOG_FILE = 'admin/stdout.log';
|
|
|
|
|
|
|
|
// Days (after expiration date) before purge a poll
|
|
|
|
const PURGE_DELAY = 60;
|
|
|
|
|
2016-05-04 01:01:11 +02:00
|
|
|
// Max slots per poll
|
|
|
|
const MAX_SLOTS_PER_POLL = 366;
|
|
|
|
|
|
|
|
// Number of seconds before we allow to resend an "Remember Edit Link" email.
|
|
|
|
const TIME_EDIT_LINK_EMAIL = 60;
|
|
|
|
|
2015-08-31 08:56:26 +02:00
|
|
|
// Config
|
|
|
|
$config = [
|
|
|
|
/* general config */
|
|
|
|
'use_smtp' => true, // use email for polls creation/modification/responses notification
|
|
|
|
/* home */
|
|
|
|
'show_what_is_that' => true, // display "how to use" section
|
|
|
|
'show_the_software' => true, // display technical information about the software
|
|
|
|
'show_cultivate_your_garden' => true, // display "developpement and administration" information
|
|
|
|
/* create_classic_poll.php / create_date_poll.php */
|
|
|
|
'default_poll_duration' => 180, // default values for the new poll duration (number of days).
|
|
|
|
/* create_classic_poll.php */
|
|
|
|
'user_can_add_img_or_link' => true, // user can add link or URL when creating his poll.
|
2016-08-04 17:29:10 +02:00
|
|
|
];
|