1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/emailpoubelle_ynh.git synced 2024-09-03 18:26:29 +02:00

conf-dist.php plutôt que conf.php-dist

This commit is contained in:
David 2013-11-19 15:38:08 +01:00
parent 0c7bf4f606
commit 231a965813
3 changed files with 5 additions and 3 deletions

View file

@ -22,8 +22,6 @@ Télécharger & décompresser les sources :
wget -O emailPoubelle.zip http://forge.zici.fr/p/emailpoubelle-php/source/download/master/
unzip emailPoubelle.zip
cp emailpoubelle-php-master/* /var/www/emailPoubelle
cd /var/www/emailPoubelle/
mv conf.php-dist conf.php
Configure apache virtualhost
[...]

0
conf.php-dist → conf-dist.php Executable file → Normal file
View file

View file

@ -24,7 +24,11 @@
<p>Générer des emails poubelle sans contrainte de durée de vie. </p>
<?php
// Intégration dans votre site :
include('../conf.php');
if (file_exists('../conf.php')) {
include('../conf.php');
} else {
include('../conf-dist.php');
}
include('../emailPoubelle.php');
?>
<h3>Let the Show Begin - Pre and Code</h3>