/trunk/client/bazar/bazar.php |
---|
19,7 → 19,7 |
// | License along with this library; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: bazar.php,v 1.37 2007-03-08 15:12:13 jp_milcent Exp $ |
// CVS : $Id: bazar.php,v 1.38 2007-03-28 08:51:22 neiluj Exp $ |
/** |
* |
*@package bazar |
28,7 → 28,7 |
*@author Florian Schmitt <florian@ecole-et-nature.org> |
//Autres auteurs : |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.37 $ $Date: 2007-03-08 15:12:13 $ |
*@version $Revision: 1.38 $ $Date: 2007-03-28 08:51:22 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
48,7 → 48,7 |
} |
//********************************************************************************************************** |
//initialisation des paramêtres papyrus |
//initialisation des paramètres papyrus |
//********************************************************************************************************** |
//si un parametre est précisé dans le gestionnaire de menus papyrus, on le prends en compte |
211,7 → 211,7 |
case BAZ_ACTION_PAS_PUBLIER : publier_fiche(0) ;$res .= fiches_a_valider(); break; |
case BAZ_GERER_DROITS : $res .= baz_gestion_droits(); break; |
case BAZ_S_INSCRIRE : $res .= baz_s_inscrire(); break; |
case BAZ_VOIR_FLUX_RSS : header('Content-type: text/xml; charset=ISO-8859-1');include("bazarRSS.php");exit(0);break; |
case BAZ_VOIR_FLUX_RSS : header('Content-type: text/xml; charset=UTF-8');include("bazarRSS.php");exit(0);break; |
default : $res .= baz_liste($GLOBALS['_BAZAR_']['id_typeannonce']) ; |
} |
} |
225,6 → 225,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.37 2007/03/08 15:12:13 jp_milcent |
* Fusion avec la livraison Menes : 08 mars 2007 |
* |
* Revision 1.35.2.2 2007/03/07 16:53:17 jp_milcent |
* Suppression du query string "action" et non pas "nature" |
* |
/trunk/client/bazar/langues/baz_langue_fr.inc.php |
---|
19,7 → 19,7 |
// | License along with this library; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: baz_langue_fr.inc.php,v 1.44 2007-03-08 15:12:13 jp_milcent Exp $ |
// CVS : $Id: baz_langue_fr.inc.php,v 1.45 2007-03-28 08:51:22 neiluj Exp $ |
/** |
* Fichier de traduction en français de l'application Bazar |
* |
30,7 → 30,7 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.44 $ $Date: 2007-03-08 15:12:13 $ |
*@version $Revision: 1.45 $ $Date: 2007-03-28 08:51:22 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
53,7 → 53,7 |
define ('BAZ_TOUS', 'Tous'); |
define ('BAZ_TOUTES', 'Toutes'); |
define ('BAZ_MOT_CLE', 'Mots clés (facultatif)'); |
define ('BAZ_EMETTEUR', 'Émetteur'); |
define ('BAZ_EMETTEUR', 'émetteur'); |
define ('BAZ_NATURE', 'Nature de la fiche' ); |
define ('BAZ_STATUT', 'Statut' ); |
define ('BAZ_DATE_CREATION', 'Date de création' ); |
115,7 → 115,7 |
define ('BAZ_RECHERCHE_AVANCEE', 'Recherche avancée >>'); |
define ('BAZ_RECHERCHE_DE_BASE','<< Recherche simple'); |
define ('BAZ_DESCRIPTION_RECHERCHE', 'En précisant, ci dessus, le type de fiche cherché, vous pourrez obtenir des fonctions de recherche avancé.'); |
define ('BAZ_PAS_D_ANNONCES', 'Pas de fiches trouvées.'); |
define ('BAZ_PAS_D_ANNONCES', 'Pas de fiches trouvées.'); |
define ('BAZ_S_INSCRIRE_AUX_ANNONCES', 'S\'abonner à un type de fiche'); |
define ('BAZ_ABONNE', 'Abonné'); |
define ('BAZ_PAS_ABONNE', 'Pas abonné'); |
155,7 → 155,7 |
define ('BAZ_CONFIRMATION_SUPPRESSION_IMAGE', 'Etes-vous sûr de vouloir supprimer cette image ?') ; |
define ('BAZ_VALIDER_PUBLICATION', 'Valider la publication'); |
define ('BAZ_ENTRER_PROJET', 'ENTRER SUR L\'ESPACE DU PROJET'); |
//================Textes pour les libellés====================================== |
//================Textes pour les libellàs====================================== |
define ('BAZ_ANNONCES','annonces'); |
define ('BAZ_PUBLICATIONS','publications'); |
define ('BAZ_EVENEMENTS','évènements'); |
445,6 → 445,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.44 2007/03/08 15:12:13 jp_milcent |
* Fusion avec la livraison Menes : 08 mars 2007 |
* |
* Revision 1.42.2.2 2007/03/07 17:20:47 jp_milcent |
* Ajout d'une majuscule accentuée. |
* |
/trunk/client/bazar/configuration/baz_config.inc.php |
---|
19,7 → 19,7 |
// | License along with this library; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: baz_config.inc.php,v 1.22 2007-02-15 14:18:38 jp_milcent Exp $ |
// CVS : $Id: baz_config.inc.php,v 1.23 2007-03-28 08:51:22 neiluj Exp $ |
/** |
* Fichier de configuration du bazar |
* |
31,7 → 31,7 |
*@author Florian SCHMITT <florian@ecole-et-nature.org> |
//Autres auteurs : |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.22 $ $Date: 2007-02-15 14:18:38 $ |
*@version $Revision: 1.23 $ $Date: 2007-03-28 08:51:22 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
65,10 → 65,10 |
define('BAZ_CREER_FICHIERS_XML',0); //0=ne cree pas le fichier XML dans rss/; 1=cree le fichier XML dans rss/ |
define('BAZ_RSS_NOMSITE','Educ-Envir.org'); //Nom du site indiqué dans les flux rss |
define('BAZ_RSS_ADRESSESITE','http://educ-envir.org'); //Adresse Internet du site indiqué dans les flux rss |
define('BAZ_RSS_DESCRIPTIONSITE','Educ-Envir.org, pour mutualiser l\'information en éducation à l\'environnement.'); //Description du site indiquée dans les flux rss |
define('BAZ_RSS_DESCRIPTIONSITE','Educ-Envir.org, pour mutualiser l\'information en l\'éducation à l\'environnement.'); //Description du site indiquée dans les flux rss |
define('BAZ_RSS_LOGOSITE','http://ecole-et-nature.org/images/Logo_REN-Site.png'); //Logo du site indiqué dans les flux rss |
define('BAZ_RSS_MANAGINGEDITOR', '') ; //Managing editor du site |
define('BAZ_RSS_WEBMASTER', '') ; //Mail Webmaster du site |
define('BAZ_RSS_MANAGINGEDITOR', 'baz@domain.tld') ; //Managing editor du site |
define('BAZ_RSS_WEBMASTER', 'baz@domain.tld') ; //Mail Webmaster du site |
define('BAZ_RSS_CATEGORIE', 'Education a l\'environnement'); //catégorie du flux RSS |
82,7 → 82,7 |
//Mettre 1 pour 'directement validée en ligne' |
define ('BAZ_TAILLE_MAX_FICHIER',2000*1024); |
//Valeur maximale en octets pour la taille d'un fichier joint à télécharger |
//Valeur maximale en octets pour la taille d'un fichier joint à tàlàcharger |
define ('BAZ_TYPE_AFFICHAGE_LISTE', 'jma'); |
$GLOBALS['_BAZAR_']['db'] = & $GLOBALS['_GEN_commun']['pear_db']; |
97,7 → 97,7 |
define ('BAZ_CHAMPS_NOM_WIKI','a_nom_wikini'); //Champs nom wikini sur la table annuaire |
/** Réglage des droits pour déposer des annonces */ |
// Mettre à true pour limiter le dépot aux rédacteurs |
// Mettre à true pour limiter le dépôt aux rédacteurs |
define ('BAZ_RESTREINDRE_DEPOT', 0) ; |
/** Réglage de l'affichage de la liste deroulante pour la saisie des dates */ |
147,6 → 147,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.22 2007/02/15 14:18:38 jp_milcent |
* Fusion avec la livraison Menes : 15 février 2007 |
* |
* Revision 1.21.2.1 2007/02/15 13:43:54 jp_milcent |
* Ajout de commentaire pour la constante utilisée par le Calendrier. |
* |
217,7 → 220,7 |
* ajout constantes pour flux RSS |
* |
* Revision 1.4 2004/07/06 16:21:54 florian |
* débuggage modification + MAJ flux RSS |
* débogage modification + MAJ flux RSS |
* |
* Revision 1.3 2004/07/02 14:50:47 florian |
* ajout configuration de l'etat de l'annonce (visible,masquée,...) |
/trunk/client/bazar/bibliotheque/bazar.fonct.rss.php |
---|
19,7 → 19,7 |
// | License along with this library; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: bazar.fonct.rss.php,v 1.71 2007-03-19 15:17:37 alexandre_tb Exp $ |
// CVS : $Id: bazar.fonct.rss.php,v 1.72 2007-03-28 08:51:22 neiluj Exp $ |
/** |
* |
*@package bazar |
28,7 → 28,7 |
*@author Florian Schmitt <florian@ecole-et-nature.org> |
//Autres auteurs : |
*@copyright Tela-Botanica 2000-2006 |
*@version $Revision: 1.71 $ |
*@version $Revision: 1.72 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
207,7 → 207,7 |
} |
//on affiche ligne par ligne sinon |
else { |
//cas d'une image personalisée |
//cas d'une image personnalisée |
if (isset($ligne['bf_url_image'])) { |
$res .= '<div id="fiche_image">'."\n"; |
$res .= '<img src="client/bazar/upload/'.$ligne['bf_url_image'].'" border=0 alt="'.BAZ_TEXTE_IMG_ALTERNATIF.'" />'."\n"; |
637,64 → 637,102 |
return $s; |
} |
include_once 'XML/Util.php' ; |
$xml = XML_Util::getXMLDeclaration('1.0', 'ISO-8859-1', 'no') ; |
include_once PAP_CHEMIN_API_PEAR . 'XML/Util.php' ; |
// passage en utf-8 --julien |
// -- |
// TODO: retour à la ligne (CRLF) et indentation du code pour la lisibilité |
// setlocale() pour avoir les formats de date valides (w3c) --julien |
setlocale(LC_TIME, "C"); |
$xml = XML_Util::getXMLDeclaration('1.0', 'UTF-8', 'yes') ; |
$xml .= "\r\n "; |
$xml .= XML_Util::createStartElement ('rss', array('version' => '2.0')) ; |
$xml .= "\r\n "; |
$xml .= XML_Util::createStartElement ('channel'); |
$xml .= XML_Util::createTag ('title', null, $nomflux, null, false); |
$xml .= "\r\n "; |
$xml .= XML_Util::createTag ('title', null, utf8_encode($nomflux)); |
$xml .= "\r\n "; |
$xml .= XML_Util::createTag ('link', null, BAZ_RSS_ADRESSESITE); |
$xml .= "\r\n "; |
$xml .= XML_Util::createTag ('description', null, BAZ_RSS_DESCRIPTIONSITE); |
$xml .= "\r\n "; |
$xml .= XML_Util::createTag ('language', null, 'fr-FR'); |
$xml .= XML_Util::createTag ('copyright', null, 'Copyright 2005 '.BAZ_RSS_NOMSITE); |
$xml .= XML_Util::createTag ('lastBuildDate', null, strftime('%d %b %Y %H:%M:%S GMT')); |
$xml .= "\r\n "; |
$xml .= XML_Util::createTag ('copyright', null, 'Copyright (c) '. date('Y') .' '. BAZ_RSS_NOMSITE); |
$xml .= "\r\n "; |
$xml .= XML_Util::createTag ('lastBuildDate', null, strftime('%a, %d %b %Y %H:%M:%S GMT')); |
$xml .= "\r\n "; |
$xml .= XML_Util::createTag ('docs', null, 'http://www.stervinou.com/projets/rss/'); |
$xml .= "\r\n "; |
$xml .= XML_Util::createTag ('category', null, BAZ_RSS_CATEGORIE); |
$xml .= "\r\n "; |
$xml .= XML_Util::createTag ('managingEditor', null, BAZ_RSS_MANAGINGEDITOR); |
$xml .= "\r\n "; |
$xml .= XML_Util::createTag ('webMaster', null, BAZ_RSS_WEBMASTER); |
$xml .= "\r\n "; |
$xml .= XML_Util::createTag ('ttl', null, '60'); |
$xml .= "\r\n "; |
$xml .= XML_Util::createStartElement ('image'); |
$xml .= XML_Util::createTag ('title', null, BAZ_RSS_NOMSITE); |
$xml .= "\r\n "; |
$xml .= XML_Util::createTag ('title', null, utf8_encode(BAZ_RSS_NOMSITE)); |
$xml .= "\r\n "; |
$xml .= XML_Util::createTag ('url', null, BAZ_RSS_LOGOSITE); |
$xml .= "\r\n "; |
$xml .= XML_Util::createTag ('link', null, BAZ_RSS_ADRESSESITE); |
$xml .= "\r\n "; |
$xml .= XML_Util::createEndElement ('image'); |
if ($resultat->numRows()>0) { |
if ($resultat->numRows() > 0) { |
// Creation des items : titre + lien + description + date de publication |
while ($ligne = $resultat->fetchRow(DB_FETCHMODE_ASSOC)) { |
$xml .= "\r\n "; |
$xml .= XML_Util::createStartElement ('item'); |
$caractere = array('/\x92/', '/\x85/', '/\x80/', '/\x97/', '/\x96/'); |
$caractere_remplacement = array ('’', '…', '€', '—', '–'); |
$xml .= XML_Util::createTag ('title', null, preg_replace ($caractere, $caractere_remplacement, |
XML_Util::replaceEntities($ligne['bf_titre']))); |
$xml .= "\r\n "; |
$xml .= XML_Util::createTag ('title', null, utf8_encode($ligne['bf_titre']) ); |
$xml .= "\r\n "; |
$lien=$GLOBALS['_BAZAR_']['url']; |
$lien->addQueryString('action', BAZ_VOIR_FICHE); |
$lien->addQueryString('id_fiche', $ligne['bf_id_fiche']); |
$xml .= XML_Util::createTag ('link', null, $lien->getURL()); |
$xml .= "\r\n "; |
$xml .= XML_Util::createTag ('guid', null, $lien->getURL()); |
$xml .= "\r\n "; |
$xml .= XML_Util::createStartElement ('description'); |
$xml .= "\r\n "; |
if ($_GET['action'] != BAZ_VOIR_TOUTES_ANNONCES) { |
$xml .= XML_Util::createCDataSection (preg_replace ($caractere, $caractere_remplacement, $ligne['bf_description'])); |
$xml .= XML_Util::createCDataSection ( utf8_encode($ligne['bf_description']) ); |
} |
$xml .= "\r\n "; |
$xml .= XML_Util::createEndElement ('description'); |
$xml .= "\r\n "; |
if ($ligne['bf_date_debut_validite_fiche'] == '0000-00-00') $date_pub = $ligne[' bf_date_creation_fiche'] ; else |
$date_pub = $ligne['bf_date_debut_validite_fiche']; |
$xml .= XML_Util::createTag ('pubDate', null, strftime('%d %b %Y %H:%M:%S GMT',strtotime($date_pub))); |
$xml .= XML_Util::createTag ('pubDate', null, strftime('%a, %d %b %Y %H:%M:%S GMT',strtotime($date_pub))); |
$xml .= "\r\n "; |
$xml .= XML_Util::createEndElement ('item'); |
} |
} |
else {//pas d'annonces |
$xml .= "\r\n "; |
$xml .= XML_Util::createStartElement ('item'); |
$xml .= "\r\n "; |
$xml .= XML_Util::createTag ('title', null, BAZ_PAS_D_ANNONCES); |
$xml .= XML_Util::createTag ('link', null, '#'); |
$xml .= "\r\n "; |
$xml .= XML_Util::createTag ('link', null, $GLOBALS['_BAZAR_']['url']->getUrl()); |
$xml .= "\r\n "; |
$xml .= XML_Util::createTag ('guid', null, $GLOBALS['_BAZAR_']['url']->getUrl()); |
$xml .= "\r\n "; |
$xml .= XML_Util::createTag ('description', null, BAZ_PAS_D_ANNONCES); |
$xml .= XML_Util::createTag ('pubDate', null, strftime('%d %b %Y %H:%M:%S GMT',strtotime('12/12/2004'))); |
$xml .= "\r\n "; |
$xml .= XML_Util::createTag ('pubDate', null, strftime('%a, %d %b %Y %H:%M:%S GMT',strtotime("01/01/%Y"))); |
$xml .= "\r\n "; |
$xml .= XML_Util::createEndElement ('item'); |
} |
$xml .= "\r\n "; |
$xml .= XML_Util::createEndElement ('channel'); |
$xml .= "\r\n "; |
$xml .= XML_Util::createEndElement('rss') ; |
$xml .= XML_Util::createEndElement ('channel'); |
$xml .= XML_Util::createEndElement('rss') ; |
// Nettoyage de l'url |
$GLOBALS['_BAZAR_']['url']->removeQueryString('action'); |
1076,6 → 1114,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.71 2007/03/19 15:17:37 alexandre_tb |
* correction de la requete de recherche |
* |
* Revision 1.70 2007/03/08 15:12:13 jp_milcent |
* Fusion avec la livraison Menes : 08 mars 2007 |
* |
/trunk/client/bazar/bazarRSS.php |
---|
19,7 → 19,7 |
// | License along with this library; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: bazarRSS.php,v 1.4 2006-05-19 13:54:32 florian Exp $ |
// CVS : $Id: bazarRSS.php,v 1.5 2007-03-28 08:51:22 neiluj Exp $ |
/** |
* Générateur de flux RSS à partir du bazar |
* |
29,7 → 29,7 |
*@author Alexandre Granier <alexandre@tela-botanica.org> |
* |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.4 $ |
*@version $Revision: 1.5 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
86,12 → 86,15 |
$requeteSQL=''; |
} |
echo html_entity_decode(gen_RSS($annonce, $nbitem, $emetteur, $valide, $requeteSQL, '', '', $categorie_nature)); |
echo gen_RSS($annonce, $nbitem, $emetteur, $valide, $requeteSQL, '', '', $categorie_nature); |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.4 2006/05/19 13:54:32 florian |
* stabilisation du moteur de recherche, corrections bugs, lien recherche avancee |
* |
* Revision 1.3 2005/07/21 19:03:12 florian |
* nouveautés bazar: templates fiches, correction de bugs, ... |
* |