[ Index ] |
|
Code source de SPIP Agora 1.4 |
1 <?php 2 /***************************************************** 3 * This file is part of Agora, web based content management system. 4 * 5 * Agora is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; version 2 of the License. 8 * 9 * Agora is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details (file "COPYING"). 13 * 14 * Copyright © Arnaud Martin, Antoine Pitrou et Philippe Rivière. 15 * List of authors detailed in "copyright_fr.html" file. 16 * E-mail : agora@sig.premier-ministre.gouv.fr 17 * Web site : http://www.agora.gouv.fr 18 *****************************************************/ 19 // Ce fichier ne sera execute qu'une fois 20 if (defined("_INC_CHAMP_SQUEL")) 21 return; 22 23 define("_INC_CHAMP_SQUEL", "1"); 24 25 function init_champs_squel () { 26 global $champs_valides; 27 global $champs_traitement, $champs_pretraitement, $champs_posttraitement; 28 29 global $rows_articles; 30 global $rows_signatures; 31 /******* Ajout elebescond@clever-age.com *********/ 32 global $rows_sondage; 33 /******* Fin ajout elebescond@clever-age.com *********/ 34 global $rows_syndication; 35 global $rows_syndic_articles; 36 global $rows_documents; 37 global $rows_types_documents; 38 global $rows_rubriques; 39 global $rows_forums; 40 global $rows_breves; 41 global $rows_auteurs; 42 global $rows_hierarchie; 43 /******* Ajout elebescond@clever-age.com *********/ 44 global $rows_hierarchie_mot; 45 /******* Fin Ajout elebescond@clever-age.com *********/ 46 global $rows_mots; 47 global $rows_groupes_mots; 48 49 global $tables_relations; 50 global $tables_code_contexte; 51 global $tables_doublons; 52 53 // 54 // Construire un tableau des tables de relations 55 // 56 57 $tables_relations = ''; 58 59 $tables_relations['articles']['id_mot'] = $GLOBALS['table_prefix']. '_mots_articles'; 60 $tables_relations['articles']['id_auteur'] = $GLOBALS['table_prefix']. '_auteurs_articles'; 61 $tables_relations['articles']['id_document'] = $GLOBALS['table_prefix']. '_documents_articles'; 62 63 $tables_relations['articles']['id_post'] = $GLOBALS['table_prefix']. '_cm_posts_articles'; 64 65 $tables_relations['rubriques']['id_document'] = $GLOBALS['table_prefix']. '_documents_rubriques'; 66 67 $tables_relations['auteurs']['id_article'] = $GLOBALS['table_prefix']. '_auteurs_articles'; 68 $tables_relations['auteurs']['id_mot'] = $GLOBALS['table_prefix']. '_mots_auteurs'; 69 70 $tables_relations['breves']['id_mot'] = $GLOBALS['table_prefix']. '_mots_breves'; 71 $tables_relations['breves']['id_document'] = $GLOBALS['table_prefix']. '_documents_breves'; 72 73 $tables_relations['documents']['id_article'] = $GLOBALS['table_prefix']. '_documents_articles'; 74 $tables_relations['documents']['id_rubrique'] = $GLOBALS['table_prefix']. '_documents_rubriques'; 75 $tables_relations['documents']['id_breve'] = $GLOBALS['table_prefix']. '_documents_breves'; 76 77 $tables_relations['mots']['id_auteur'] = $GLOBALS['table_prefix']. '_mots_auteurs'; 78 $tables_relations['mots']['id_article'] = $GLOBALS['table_prefix']. '_mots_articles'; 79 $tables_relations['mots']['id_breve'] = $GLOBALS['table_prefix']. '_mots_breves'; 80 $tables_relations['mots']['id_forum'] = $GLOBALS['table_prefix']. '_mots_forum'; 81 $tables_relations['mots']['id_rubrique'] = $GLOBALS['table_prefix']. '_mots_rubriques'; 82 $tables_relations['mots']['id_syndic'] = $GLOBALS['table_prefix']. '_mots_syndic'; 83 84 $tables_relations['articles']['pst_id'] = $GLOBALS['table_prefix']. '_cm_posts_articles'; 85 86 $tables_relations['groupes_mots']['id_groupe'] = $GLOBALS['table_prefix']. '_mots'; 87 88 $tables_relations['rubriques']['id_document'] = $GLOBALS['table_prefix']. '_documents_rubriques'; 89 $tables_relations['rubriques']['id_mot'] = $GLOBALS['table_prefix']. '_mots_rubriques'; 90 $tables_relations['forums']['id_mot'] = $GLOBALS['table_prefix']. '_mots_forum'; 91 92 $tables_relations['syndication']['id_mot'] = $GLOBALS['table_prefix']. '_mots_syndic'; 93 94 $c = array(); 95 reset ($c); 96 97 while (list(, $val) = each($c)) { 98 unset ($champs_traitement[$val]); 99 unset ($champs_pretraitement[$val]); 100 unset ($champs_posttraitement[$val]); 101 $champs_valides[$val] = $val; 102 } 103 104 // 105 // Construire un tableau associatif des codes de champ utilisables 106 // 107 108 $c = array('NOM_SITE_SPIP', 'URL_SITE_SPIP', 'EMAIL_WEBMASTER', 'CHARSET', 'ID_ARTICLE', 109 'ID_RUBRIQUE', 'ID_BREVE', 'ID_FORUM', 'ID_PARENT', 'ID_SECTEUR', 'ID_DOCUMENT', 'ID_TYPE', 110 'ID_AUTEUR', 'ID_MOT', 'ID_SYNDIC_ARTICLE', 'ID_SYNDIC', 'ID_SIGNATURE', 'ID_GROUPE', 'TITRE', 111 'SURTITRE', 'SOUSTITRE', 'DESCRIPTIF', 'CHAPO', 'TEXTE', 'PS', 'NOTES', 'INTRODUCTION', 112 'MESSAGE', 'DATE', 'DATE_REDAC', 'DATE_MODIF', 'DATE_NOUVEAUTES', 'INCLUS', 'LANG', 113 'LANG_LEFT', 'LANG_RIGHT', 'LANG_DIR', 'LESAUTEURS', 'EMAIL', 'NOM_SITE', 'LIEN_TITRE', 114 'URL_SITE', 'LIEN_URL', 'NOM', 'BIO', 'TYPE', 'PGP', 'FORMULAIRE_ECRIRE_AUTEUR', 115 'FORMULAIRE_FORUM', 'FORMULAIRE_SITE', 'PARAMETRES_FORUM', 'FORMULAIRE_RECHERCHE', 116 'RECHERCHE', 'FORMULAIRE_INSCRIPTION', 'FORMULAIRE_SIGNATURE', 'LOGO_MOT', 'LOGO_RUBRIQUE', 117 'LOGO_RUBRIQUE_NORMAL', 'LOGO_RUBRIQUE_SURVOL', 'LOGO_AUTEUR', 'LOGO_AUTEUR_NORMAL', 118 'LOGO_AUTEUR_SURVOL', 'LOGO_SITE', 'LOGO_BREVE', 'LOGO_BREVE_RUBRIQUE', 'LOGO_DOCUMENT', 119 'LOGO_ARTICLE', 'LOGO_ARTICLE_RUBRIQUE', 'LOGO_ARTICLE_NORMAL', 'LOGO_ARTICLE_SURVOL', 120 'URL_ARTICLE', 'URL_RUBRIQUE', 'URL_BREVE', 'URL_FORUM', 'URL_SYNDIC', 'URL_MOT', 121 'URL_DOCUMENT', 'EMBED_DOCUMENT', 'IP', 'VISITES', 'POPULARITE', 'POPULARITE_ABSOLUE', 122 'POPULARITE_MAX', 'POPULARITE_SITE', 'POINTS', 'COMPTEUR_BOUCLE', 'TOTAL_BOUCLE', 'PETITION', 123 'LARGEUR', 'HAUTEUR', 'TAILLE', 'EXTENSION', 'DEBUT_SURLIGNE', 'FIN_SURLIGNE', 'TYPE_DOCUMENT', 124 'EXTENSION_DOCUMENT', 'FORMULAIRE_ADMIN', 'LOGIN_PRIVE', 'LOGIN_PUBLIC', 'URL_LOGOUT', 'PUCE', 125 'EXTRA', 126 /******* Ajout EXTRANET guillaume.grason@diplomatie.gouv.fr *******/ 127 'LOGIN_EXTRANET', 128 /******* Fin Ajout EXTRANET guillaume.grason@diplomatie.gouv.fr *******/ 129 /************ Ajout elebescond@clever-age.com *****************/ 130 'FORMULAIRE_RECHERCHE_FORUM', 'URL_LOGOUT_AGORA', 'CONNECT_LOGIN', 'CONNECT_ID_USER', 131 'PROFIL_AUTEUR', 'FORMULAIRE_INSCRIPTION_NEWSLETTER', 'FORMULAIRE_SONDAGE', 'TEXTE_REPONSE', 132 'VOTES_NOMBRE', 'VOTES_TOTAL', 'VOTES_POURCENTAGE', 'FORMULAIRE_PERSONNALISATION', 133 'GESTION_FAVORIS', 'ID_STAT_TIERS', 'URL_STAT_TIERS', 'FORMULAIRE_RECOMMANDER', 'URL_RUBRIQUE_MOT', 134 'URL_MOT_RUBRIQUE', 'URL_ARTICLE_MOT', 'URL_MOT_ARTICLE', 'URL_BREVE_MOT', 'URL_MOT_BREVE', 135 'URL_AUTEUR_MOT', 'URL_MOT_AUTEUR', 136 /************ Fin Ajout elebescond@clever-age.com *****************/ 137 /********** Modification LEVEL D'UN MOT johnny.muller@ypok.com **********/ 138 'LEVEL', 139 /********** Fin Modification LEVEL D'UN MOT johnny.muller@ypok.com **********/ 140 /************ Ajout omansour@clever-age.com *****************/ 141 'DOSSIER_SQUELETTES', 'FORMULAIRE_ECRIRE_WEBMESTRE', 'URL_AUTEUR', 142 /************ Fin Ajout omansour@clever-age.com *****************/ 143 'FORMULAIRE_SONDAGE_LIBRE', 144 /************ Ajout fxlactroix@clever-age.com *****************/ 145 'DERNIERES_VISITES', 146 /************ Fin Ajout fxlactroix@clever-age.com *****************/ 147 /******* Ajout CONTACTS guillaume.grason@diplomatie.gouv.fr *******/ 148 'FORMULAIRE_ECRIRE_AUTEUR_RUBRIQUE', 149 /******* Fin Ajout CONTACTS guillaume.grason@diplomatie.gouv.fr *******/ 150 /************ Ajout tbeaumanoir@clever-age.com *****************/ 151 'VERSION_INSTALLEE', 152 /************ Fin Ajout tbeaumanoir@clever-age.com *****************/ 153 'FORMULAIRE_INSCRIPTION_VISITEUR', 'FORMULAIRE_MODIFICATION_PASSWORD', 154 'FORMULAIRE_MODIFICATION_EMAIL' 155 ); 156 reset ($c); 157 158 while (list(, $val) = each($c)) { 159 unset ($champs_traitement[$val]); 160 unset ($champs_pretraitement[$val]); 161 unset ($champs_posttraitement[$val]); 162 $champs_valides[$val] = $val; 163 } 164 165 // 166 // Construire un tableau associatif des pre-traitements de champs 167 // 168 169 // Textes utilisateur : ajouter la securite anti-script 170 $c = array('NOM_SITE_SPIP', 'URL_SITE_SPIP', 'EMAIL_WEBMASTER', 'CHARSET', 'TITRE', 'SURTITRE', 171 'SOUSTITRE', 'DESCRIPTIF', 'CHAPO', 'TEXTE', 'PS', 'NOTES', 'INTRODUCTION', 'MESSAGE', 172 'LESAUTEURS', 'EMAIL', 'NOM_SITE', 'LIEN_TITRE', 'URL_SITE', 'LIEN_URL', 'NOM', 'IP', 'BIO', 173 'TYPE', 'PGP', 'RECHERCHE', 174 /************ Ajout elebescond@clever-age.com *****************/ 175 'TEXTE_REPONSE', 'ID_STAT_TIERS', 'URL_STAT_TIERS', 176 /************ Fin Ajout elebescond@clever-age.com *****************/ 177 /************ Ajout omansour@clever-age.com *****************/ 178 'DOSSIER_SQUELETTES', 179 /************ Fin Ajout omansour@clever-age.com *****************/ 180 ); 181 reset ($c); 182 183 while (list(, $val) = each($c)) { 184 $champs_pretraitement[$val][] = 'trim'; 185 $champs_posttraitement[$val][] = 'interdire_scripts'; 186 } 187 188 $c = array('EXTRA'); 189 reset ($c); 190 191 while (list(, $val) = each($c)) { 192 $champs_posttraitement[$val][] = 'interdire_scripts'; 193 } 194 195 // Textes courts : ajouter le traitement typographique 196 $c = array('NOM_SITE_SPIP', 'SURTITRE', 'TITRE', 'SOUSTITRE', 'NOM_SITE', 'LIEN_TITRE', 'NOM', 197 /************ Ajout elebescond@clever-age.com *****************/ 198 'TEXTE_REPONSE', 'ID_STAT_TIERS', 'URL_STAT_TIERS' 199 /************ Fin Ajout elebescond@clever-age.com *****************/ 200 ); 201 202 reset ($c); 203 204 while (list(, $val) = each($c)) { 205 $champs_traitement[$val][] = 'typo'; 206 } 207 208 // Chapo : ne pas l'afficher si article virtuel 209 $c = array('CHAPO'); 210 reset ($c); 211 212 while (list(, $val) = each($c)) { 213 $champs_traitement[$val][] = 'nettoyer_chapo'; 214 } 215 216 // Textes longs : ajouter le traitement typographique + mise en forme 217 $c = array('DESCRIPTIF', 'CHAPO', 'TEXTE', 'PS', 'BIO', 'MESSAGE'); 218 reset ($c); 219 220 while (list(, $val) = each($c)) { 221 $champs_traitement[$val][] = 'traiter_raccourcis'; 222 } 223 224 // Dates : ajouter le vidage des dates egales a 00-00-0000 225 $c = array('DATE', 'DATE_REDAC', 'DATE_MODIF', 'DATE_NOUVEAUTES'); 226 reset ($c); 227 228 while (list(, $val) = each($c)) { 229 $champs_traitement[$val][] = 'vider_date'; 230 } 231 232 // URL_SITE : vider les url == 'http://' 233 $c = array('URL_SITE_SPIP', 'URL_SITE', 'LIEN_URL'); 234 reset ($c); 235 236 while (list(, $val) = each($c)) { 237 $champs_traitement[$val][] = 'vider_url'; 238 } 239 240 // URLs : remplacer les & par & 241 $c = array('URL_SITE_SPIP', 'URL_SITE', 'LIEN_URL', 'PARAMETRES_FORUM', 'URL_ARTICLE', 242 'URL_RUBRIQUE', 'URL_BREVE', 'URL_FORUM', 'URL_SYNDIC', 'URL_MOT', 'URL_DOCUMENT'); 243 // ajout Olivier Mansour 244 $c[] = 'URL_AUTEUR'; 245 /****** Ajout elebescond@clever-age.com *********/ 246 $c[] = 'URL_RUBRIQUE_MOT'; 247 $c[] = 'URL_MOT_RUBRIQUE'; 248 $c[] = 'URL_ARTICLE_MOT'; 249 $c[] = 'URL_MOT_ARTICLEE'; 250 $c[] = 'URL_BREVE_MOT'; 251 $c[] = 'URL_MOT_BREVE'; 252 $c[] = 'URL_AUTEUR_MOT'; 253 $c[] = 'URL_MOT_AUTEUR'; 254 /****** Fin ajout elebescond@clever-age.com *********/ 255 reset ($c); 256 257 while (list(, $val) = each($c)) { 258 $champs_traitement[$val][] = 'htmlspecialchars'; 259 } 260 261 // 262 // Construire un tableau associatif des champs de chaque type 263 // avec l'intitule de la colonne mysql correspondante 264 // 265 266 $rows_articles = array( 267 'ID_ARTICLE' => 'id_article', 268 'ID_RUBRIQUE' => 'id_rubrique', 269 'ID_SECTEUR' => 'id_secteur', 270 'SURTITRE' => 'surtitre', 271 'TITRE' => 'titre', 272 'SOUSTITRE' => 'soustitre', 273 'DESCRIPTIF' => 'descriptif', 274 'CHAPO' => 'chapo', 275 'TEXTE' => 'texte', 276 'PS' => 'ps', 277 'LANG' => 'lang', 278 //------Modification elebescond@clever-age.com-------> 279 'DATE' => 'date_heure', 280 //'DATE' => 'date', 281 //------Fin Modification elebescond@clever-age.com-------> 282 'DATE_REDAC' => 'date_redac', 283 'NOM_SITE' => 'nom_site', 284 'URL_SITE' => 'url_site', 285 'DATE_MODIF' => 'date_modif', 286 'VISITES' => 'visites', 287 'POINTS' => 'points'); 288 289 $rows_auteurs = array( 290 'ID_AUTEUR' => 'id_auteur', 291 'NOM' => 'nom', 292 'BIO' => 'bio', 293 'EMAIL' => 'email', 294 'NOM_SITE' => 'nom_site', 295 'URL_SITE' => 'url_site', 296 'PGP' => 'pgp', 297 'LANG' => 'lang', 298 'POINTS' => 'points'); 299 300 $rows_breves = array( 301 'ID_BREVE' => 'id_breve', 302 'ID_RUBRIQUE' => 'id_rubrique', 303 'ID_SECTEUR' => 'id_rubrique', 304 'DATE' => 'date_heure', 305 'TITRE' => 'titre', 306 'TEXTE' => 'texte', 307 'LANG' => 'lang', 308 'NOM_SITE' => 'lien_titre', 309 'URL_SITE' => 'lien_url', 310 'LIEN_TITRE' => 'lien_titre', 311 'LIEN_URL' => 'lien_url', 312 'POINTS' => 'points'); 313 314 $rows_forums = array( 315 'ID_FORUM' => 'id_forum', 316 'ID_PARENT' => 'id_parent', 317 'ID_BREVE' => 'id_breve', 318 'ID_RUBRIQUE' => 'id_rubrique', 319 'ID_ARTICLE' => 'id_article', 320 'TITRE' => 'titre', 321 'TEXTE' => 'texte', 322 'DATE' => 'date_heure', 323 'NOM' => 'auteur', 324 'EMAIL' => 'email_auteur', 325 'NOM_SITE' => 'nom_site', 326 'URL_SITE' => 'url_site', 327 //------ Ajout elebescond@clever-age.com -------> 328 'PROFIL_AUTEUR' => 'intitule', 329 //------ Fin Ajout elebescond@clever-age.com -------> 330 'IP' => 'ip'); 331 332 $rows_documents = array( 333 'ID_DOCUMENT' => 'id_document', 334 'ID_VIGNETTE' => 'id_vignette', 335 'ID_TYPE' => 'id_type', 336 'TITRE' => 'titre', 337 'DESCRIPTIF' => 'descriptif', 338 //------Modification elebescond@clever-age.com-------> 339 'DATE' => 'date_heure', 340 //'DATE' => 'date', 341 //------Fin Modification elebescond@clever-age.com-------> 342 'LARGEUR' => 'largeur', 343 'HAUTEUR' => 'hauteur', 344 'TAILLE' => 'taille', 345 'TYPE_DOCUMENT' => 'type_document', 346 //------ Ajout elebescond@clever-age.com -------> 347 'POINTS' => 'points', 348 //------ Fin Ajout elebescond@clever-age.com -------> 349 'EXTENSION_DOCUMENT' => 'extension_document'); 350 351 $rows_types_documents = array( 352 'ID_TYPE' => 'id_type', 353 'TITRE' => 'titre', 354 'DESCRIPTIF' => 'descriptif', 355 'EXTENSION' => 'extension'); 356 357 $rows_mots = array( 358 'ID_MOT' => 'id_mot', 359 'TYPE' => 'type', 360 'TITRE' => 'titre', 361 'DESCRIPTIF' => 'descriptif', 362 'TEXTE' => 'texte', 363 'POINTS' => 'points', 364 //------ Ajout elebescond@clever-age.com -------> 365 /********** Modification LEVEL D'UN MOT johnny.muller@ypok.com **********/ 366 'LEVEL' => 'level_mot', 367 //'LEVEL' => 'level', 368 /********** Fin Modification LEVEL D'UN MOT johnny.muller@ypok.com **********/ 369 //------ Fin Ajout elebescond@clever-age.com -------> 370 'ID_GROUPE' => 'id_groupe'); 371 372 $rows_hierarchie_mot = $rows_mots; 373 374 $rows_groupes_mots = array( 375 'ID_GROUPE' => 'id_groupe', 376 'TITRE' => 'titre'); 377 378 $rows_rubriques = array( 379 'ID_RUBRIQUE' => 'id_rubrique', 380 'ID_PARENT' => 'id_parent', 381 'ID_SECTEUR' => 'id_secteur', 382 'TITRE' => 'titre', 383 'DESCRIPTIF' => 'descriptif', 384 'TEXTE' => 'texte', 385 'LANG' => 'lang', 386 //------Modification elebescond@clever-age.com-------> 387 'DATE' => 'date_heure', 388 //'DATE' => 'date', 389 //------Fin Modification elebescond@clever-age.com-------> 390 'POINTS' => 'points'); 391 392 $rows_hierarchie = $rows_rubriques; 393 394 $rows_signatures = array( 395 'ID_SIGNATURE' => 'id_signature', 396 'ID_ARTICLE' => 'id_article', 397 'DATE' => 'date_time', 398 'NOM' => 'nom_email', 399 'EMAIL' => 'ad_email', 400 'NOM_SITE' => 'nom_site', 401 'URL_SITE' => 'url_site', 402 'MESSAGE' => 'message'); 403 404 $rows_syndication = array( 405 'ID_SYNDIC' => 'id_syndic', 406 'ID_RUBRIQUE' => 'id_rubrique', 407 'ID_SECTEUR' => 'id_secteur', 408 'NOM_SITE' => 'nom_site', 409 'URL_SITE' => 'url_site', 410 'URL_SYNDIC' => 'url_syndic', 411 'DESCRIPTIF' => 'descriptif', 412 //------Modification elebescond@clever-age.com-------> 413 'DATE' => 'date_heure', 414 //'DATE' => 'date', 415 //------Fin Modification elebescond@clever-age.com-------> 416 'POINTS' => 'points'); 417 418 $rows_syndic_articles = array( 419 'ID_SYNDIC_ARTICLE' => 'id_syndic_article', 420 'ID_SYNDIC' => 'id_syndic', 421 'TITRE' => 'titre', 422 'URL_ARTICLE' => 'url', 423 //------Modification elebescond@clever-age.com-------> 424 'DATE' => 'date_heure', 425 //'DATE' => 'date', 426 //------Fin Modification elebescond@clever-age.com-------> 427 'LESAUTEURS' => 'lesauteurs', 428 'DESCRIPTIF' => 'descriptif', 429 'NOM_SITE' => 'nom_site', 430 'URL_SITE' => 'url_site'); 431 432 //------Ajout elebescond@clever-age.com-------> 433 $rows_sondage = array('TEXTE_REPONSE' => 'texte_reponse'); 434 //------Fin Ajout elebescond@clever-age.com-------> 435 436 $tables_code_contexte = array( 437 'articles' => ' 438 $contexte["id_article"] = $row["id_article"]; 439 $contexte["id_rubrique"] = $row["id_rubrique"]; 440 $contexte["id_secteur"] = $row["id_secteur"]; 441 //------Modification elebescond@clever-age.com-----------> 442 $contexte["date"] = $row["date_heure"]; 443 //$contexte["date"] = $row["date"]; 444 //------Modification elebescond@clever-age.com-----------> 445 $contexte["date_redac"] = $row["date_redac"]; 446 $contexte["accepter_forum"] = $row["accepter_forum"]; 447 //------ Ajout elebescond@clever-age.com -------> 448 $contexte["id_post_newsletter"] = $id_post_newsletter; 449 //------ Fin Ajout elebescond@clever-age.com -------> 450 $contexte["id_trad"] = $row["id_trad"]; 451 ', 452 'breves' => ' 453 $contexte["id_breve"] = $row["id_breve"]; 454 $contexte["id_rubrique"] = $row["id_rubrique"]; 455 $contexte["id_secteur"] = $row["id_rubrique"]; 456 $contexte["date"] = $row["date_heure"]; 457 ', 458 'rubriques' => ' 459 $contexte["id_rubrique"] = $row["id_rubrique"]; 460 $contexte["id_parent"] = $row["id_parent"]; 461 $contexte["id_secteur"] = $row["id_secteur"]; 462 //------Modification elebescond@clever-age.com-----------> 463 $contexte["date"] = $row["date_heure"]; 464 //$contexte["date"] = $row["date"]; 465 //------Modification elebescond@clever-age.com-----------> 466 ', 467 'hierarchie' => ' 468 $contexte["id_rubrique"] = $row["id_rubrique"]; 469 $contexte["id_parent"] = $row["id_parent"]; 470 $contexte["id_secteur"] = $row["id_secteur"]; 471 //------Modification elebescond@clever-age.com-----------> 472 $contexte["date"] = $row["date_heure"]; 473 //$contexte["date"] = $row["date"]; 474 //------Modification elebescond@clever-age.com-----------> 475 ', 476 /********* Ajout elebescond@clever-age.com **********/ 477 'hierarchie_mot' => ' 478 $contexte["id_mot"] = $row["id_mot"]; 479 $contexte["id_groupe"] = $row["id_groupe"]; 480 $contexte["type_mot"] = $row["type_mot"]; 481 $contexte["titre"] = $row["titre"]; 482 $contexte["descriptif"] = $row["descriptif"]; 483 ', 484 /********* Fin ajout elebescond@clever-age.com **********/ 485 'documents' => ' 486 $contexte["id_document"] = $row["id_document"]; 487 $contexte["id_vignette"] = $row["id_vignette"]; 488 $contexte["id_type"] = $row["id_type"]; 489 ', 490 'types_documents' => ' 491 $contexte["id_type"] = $row["id_type"]; 492 ', 493 'forums' => ' 494 $contexte["id_forum"] = $row["id_forum"]; 495 $contexte["id_rubrique"] = $row["id_rubrique"]; 496 $contexte["id_article"] = $row["id_article"]; 497 $contexte["id_breve"] = $row["id_breve"]; 498 $contexte["id_parent"] = $row["id_parent"]; 499 $contexte["date"] = $row["date_heure"]; 500 //------ Ajout elebescond@clever-age.com -------> 501 $contexte["auteur"] = $row["auteur"]; 502 //------ Fin Ajout elebescond@clever-age.com -------> 503 ', 504 'auteurs' => ' 505 $contexte["id_auteur"] = $row["id_auteur"]; 506 ', 507 'signatures' => ' 508 $contexte["id_signature"] = $row["id_signature"]; 509 $contexte["date"] = $row["date_time"]; 510 ', 511 'mots' => ' 512 $contexte["id_mot"] = $row["id_mot"]; 513 $contexte["type"] = $row["type"]; 514 $contexte["id_groupe"] = $row["id_groupe"]; 515 ', 516 'groupes_mots' => ' 517 $contexte["id_groupe"] = $row["id_groupe"]; 518 ', 519 'syndication' => ' 520 $contexte["id_syndic"] = $row["id_syndic"]; 521 $contexte["id_rubrique"] = $row["id_rubrique"]; 522 $contexte["id_secteur"] = $row["id_secteur"]; 523 $contexte["url_site"] = $row["url_site"]; 524 //------Modification elebescond@clever-age.com-----------> 525 $contexte["date"] = $row["date_heure"]; 526 //$contexte["date"] = $row["date"]; 527 //------Modification elebescond@clever-age.com-----------> 528 ', 529 'syndic_articles' => ' 530 $contexte["id_syndic"] = $row["id_syndic"]; 531 $contexte["id_syndic_article"] = $row["id_syndic_article"]; 532 //------Modification elebescond@clever-age.com-----------> 533 $contexte["date"] = $row["date_heure"]; 534 //$contexte["date"] = $row["date"]; 535 //------Modification elebescond@clever-age.com-----------> 536 ', 537 //------ Ajout elebescond@clever-age.com -------> 538 'sondage' => ' 539 $contexte["id_article"] = $row["id_article"]; 540 $contexte["id_reponse"] = $row["id_reponse"]; 541 ' 542 //------ Fin Ajout elebescond@clever-age.com -------> 543 ); 544 545 $tables_doublons = array('articles' => "id_article", 'auteurs' => "id_auteur", 'breves' => "id_breve", 'documents' => "id_document", 'forums' => "id_forum", 'groupes_mots' => "id_groupe", 'hierarchie' => "id_rubrique", 'hierarchie_mot' => "id_mot", 'mots' => "id_mot", 'rubriques' => "id_rubrique", 'signatures' => "id_signature", 'syndication' => "id_syndic", 'syndic_articles' => "syndic_articles", 'types_documents' => "id_document"); 546 } 547 548 init_champs_squel(); 549 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Feb 24 14:40:03 2007 | par Balluche grâce à PHPXref 0.7 |