Subversion Repositories Sites.tela-botanica.org

Compare Revisions

Ignore whitespace Rev 3 → Rev 4

/trunk/actu/ecrire/data/.background-gourmand
/trunk/actu/ecrire/data/.htaccess
New file
0,0 → 1,0
deny from all
/trunk/actu/ecrire/data/visites.lock
/trunk/actu/ecrire/data/forum_1392396918.lck
--- meta_cache.php3 (revision 0)
+++ meta_cache.php3 (revision 4)
@@ -0,0 +1,165 @@
+<?php
+
+if (defined("_DATA_META_CACHE")) return;
+define("_DATA_META_CACHE", "1");
+$GLOBALS['meta']['version_installee'] = '1.821';
+$GLOBALS['meta']['langues_proposees'] = 'ar,bg,ca,cpf,cpf_hat,da,de,en,eo,es,eu,fa,fon,fr,gl,hu,it,ja,lb,nl,oc_auv,oc_gsc,oc_lms,oc_lnc,oc_ni,oc_ni_la,oc_prv,oc_va,pl,pt,pt_br,ro,tr,vi,zh';
+$GLOBALS['meta']['email_webmaster'] = 'accueil@tela-botanica.org';
+$GLOBALS['meta']['activer_breves'] = 'non';
+$GLOBALS['meta']['config_precise_groupes'] = 'oui';
+$GLOBALS['meta']['mots_cles_forums'] = 'non';
+$GLOBALS['meta']['articles_surtitre'] = 'non';
+$GLOBALS['meta']['articles_soustitre'] = 'non';
+$GLOBALS['meta']['articles_descriptif'] = 'non';
+$GLOBALS['meta']['articles_chapeau'] = 'non';
+$GLOBALS['meta']['articles_ps'] = 'non';
+$GLOBALS['meta']['articles_redac'] = 'non';
+$GLOBALS['meta']['articles_mots'] = 'oui';
+$GLOBALS['meta']['post_dates'] = 'oui';
+$GLOBALS['meta']['articles_urlref'] = 'oui';
+$GLOBALS['meta']['creer_preview'] = 'non';
+$GLOBALS['meta']['taille_preview'] = '150';
+$GLOBALS['meta']['articles_modif'] = 'non';
+$GLOBALS['meta']['activer_sites'] = 'oui';
+$GLOBALS['meta']['proposer_sites'] = '0';
+$GLOBALS['meta']['activer_syndic'] = 'oui';
+$GLOBALS['meta']['visiter_sites'] = 'non';
+$GLOBALS['meta']['moderation_sites'] = 'non';
+$GLOBALS['meta']['forums_publics'] = 'posteriori';
+$GLOBALS['meta']['accepter_inscriptions'] = 'non';
+$GLOBALS['meta']['prevenir_auteurs'] = 'oui';
+$GLOBALS['meta']['activer_messagerie'] = 'oui';
+$GLOBALS['meta']['activer_imessage'] = 'oui';
+$GLOBALS['meta']['suivi_edito'] = 'oui';
+$GLOBALS['meta']['quoi_de_neuf'] = 'non';
+$GLOBALS['meta']['forum_prive_admin'] = 'non';
+$GLOBALS['meta']['activer_moteur'] = 'oui';
+$GLOBALS['meta']['activer_statistiques'] = 'oui';
+$GLOBALS['meta']['documents_article'] = 'oui';
+$GLOBALS['meta']['documents_rubrique'] = 'non';
+$GLOBALS['meta']['charset'] = 'iso-8859-1';
+$GLOBALS['meta']['creer_htpasswd'] = 'non';
+$GLOBALS['meta']['langue_site'] = 'fr';
+$GLOBALS['meta']['multi_articles'] = 'non';
+$GLOBALS['meta']['multi_rubriques'] = 'non';
+$GLOBALS['meta']['multi_secteurs'] = 'non';
+$GLOBALS['meta']['gerer_trad'] = 'non';
+$GLOBALS['meta']['langues_multilingue'] = 'ar,bg,ca,cpf,da,de,en,eo,es,fa,fr,gl,it,nl,oc_auv,oc_gsc,oc_lms,oc_lnc,oc_ni,oc_prv,oc_va,pl,pt,vi,zh';
+$GLOBALS['meta']['date_purge_cache'] = '1119427883';
+$GLOBALS['meta']['date_stats_referers'] = '1119427883';
+$GLOBALS['meta']['calculer_referers_now'] = 'oui';
+$GLOBALS['meta']['date_statistiques'] = '2005-11-20';
+$GLOBALS['meta']['date_stats_popularite'] = '1119427883';
+$GLOBALS['meta']['popularite_max'] = '51.326361328449';
+$GLOBALS['meta']['popularite_total'] = '1125.9038583962';
+$GLOBALS['meta']['nom_site'] = 'Actualités de Tela Botanica';
+$GLOBALS['meta']['adresse_site'] = 'http://www.tela-botanica.org/actu';
+$GLOBALS['meta']['alea_ephemere_ancien'] = 'de643e6dd6b2423d5ad93f6219f6886e';
+$GLOBALS['meta']['alea_ephemere'] = '66ddb15e6a54b1b9b82145a440c2ef8f';
+$GLOBALS['meta']['http_proxy'] = '';
+$GLOBALS['meta']['fichier_restauration'] = 'data/dump.xml.gz';
+$GLOBALS['meta']['calcul_rubriques'] = '1109067358';
+$GLOBALS['meta']['version_archive_restauration'] = '1.2';
+$GLOBALS['meta']['email_envoi'] = 'accueil@tela-botanica.org';
+$GLOBALS['meta']['adresse_neuf'] = '';
+$GLOBALS['meta']['jours_neuf'] = '';
+$GLOBALS['meta']['majnouv'] = '1091193458';
+$GLOBALS['meta']['date_optimisation'] = '1112630524';
+$GLOBALS['meta']['adresse_suivi'] = 'actu_moderateurs@tela-botanica.org';
+$GLOBALS['meta']['adresse_suivi_inscription'] = '';
+$GLOBALS['meta']['date_calcul_rubriques'] = '1132580630';
+$GLOBALS['meta']['accepter_visiteurs'] = 'non';
+$GLOBALS['meta']['articles_versions'] = 'oui';
+$GLOBALS['meta']['articles_ortho'] = 'oui';
+$GLOBALS['meta']['preview'] = 'non';
+$GLOBALS['meta']['creer_htaccess'] = 'non';
+$GLOBALS['meta']['gd_formats'] = 'gif,jpg,png';
+$GLOBALS['meta']['gd_formats_read'] = 'gif,jpg,png';
+$GLOBALS['meta']['netpbm_formats'] = '';
+$GLOBALS['meta']['miroir_ortho_3'] = 'http://ortho.spip.net/ortho_serveur.php 1132309301 fr';
+$GLOBALS['meta']['liste_miroirs_ortho'] = '1 2 3';
+$GLOBALS['meta']['maj_miroirs_ortho'] = '1132309301';
+$GLOBALS['meta']['miroir_ortho_1'] = 'http://tony.ortho.spip.net/ortho_serveur.php 1132309301 fr';
+$GLOBALS['meta']['miroir_ortho_2'] = 'http://spip-ortho.linagora.org:18080/ortho_serveur.php 1132309301 fr';
+
+$GLOBALS['meta_maj']['version_installee'] = '1125481882';
+$GLOBALS['meta_maj']['langues_proposees'] = '1125481854';
+$GLOBALS['meta_maj']['email_webmaster'] = '1097671200';
+$GLOBALS['meta_maj']['activer_breves'] = '1125485147';
+$GLOBALS['meta_maj']['config_precise_groupes'] = '1097671200';
+$GLOBALS['meta_maj']['mots_cles_forums'] = '1097671200';
+$GLOBALS['meta_maj']['articles_surtitre'] = '1097671200';
+$GLOBALS['meta_maj']['articles_soustitre'] = '1097671200';
+$GLOBALS['meta_maj']['articles_descriptif'] = '1097671200';
+$GLOBALS['meta_maj']['articles_chapeau'] = '1097671200';
+$GLOBALS['meta_maj']['articles_ps'] = '1097671200';
+$GLOBALS['meta_maj']['articles_redac'] = '1097671200';
+$GLOBALS['meta_maj']['articles_mots'] = '1125485147';
+$GLOBALS['meta_maj']['post_dates'] = '1097671200';
+$GLOBALS['meta_maj']['articles_urlref'] = '1097671200';
+$GLOBALS['meta_maj']['creer_preview'] = '1094321467';
+$GLOBALS['meta_maj']['taille_preview'] = '1086706676';
+$GLOBALS['meta_maj']['articles_modif'] = '1125485147';
+$GLOBALS['meta_maj']['activer_sites'] = '1097671200';
+$GLOBALS['meta_maj']['proposer_sites'] = '1130151208';
+$GLOBALS['meta_maj']['activer_syndic'] = '1097671200';
+$GLOBALS['meta_maj']['visiter_sites'] = '1097671200';
+$GLOBALS['meta_maj']['moderation_sites'] = '1097671200';
+$GLOBALS['meta_maj']['forums_publics'] = '1104310052';
+$GLOBALS['meta_maj']['accepter_inscriptions'] = '1104310052';
+$GLOBALS['meta_maj']['prevenir_auteurs'] = '1104310052';
+$GLOBALS['meta_maj']['activer_messagerie'] = '1104310052';
+$GLOBALS['meta_maj']['activer_imessage'] = '1086706676';
+$GLOBALS['meta_maj']['suivi_edito'] = '1104310052';
+$GLOBALS['meta_maj']['quoi_de_neuf'] = '1104310052';
+$GLOBALS['meta_maj']['forum_prive_admin'] = '1104310052';
+$GLOBALS['meta_maj']['activer_moteur'] = '1125485147';
+$GLOBALS['meta_maj']['activer_statistiques'] = '1125485147';
+$GLOBALS['meta_maj']['documents_article'] = '1097671200';
+$GLOBALS['meta_maj']['documents_rubrique'] = '1097671200';
+$GLOBALS['meta_maj']['charset'] = '1086706676';
+$GLOBALS['meta_maj']['creer_htpasswd'] = '1086706676';
+$GLOBALS['meta_maj']['langue_site'] = '1086706676';
+$GLOBALS['meta_maj']['multi_articles'] = '1086706676';
+$GLOBALS['meta_maj']['multi_rubriques'] = '1086706676';
+$GLOBALS['meta_maj']['multi_secteurs'] = '1086706676';
+$GLOBALS['meta_maj']['gerer_trad'] = '1086706676';
+$GLOBALS['meta_maj']['langues_multilingue'] = '1086706676';
+$GLOBALS['meta_maj']['date_purge_cache'] = '1119427883';
+$GLOBALS['meta_maj']['date_stats_referers'] = '1119427883';
+$GLOBALS['meta_maj']['calculer_referers_now'] = '1119429488';
+$GLOBALS['meta_maj']['date_statistiques'] = '1132526654';
+$GLOBALS['meta_maj']['date_stats_popularite'] = '1119427883';
+$GLOBALS['meta_maj']['popularite_max'] = '1132579921';
+$GLOBALS['meta_maj']['popularite_total'] = '1132579921';
+$GLOBALS['meta_maj']['nom_site'] = '1097671200';
+$GLOBALS['meta_maj']['adresse_site'] = '1125485147';
+$GLOBALS['meta_maj']['alea_ephemere_ancien'] = '1132492297';
+$GLOBALS['meta_maj']['alea_ephemere'] = '1132492297';
+$GLOBALS['meta_maj']['http_proxy'] = '1125485147';
+$GLOBALS['meta_maj']['fichier_restauration'] = '1086707128';
+$GLOBALS['meta_maj']['calcul_rubriques'] = '1109067358';
+$GLOBALS['meta_maj']['version_archive_restauration'] = '1086707129';
+$GLOBALS['meta_maj']['email_envoi'] = '1104310052';
+$GLOBALS['meta_maj']['adresse_neuf'] = '1091198828';
+$GLOBALS['meta_maj']['jours_neuf'] = '1091198828';
+$GLOBALS['meta_maj']['majnouv'] = '1091193458';
+$GLOBALS['meta_maj']['date_optimisation'] = '1112630524';
+$GLOBALS['meta_maj']['adresse_suivi'] = '1104310052';
+$GLOBALS['meta_maj']['adresse_suivi_inscription'] = '1104310052';
+$GLOBALS['meta_maj']['date_calcul_rubriques'] = '1132580630';
+$GLOBALS['meta_maj']['accepter_visiteurs'] = '1112631614';
+$GLOBALS['meta_maj']['articles_versions'] = '1125485147';
+$GLOBALS['meta_maj']['articles_ortho'] = '1125485147';
+$GLOBALS['meta_maj']['preview'] = '1125485147';
+$GLOBALS['meta_maj']['creer_htaccess'] = '1112631614';
+$GLOBALS['meta_maj']['gd_formats'] = '1125517952';
+$GLOBALS['meta_maj']['gd_formats_read'] = '1125517952';
+$GLOBALS['meta_maj']['netpbm_formats'] = '1125481513';
+$GLOBALS['meta_maj']['miroir_ortho_3'] = '1132309301';
+$GLOBALS['meta_maj']['liste_miroirs_ortho'] = '1132309301';
+$GLOBALS['meta_maj']['maj_miroirs_ortho'] = '1132309301';
+$GLOBALS['meta_maj']['miroir_ortho_1'] = '1132309301';
+$GLOBALS['meta_maj']['miroir_ortho_2'] = '1132309301';
+
+?>
\ No newline at end of file
/trunk/actu/ecrire/data/forum_1912799676.lck
/trunk/actu/ecrire/data/statistiques.lock
--- spip_cookie.php (revision 0)
+++ spip_cookie.php (revision 4)
@@ -0,0 +1,142 @@
+<?php
+/*vim: set expandtab tabstop=4 shiftwidth=4: */
+// +------------------------------------------------------------------------------------------------------+
+// | PHP version 4.1 |
+// +------------------------------------------------------------------------------------------------------+
+// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org) |
+// +------------------------------------------------------------------------------------------------------+
+// | This library is free software; you can redistribute it and/or |
+// | modify it under the terms of the GNU Lesser General Public |
+// | License as published by the Free Software Foundation; either |
+// | version 2.1 of the License, or (at your option) any later version. |
+// | |
+// | This library is distributed in the hope that it will be useful, |
+// | but WITHOUT ANY WARRANTY; without even the implied warranty of |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
+// | Lesser General Public License for more details. |
+// | |
+// | You should have received a copy of the GNU Lesser General Public |
+// | 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: spip_cookie.php,v 1.1 2004/07/20 10:01:22 alex Exp $
+/**
+* Envoie de cookie pour SPIP à partir d'une inscription
+*
+* Envoie de cookie pour SPIP à partir d'une inscription
+*
+*@package inscription
+//Auteur original :
+*@author Alexandre Granier <alexandre@tela-botanica.org>
+//Autres auteurs :
+*@author Aucun
+*@copyright Tela-Botanica 2000-2004
+*@version $Revision: 1.1 $ $Date: 2004/07/20 10:01:22 $
+// +------------------------------------------------------------------------------------------------------+
+*/
+
+
+// Ce fichier doit être placé à la racine de SPIP
+// Il doit être appellé dans chaque squelette
+// après l'ouverture d'une session, si on ouvre une session
+
+// Il faut récupérer une valeur userid, c'est à dire
+// loggué l'utilisateur par exemple avec PEAR
+
+
+define ("SPIP_CHEMIN", "actu/") ;
+
+//
+// Ajouter une session pour l'auteur specifie
+// Modifié pour éviter un Warning
+
+if (!defined ('CHEMIN_SPIP')) {
+ define ('CHEMIN_SPIP', '') ;
+}
+
+function ajouter_session_($auteur, $id_session, $id_auteur, $alea) {
+ //$fichier_session = CHEMIN_SPIP.'ecrire/data/session_'.$id_auteur.'_'.md5($id_session.' '.$alea).'.php3';
+ $fichier_session = CHEMIN_SPIP.'ecrire/data/session_'.$id_auteur.'_'.$id_session.'.php3';
+ $vars = array('id_auteur', 'nom', 'login', 'email', 'statut', 'lang' /*, 'ip_change'*/, 'hash_env' );
+ $auteur['hash_env'] = hash_env_() ;
+ $texte = "<"."?php\n";
+ reset($vars);
+ while (list(, $var) = each($vars)) {
+ $texte .= "\$GLOBALS['auteur_session']['$var'] = '".addslashes($auteur[$var])."';\n";
+ }
+ $texte .= "?".">\n";
+
+ if ($f = fopen($fichier_session, "wb")) {
+ fputs($f, $texte);
+ fclose($f);
+ }
+}
+
+function hash_env_() {
+ global $HTTP_SERVER_VARS;
+ return md5($HTTP_SERVER_VARS['REMOTE_ADDR'] . $HTTP_SERVER_VARS['HTTP_USER_AGENT']);
+}
+
+
+// On recherche userid
+
+
+
+if ($userid != 0) {
+
+ // recherche du login dans la table spip_auteur
+ // Soit c'est l'email, soit c'est un nom wiki
+
+ mysql_select_db ('tela_prod_v4') ;
+ $resultat_mail = mysql_query ('select U_MAIL, U_ID from annuaire_tela where U_ID='.$userid)
+ or die ("Echec requete<br />".mysql_error());
+ $ligne_mail = mysql_fetch_object ($resultat_mail) ;
+
+ $l = mysql_connect ('localhost', 'telabotap', '') ;
+ mysql_select_db ("tela_prod_spip_actu", $l) ;
+
+ $requete_login = 'select login, id_auteur from tela_prod_spip_actu.spip_auteurs where email = "'.$ligne_mail->U_MAIL.'"' ;
+ $resultat_login = mysql_query ($requete_login, $l)
+ or die ('Echec'.mysql_error()) ;
+ $ligne_login = mysql_fetch_object ($resultat_login) ;
+
+ setcookie("spip_admin", "@".$ligne_login->login, time()+3600*24*30, "/actu/") ;
+ $id = $ligne_login->id_auteur ;
+
+ $query = "SELECT * FROM spip_auteurs WHERE id_auteur=$ligne_login->id_auteur";
+ $result = mysql_query($query, $l);
+ $GLOBALS['auteur_session'] = @mysql_fetch_array($result) ;
+ $GLOBALS['auteur_session']['statut'] = "1comite" ;
+ $GLOBALS['auteur_session']['lang'] = "en" ;
+
+ // recherche de l'alea éphémère dans spip_meta
+ $requete_meta = 'select nom,valeur from spip_meta' ;
+ $resultat_meta = mysql_query ($requete_meta) or die ('echec') ;
+ while ($ligne_meta = mysql_fetch_object ($resultat_meta) ) {
+ if ($ligne_meta->nom == 'alea_ephemere') {
+ $alea = $ligne_meta->valeur ;
+ }
+ }
+
+
+
+
+ if (!isset ($HTTP_COOKIE_VARS['spip_session'])) {
+ $id_session = $id."_".(md5 (uniqid (rand ())));
+ setcookie("spip_session", $id_session, time()+3600*24*30, "/actu/") ;
+
+ } else {
+ $id_session = preg_replace("/[0-9]+_/", '', $HTTP_COOKIE_VARS["spip_session"]) ;
+
+ //$id_session = $HTTP_COOKIE_VARS['spip_session'] ;
+
+ setcookie("spip_session", $id.'_'.$id_session, time()+3600*24*30, "/actu/") ;
+ }
+ ajouter_session_($GLOBALS['auteur_session'], $id_session, $ligne_login->id_auteur, $alea) ;
+ // reconnection à la base botanica
+ $GS_GLOBAL['link'] = mysql_connect ('localhost', 'telabotap', '') ;
+ mysql_select_db ('tela_prod_v4') ;
+
+}
+
+?>
/trunk/actu/ecrire/data/mysql_out
/trunk/actu/ecrire/data/index.lock
/trunk/actu/ecrire/data/optimiser.lock