[ Index ]
 

Code source de SPIP Agora 1.4

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/Agora1-4/ecrire/ -> synchro.php (source)

   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  include  ("inc.php");
  20  
  21  // pour low_sec (iCal)
  22  include_ecrire  ("inc_acces.php");
  23  
  24  ///// debut de la page
  25  debut_page(_T("icone_suivi_activite"), "asuivre", "synchro");
  26  
  27  echo "<br><br><br>";
  28  gros_titre (_T("icone_suivi_activite"));
  29  
  30  debut_gauche();
  31  
  32  debut_boite_info();
  33  
  34  echo "<div class='verdana2'>";
  35  
  36  echo _T('ical_info1'). '<br /><br />';
  37  
  38  echo _T('ical_info2');
  39  
  40  echo "</div>";
  41  
  42  fin_boite_info();
  43  
  44  $suivi_edito = lire_meta("suivi_edito");
  45  $adresse_suivi = lire_meta("adresse_suivi");
  46  $adresse_site = lire_meta("adresse_site");
  47  $adresse_suivi_inscription = lire_meta("adresse_suivi_inscription");
  48  
  49  debut_droite();
  50  
  51  ///
  52  /// Suivi par mailing-list
  53  ///
  54  
  55  if ($suivi_edito == "oui" AND strlen($adresse_suivi) > 3 AND strlen($adresse_suivi_inscription) > 3) {
  56      echo debut_cadre_relief("racine-site-24.gif");
  57      $lien = propre("[->$adresse_suivi_inscription]");
  58  
  59      echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
  60      echo "<TR><TD BGCOLOR='$couleur_foncee' BACKGROUND='img_pack/rien.gif' class='verdana3' style='color:white;'><B>";
  61      echo _T('ical_titre_mailing'). "</FONT></B></TD></TR>";
  62  
  63      echo "<TR><TD BACKGROUND='img_pack/rien.gif' class='serif'>";
  64      echo _T('info_config_suivi_explication');
  65      echo "<p align='center'>$lien</p>\n";
  66      echo "</TD></TR>";
  67      echo "</TABLE>";
  68  
  69      fin_cadre_relief();
  70  
  71      echo "<p>&nbsp;<p>";
  72  }
  73  
  74  ///
  75  /// Suivi par agenda iCal (taches + rendez-vous)
  76  ///
  77  
  78  echo debut_cadre_relief("agenda-24.gif");
  79  
  80  echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
  81  echo "<TR><TD BGCOLOR='$couleur_foncee' BACKGROUND='img_pack/rien.gif' class='verdana3' style='color:white;'><B>";
  82  echo _T('icone_calendrier'). "</FONT></B></TD></TR>";
  83  
  84  echo "<TR><TD BACKGROUND='img_pack/rien.gif' class='serif'>";
  85  echo _T('calendrier_synchro');
  86  
  87  echo '<p>' . _T('ical_info_calendrier'). '</p>';
  88  
  89  function afficher_liens_calendrier ($lien, $icone, $texte) {
  90      global $adresse_site;
  91      echo debut_cadre_enfonce($icone);
  92      echo $texte;
  93      echo "<div>&nbsp;</div>";
  94      echo "<div style='float: left; width: 200px;'>";
  95      icone_horizontale(_T('ical_methode_http'), "$adresse_site/$lien", "calendrier-24.gif");
  96      echo "</div>";
  97  
  98      echo "<div style='float: right; width: 200px;'>";
  99      $webcal = ereg_replace("https?://", "webcal://", $adresse_site);
 100      icone_horizontale(_T('ical_methode_webcal'), "$webcal/$lien", "calendrier-24.gif");
 101      echo "</div>";
 102      echo "<div style='clear:both;'></div>\n";
 103      echo fin_cadre_enfonce();
 104  }
 105  
 106  afficher_liens_calendrier('ical.php', 'site-24.gif', _T('ical_texte_public'));
 107  
 108  echo '<br />';
 109  
 110  afficher_liens_calendrier("spip_cal.php?id=$connect_id_auteur&cle=" . afficher_low_sec($connect_id_auteur, 'ical'), 'cadenas-24.gif', _T('ical_texte_prive'));
 111  
 112  echo "</TD></TR>";
 113  echo "</TABLE>";
 114  
 115  echo fin_cadre_relief();
 116  
 117  echo "<p>&nbsp;<p>";
 118  
 119  ///
 120  /// Suivi par RSS
 121  ///
 122  
 123  echo debut_cadre_relief("site-24.gif");
 124  
 125  echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
 126  echo "<TR><TD BGCOLOR='$couleur_foncee' BACKGROUND='img_pack/rien.gif' class='verdana3' style='color:white;'><B>";
 127  echo _T('ical_titre_rss'). "</B></TD></TR>";
 128  
 129  echo "<TR><TD BACKGROUND='img_pack/rien.gif' class='serif'>";
 130  echo _T('ical_texte_rss'). '<p>';
 131  
 132  echo propre('<cadre>' . $adresse_site . '/backend.php</cadre>');
 133  
 134  echo "</TD></TR>";
 135  echo "</TABLE>";
 136  
 137  echo fin_cadre_relief();
 138  
 139  echo "<p>&nbsp;<p>";
 140  
 141  ///
 142  /// Suivi par Javascript
 143  ///
 144  
 145  echo debut_cadre_relief("doc-24.gif");
 146  
 147  echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
 148  echo "<TR><TD BGCOLOR='$couleur_foncee' BACKGROUND='img_pack/rien.gif' class='verdana3' style='color:white;'><B>";
 149  echo _T('ical_titre_js'). "</FONT></B></TD></TR>";
 150  
 151  echo "<TR><TD BACKGROUND='img_pack/rien.gif' class='serif'>";
 152  echo _T('ical_texte_js'). '<p>';
 153  
 154  echo propre('<cadre><script type="text/javascript" src="' . $adresse_site . '/distrib.php"></script></cadre>');
 155  
 156  echo "</TD></TR>";
 157  echo "</TABLE>";
 158  
 159  echo fin_cadre_relief();
 160  
 161  fin_page();
 162  ?>


Généré le : Sat Feb 24 14:40:03 2007 par Balluche grâce à PHPXref 0.7