date.chapril.org-framadate/tpl/admin/config.tpl

127 lines
4.5 KiB
Smarty
Raw Normal View History

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
* 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.
2017-02-05 04:19:04 +01:00
// You *have to set this* if you are running Framadate behind a reverse proxy.
2015-08-31 08:56:26 +02:00
// const APP_URL = '<www.mydomain.fr>';
// Application name
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}';
Make Framadate compatible with PostgreSQL and great again ! * Move the database handling to Doctrine DBAL * Move Migrations to Doctrine Migrations * Rename migrations for Doctrine Migrations Uses * Fix Migrations * Change config parameters, introduce db name, host and port parameters and get rid of database url * Change install form for this * Add a CLI command to make migrations * Add config.test.php to be used with APP_ENV=test for testing Signed-off-by: Thomas Citharel <tcit@tcit.fr> CS Signed-off-by: Thomas Citharel <tcit@tcit.fr> Add sqlite to CI and execute migration in test env Signed-off-by: Thomas Citharel <tcit@tcit.fr> Typo Signed-off-by: Thomas Citharel <tcit@tcit.fr> SQLite is already inside the image... Signed-off-by: Thomas Citharel <tcit@tcit.fr> Rebase two new migrations Signed-off-by: Thomas Citharel <tcit@tcit.fr> Move from trait to abstract class and remove legacy migration table after checks Signed-off-by: Thomas Citharel <tcit@tcit.fr> CS Signed-off-by: Thomas Citharel <tcit@tcit.fr> Move doctrine command path inside CI Signed-off-by: Thomas Citharel <tcit@tcit.fr> Move abstract migration class to correct namespace and remove unused command Signed-off-by: Thomas Citharel <tcit@tcit.fr> CS Signed-off-by: Thomas Citharel <tcit@tcit.fr> Check for legacy migration table existence Signed-off-by: Thomas Citharel <tcit@tcit.fr> Check if legacy migration table exists before deleting it Signed-off-by: Thomas Citharel <tcit@tcit.fr> Add messages for skipped migrations and fix an issue with MySQL ERR_NO_DATE Migration Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-04-18 16:16:22 +02:00
// Database driver
const DB_DRIVER = '{$dbDriver}';
// Database name
const DB_NAME = '{$dbName}';
// Database host
const DB_HOST = '{$dbHost}';
// Database port
const DB_PORT = '{$dbPort}';
2015-08-31 08:56:26 +02:00
// Database user
Make Framadate compatible with PostgreSQL and great again ! * Move the database handling to Doctrine DBAL * Move Migrations to Doctrine Migrations * Rename migrations for Doctrine Migrations Uses * Fix Migrations * Change config parameters, introduce db name, host and port parameters and get rid of database url * Change install form for this * Add a CLI command to make migrations * Add config.test.php to be used with APP_ENV=test for testing Signed-off-by: Thomas Citharel <tcit@tcit.fr> CS Signed-off-by: Thomas Citharel <tcit@tcit.fr> Add sqlite to CI and execute migration in test env Signed-off-by: Thomas Citharel <tcit@tcit.fr> Typo Signed-off-by: Thomas Citharel <tcit@tcit.fr> SQLite is already inside the image... Signed-off-by: Thomas Citharel <tcit@tcit.fr> Rebase two new migrations Signed-off-by: Thomas Citharel <tcit@tcit.fr> Move from trait to abstract class and remove legacy migration table after checks Signed-off-by: Thomas Citharel <tcit@tcit.fr> CS Signed-off-by: Thomas Citharel <tcit@tcit.fr> Move doctrine command path inside CI Signed-off-by: Thomas Citharel <tcit@tcit.fr> Move abstract migration class to correct namespace and remove unused command Signed-off-by: Thomas Citharel <tcit@tcit.fr> CS Signed-off-by: Thomas Citharel <tcit@tcit.fr> Check for legacy migration table existence Signed-off-by: Thomas Citharel <tcit@tcit.fr> Check if legacy migration table exists before deleting it Signed-off-by: Thomas Citharel <tcit@tcit.fr> Add messages for skipped migrations and fix an issue with MySQL ERR_NO_DATE Migration Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-04-18 16:16:22 +02:00
const DB_USER = '{$dbUser}';
2015-08-31 08:56:26 +02:00
// Database password
const DB_PASSWORD = '{$dbPassword|addslashes_single_quote}';
2015-08-31 08:56:26 +02:00
// Table name prefix
const TABLENAME_PREFIX = '{$dbPrefix}';
2017-02-05 04:19:04 +01:00
// Name of the table that stores migration script already executed
2015-08-31 08:56:26 +02:00
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',
'oc' => 'Occitan',
2016-05-03 17:24:05 +02:00
'es' => 'Español',
2015-08-31 08:56:26 +02:00
'de' => 'Deutsch',
2016-10-13 17:36:39 +02:00
'nl' => 'Dutch',
2015-08-31 08:56:26 +02:00
'it' => 'Italiano',
'br' => 'Brezhoneg',
'ca' => 'Catalan',
2015-08-31 08:56:26 +02:00
];
2017-02-05 04:19:04 +01:00
// Path to image file with the title
2015-08-31 08:56:26 +02:00
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';
2017-02-05 04:19:04 +01:00
// Days (after expiration date) before purging a poll
2015-08-31 08:56:26 +02:00
const PURGE_DELAY = 60;
// 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;
// uncomment to display a link to the demo poll at the home page
//const DEMO_POLL_ID = "aqg259dth55iuhwm";
// number of recent votes that are not deleted
const DEMO_POLL_NUMBER_VOTES = 10;
2015-08-31 08:56:26 +02:00
// Config
$config = [
/* general config */
'use_smtp' => true, // use email for polls creation/modification/responses notification (uses smtp only if `use_sendmail` is disabled)
'use_sendmail' => false, // use sendmail instead of smtp
'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
],
2015-08-31 08:56:26 +02: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-08-31 08:56:26 +02:00
/* 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.
'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
];