/trunk/scripts/modules/stats/Stats.php |
---|
3,13 → 3,15 |
/** |
* Script gérant les statistiques de DEL. |
* |
* @category php 5.4 |
* @package DEL |
* @subpackage Scripts |
* @category DEL |
* @package Scripts |
* @subpackage Stats |
* @author Mathias CHOUET <mathias@tela-botanica.org> |
* @copyright Copyright (c) 2014, Tela Botanica (accueil@tela-botanica.org) |
* @license CeCILL v2 http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt |
* @license GNU-GPL http://www.gnu.org/licenses/gpl.html |
* @author Jean-Pascal MILCENT <jpm@tela-botanica.org> |
* @author Aurelien PERONNET <aurelien@tela-botanica.org> |
* @license GPL v3 <http://www.gnu.org/licenses/gpl.txt> |
* @license CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt> |
* @copyright 1999-2014 Tela Botanica <accueil@tela-botanica.org> |
*/ |
class Stats extends DelScript { |
/trunk/scripts/modules/adeterminer/Adeterminer.php |
---|
1,16 → 1,20 |
<?php |
//declare(encoding='UTF-8'); |
/** |
* Exemple de lancement du script : : |
* /opt/lampp/bin/php cli.php adeterminer -a alerteMail |
* Script récupèrant tous les commentaires et déterminations fait ce jour et envoie un mail |
* aux auteurs des observations récapitulant celle-ci. |
* |
* @category php 5.4 |
* @package DEL |
* @subpackage Scripts |
* Utilisation : <code>/opt/lampp/bin/php cli.php adeterminer -a alerteMail</code> |
* |
* @category DEL |
* @package Scripts |
* @subpackage ADeterminer |
* @author Mathias CHOUET <mathias@tela-botanica.org> |
* @author Jean-Pascal MILCENT <jpm@tela-botanica.org> |
* @copyright Copyright (c) 2012-2014, Tela Botanica (accueil@tela-botanica.org) |
* @license CeCILL v2 http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt |
* @license GNU-GPL http://www.gnu.org/licenses/gpl.html |
* @author Aurelien PERONNET <aurelien@tela-botanica.org> |
* @license GPL v3 <http://www.gnu.org/licenses/gpl.txt> |
* @license CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt> |
* @copyright 1999-2014 Tela Botanica <accueil@tela-botanica.org> |
*/ |
class Adeterminer extends DelScript { |
42,5 → 46,4 |
$conteneur = new Conteneur($this->parametres); |
return new $classe($conteneur); |
} |
} |
?> |
} |
/trunk/scripts/modules/adeterminer/AlerteMailADeterminer.php |
---|
1,18 → 1,19 |
<?php |
// declare(encoding='UTF-8'); |
/** |
* Le script récupère tous les commentaires et déterminations fait ce jour et envoie un mail |
* Récupère tous les commentaires et déterminations fait ce jour et envoie un mail |
* aux auteurs des observations récapitulant celle-ci |
* |
* @category php 5.4 |
* @package DEL |
* @subpackage Scripts |
* @author Aurélien PERONNET <aurelien@tela-botanica.org> |
* @copyright Copyright (c) 2012, Tela Botanica (accueil@tela-botanica.org) |
* @license CeCILL v2 http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt |
* @license GNU-GPL http://www.gnu.org/licenses/gpl.html |
* @category DEL |
* @package Scripts |
* @subpackage ADeterminer |
* @author Mathias CHOUET <mathias@tela-botanica.org> |
* @author Jean-Pascal MILCENT <jpm@tela-botanica.org> |
* @author Aurelien PERONNET <aurelien@tela-botanica.org> |
* @license GPL v3 <http://www.gnu.org/licenses/gpl.txt> |
* @license CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt> |
* @copyright 1999-2014 Tela Botanica <accueil@tela-botanica.org> |
*/ |
class AlerteMailADeterminer { |
private $conteneur; |
/trunk/scripts/modules/commentaires/AlerteMailCommentaires.php |
---|
4,15 → 4,16 |
* Le script récupère tous les commentaires et déterminations fait ce jour et envoie un mail |
* aux auteurs des observations récapitulant celle-ci |
* |
* @category php 5.4 |
* @package DEL |
* @subpackage Scripts |
* @author Aurélien PERONNET <aurelien@tela-botanica.org> |
* @copyright Copyright (c) 2012-2014, Tela Botanica (accueil@tela-botanica.org) |
* @license CeCILL v2 http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt |
* @license GNU-GPL http://www.gnu.org/licenses/gpl.html |
* @category DEL |
* @package Scripts |
* @subpackage Commentaires |
* @author Mathias CHOUET <mathias@tela-botanica.org> |
* @author Jean-Pascal MILCENT <jpm@tela-botanica.org> |
* @author Aurelien PERONNET <aurelien@tela-botanica.org> |
* @license GPL v3 <http://www.gnu.org/licenses/gpl.txt> |
* @license CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt> |
* @copyright 1999-2014 Tela Botanica <accueil@tela-botanica.org> |
*/ |
class AlerteMailCommentaires { |
private $conteneur; |
/trunk/scripts/modules/commentaires/Commentaires.php |
---|
1,16 → 1,18 |
<?php |
//declare(encoding='UTF-8'); |
/** |
* Exemple de lancement du script : : |
* /opt/lampp/bin/php cli.php commentaires -a alerteMail |
* Envoie les alertes par email sur les commentaires ajoutées dans DEL. |
* Utilisation : <code>/opt/lampp/bin/php cli.php commentaires -a alerteMail</code> |
* |
* @category php 5.4 |
* @package DEL |
* @subpackage Scripts |
* @author Aurélien PERONNET <aurelien@tela-botanica.org> |
* @copyright Copyright (c) 2012, Tela Botanica (accueil@tela-botanica.org) |
* @license CeCILL v2 http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt |
* @license GNU-GPL http://www.gnu.org/licenses/gpl.html |
* @category DEL |
* @package Scripts |
* @subpackage Commentaires |
* @author Mathias CHOUET <mathias@tela-botanica.org> |
* @author Jean-Pascal MILCENT <jpm@tela-botanica.org> |
* @author Aurelien PERONNET <aurelien@tela-botanica.org> |
* @license GPL v3 <http://www.gnu.org/licenses/gpl.txt> |
* @license CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt> |
* @copyright 1999-2014 Tela Botanica <accueil@tela-botanica.org> |
*/ |
class Commentaires extends DelScript { |
42,5 → 44,4 |
$conteneur = new Conteneur($this->parametres); |
return new $classe($conteneur); |
} |
} |
?> |
} |
/trunk/scripts/bibliotheque/Conteneur.php |
---|
1,14 → 1,18 |
<?php |
// declare(encoding='UTF-8'); |
/** |
* Le conteneur encapsule les classes servant aux scripts. |
* Il gère leur instanciation, ainsi que la récupération des paramètres depuis le fichier de configuration. |
* |
* @category DEL |
* @package Bibliotheque |
* @package Scripts |
* @subpackage Bibliotheque |
* @author Mathias CHOUET <mathias@tela-botanica.org> |
* @author Jean-Pascal MILCENT <jpm@tela-botanica.org> |
* @copyright Copyright (c) 2014, Tela Botanica (accueil@tela-botanica.org) |
* @license CeCILL v2 http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt |
* @license GNU-GPL http://www.gnu.org/licenses/gpl.html |
* @author Aurelien PERONNET <aurelien@tela-botanica.org> |
* @license GPL v3 <http://www.gnu.org/licenses/gpl.txt> |
* @license CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt> |
* @copyright 1999-2014 Tela Botanica <accueil@tela-botanica.org> |
*/ |
//TODO : initialiser tous les objets dans le conteneur |
class Conteneur { |
/trunk/scripts/bibliotheque/Messagerie.php |
---|
1,4 → 1,18 |
<?php |
// declare(encoding='UTF-8'); |
/** |
* Classe Messagerie permettant d'envoyer des courriels (s'inspire de ce qui est fait dans l'appli Annuaire). |
* |
* @category DEL |
* @package Scripts |
* @subpackage Bibliotheque |
* @author Mathias CHOUET <mathias@tela-botanica.org> |
* @author Jean-Pascal MILCENT <jpm@tela-botanica.org> |
* @author Aurelien PERONNET <aurelien@tela-botanica.org> |
* @license GPL v3 <http://www.gnu.org/licenses/gpl.txt> |
* @license CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt> |
* @copyright 1999-2014 Tela Botanica <accueil@tela-botanica.org> |
*/ |
class Messagerie { |
private $conteneur = null; |
/trunk/scripts/bibliotheque/DelScript.php |
---|
1,14 → 1,17 |
<?php |
// declare(encoding='UTF-8'); |
/** |
* Classe mère des scripts DEL |
* |
* @category php 5.4 |
* @package DEL |
* @subpackage Scripts |
* @author Aurélien PERONNET <aurelien@tela-botanica.org> |
* @copyright Copyright (c) 2012, Tela Botanica (accueil@tela-botanica.org) |
* @license CeCILL v2 http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt |
* @license GNU-GPL http://www.gnu.org/licenses/gpl.html |
* @category DEL |
* @package Scripts |
* @subpackage Bibliotheque |
* @author Mathias CHOUET <mathias@tela-botanica.org> |
* @author Jean-Pascal MILCENT <jpm@tela-botanica.org> |
* @author Aurelien PERONNET <aurelien@tela-botanica.org> |
* @license GPL v3 <http://www.gnu.org/licenses/gpl.txt> |
* @license CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt> |
* @copyright 1999-2014 Tela Botanica <accueil@tela-botanica.org> |
*/ |
abstract class DelScript extends Script { |
21,5 → 24,4 |
protected function initialiserProjet($projetNom) { |
$this->projetNom = $projetNom; |
} |
} |
?> |
} |
/trunk/scripts/tb_del.sh |
---|
12,11 → 12,11 |
# Description: Start/stop les scripts de maintenance et d'envoie d'emails de DEL. |
### END INIT INFO |
# Script de lancement des scripts d'identiPlante et pictoFlora. |
# À placer dans /etc/init.d/ puis à lancer : service tb_del start |
# Log : |
# - 2011-04-07 [Aurélien Peronnet] : création de lancement des scripts d'identiPlante et pictoFlora. |
#/etc/init.d/ |
# |
# Aurélien Peronnet [7 avril 2011] |
# Service de lancement des scripts DEL |
# |
case "$1" in |
start) |
/trunk/scripts/framework.php |
---|
New file |
0,0 → 1,6 |
<?php |
// Inclusion du Framework |
// Renomer ce fichier en "framework.php" |
// Indiquer ci-dessous le chemin absolu vers le fichier autoload.inc.php de la bonne version du Framework |
require_once '/home/jpm/web/applications/framework/framework/Framework.php'; |
?> |