2012-03-20 18:15:53 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
//-----------------------------------------------------------
|
2013-08-08 10:54:47 +02:00
|
|
|
// emailPoubelle config
|
2012-03-20 18:15:53 +01:00
|
|
|
// Licence : GNU GPL v3 : http://www.gnu.org/licenses/gpl.html
|
2013-11-04 19:28:30 +01:00
|
|
|
// Créateur : David Mercereau - david [aro] mercereau [.] info
|
2013-08-08 10:54:47 +02:00
|
|
|
// Home : http://poubelle.zici.fr
|
2012-03-20 18:15:53 +01:00
|
|
|
//-----------------------------------------------------------
|
|
|
|
|
2013-11-18 14:02:48 +01:00
|
|
|
// writable for script
|
|
|
|
define('DATA', '../var');
|
|
|
|
// include directory
|
|
|
|
define('INC', '../lib');
|
|
|
|
|
|
|
|
// include function
|
|
|
|
include_once(INC.'/ep_function.php');
|
|
|
|
|
2013-11-19 14:40:03 +01:00
|
|
|
define('DEBUG', false);
|
2013-11-04 19:28:30 +01:00
|
|
|
|
2013-11-19 14:40:03 +01:00
|
|
|
// Domain email (separe with ; exemple : exemple.com;zici.fr;exemple.fr)
|
|
|
|
define('DOMAIN', 'exemple.fr');
|
|
|
|
//define('DOMAIN', 'exemple.com;zici.fr;exemple.fr');
|
2013-11-05 17:23:47 +01:00
|
|
|
|
|
|
|
// PDO stucture
|
|
|
|
// Exemple pour MYSQL :
|
|
|
|
// define('DB', 'mysql:host=127.0.0.1;dbname=baseMysql');
|
|
|
|
// define('DBUSER', 'utilisateurMysql');
|
|
|
|
// define('DBPASS', 'motdepassedefou');
|
|
|
|
// Exemple pour Sqlite :
|
|
|
|
// define('DB', 'sqlite:./data/emailPoubelle.sqlite');
|
2013-11-19 14:40:03 +01:00
|
|
|
define('DB', 'sqlite:'.DATA.'/database.sdb');
|
2013-11-20 12:10:23 +01:00
|
|
|
// table prefix
|
|
|
|
define('DBTABLEPREFIX', 'ep_');
|
2013-11-18 14:02:48 +01:00
|
|
|
|
2013-11-19 14:40:03 +01:00
|
|
|
// Use cron (true/false) for life expire email (recomanded)
|
|
|
|
// If use true add in crontab :
|
|
|
|
// 0 */2 * * * /usr/bin/wget -q -t 1 -T 7200 -O /dev/null 'http://exemple.com/page.php?act=cron' >/dev/null 2>&1
|
|
|
|
define('CRON', false);
|
2012-05-15 21:29:38 +02:00
|
|
|
|
2013-08-08 10:54:47 +02:00
|
|
|
// Fichier d'alias postfix
|
2013-11-05 17:23:47 +01:00
|
|
|
define('FICHIERALIAS', DATA.'/virtual');
|
2012-03-20 18:15:53 +01:00
|
|
|
define('BIN_POSTMAP', '/usr/sbin/postmap');
|
|
|
|
|
2013-11-05 17:23:47 +01:00
|
|
|
define('URLPAGE', 'http://'.$_SERVER["SERVER_NAME"].$_SERVER["SCRIPT_NAME"]);
|
2013-08-08 10:54:47 +02:00
|
|
|
|
2013-11-19 14:40:03 +01:00
|
|
|
// Email
|
2013-11-05 17:23:47 +01:00
|
|
|
define('EMAILTAGSUJET', '[EmailPoubelle]');
|
2013-08-08 10:54:47 +02:00
|
|
|
// From de l'email
|
2013-11-05 17:23:47 +01:00
|
|
|
define('EMAILFROM', '"NO REPLAY emailPoubelle" <emailpoubelle@exemple.com>');
|
2013-11-18 14:02:48 +01:00
|
|
|
define('EMAILEND', 'emailPoubelle.zici.fr');
|
2013-11-04 19:28:30 +01:00
|
|
|
|
|
|
|
// Alisas interdit : (regex ligne par ligne) - commenter pour désactiver
|
2013-11-18 14:02:48 +01:00
|
|
|
define('ALIASDENY', DATA.'/aliasdeny.txt');
|
2012-03-20 18:15:53 +01:00
|
|
|
|
2013-11-04 19:28:30 +01:00
|
|
|
// Blackliste d'email : (regex ligne par ligne) - commenter pour désactiver
|
2013-11-18 14:02:48 +01:00
|
|
|
define('BLACKLIST', DATA.'/blacklist.txt');
|
2013-08-08 10:54:47 +02:00
|
|
|
|
2013-11-04 19:28:30 +01:00
|
|
|
// Depend pear Net/DNS2
|
|
|
|
define('CHECKMX', false);
|
|
|
|
if (CHECKMX) {
|
|
|
|
require_once('Net/DNS2.php');
|
|
|
|
// Serveur DNS pour la résolution/vérification du nom de domaine
|
|
|
|
define('NS1', 'ns1.fdn.org');
|
|
|
|
define('NS2', '8.8.8.8');
|
|
|
|
}
|
2012-08-05 16:32:46 +02:00
|
|
|
|
2013-11-19 14:40:03 +01:00
|
|
|
// A indiquer si vous utiliser les URL's rewriting
|
|
|
|
// Exemple avec un htaccess
|
2013-11-20 12:10:23 +01:00
|
|
|
// RewriteRule ^ep-([a-z]+)-([a-zA-Z0-9+/=]+)\.html$ switch.php?page=emailPoubelle&act=$1&value=$2 [L]
|
|
|
|
//define('URLREWRITE_START', 'http://poubelle.zici.fr/ep-');
|
|
|
|
//define('URLREWRITE_MIDDLE', '-');
|
|
|
|
//define('URLREWRITE_END', '.html');
|
2013-11-19 14:40:03 +01:00
|
|
|
// Désactiver
|
2013-11-20 12:10:23 +01:00
|
|
|
define('URLREWRITE_START', false);
|
|
|
|
define('URLREWRITE_MIDDLE', false);
|
|
|
|
define('URLREWRITE_END', false);
|
2013-11-19 14:40:03 +01:00
|
|
|
|
2013-11-18 14:02:48 +01:00
|
|
|
// check update :
|
|
|
|
// enable : in seconds
|
|
|
|
// disable : false
|
2013-11-19 14:40:03 +01:00
|
|
|
define('CHECKUPDATE', 86400);
|
2013-11-18 14:02:48 +01:00
|
|
|
|
2013-11-19 14:40:03 +01:00
|
|
|
// Maintenance mode
|
2013-11-19 14:42:21 +01:00
|
|
|
define('MAINTENANCE_MODE', false);
|
2013-11-19 14:40:03 +01:00
|
|
|
// No maintenance for this ip (admin ip)
|
2013-11-19 14:42:21 +01:00
|
|
|
define('MAINTENANCE_IP', '10.0.0.1');
|
2013-11-05 17:23:47 +01:00
|
|
|
|
2012-03-20 18:15:53 +01:00
|
|
|
?>
|