[ Index ] |
|
Code source de SPIP 1.9.2c |
1 <?php 2 3 /***************************************************************************\ 4 * SPIP, Systeme de publication pour l'internet * 5 * * 6 * Copyright (c) 2001-2007 * 7 * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * 8 * * 9 * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * 10 * Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. * 11 \***************************************************************************/ 12 13 if (!defined("_ECRIRE_INC_VERSION")) return; 14 15 include_spip('inc/presentation'); 16 charger_generer_url(); 17 include_spip('inc/acces'); // pour low_sec (iCal) 18 19 // http://doc.spip.org/@afficher_liens_calendrier 20 function afficher_liens_calendrier($lien, $icone, $texte) { 21 22 echo debut_cadre_enfonce($icone); 23 echo $texte; 24 echo "<table style='width: 100%;'><tr><td style='width: 200px;'>"; 25 icone_horizontale (_T('ical_methode_http'), $lien, "calendrier-24.gif"); 26 echo "</td>"; 27 echo "<td> </td>"; 28 echo "<td style='width: 200px;'>"; 29 icone_horizontale (_T('ical_methode_webcal'), ereg_replace("https?://", "webcal://", $lien), "calendrier-24.gif"); 30 echo "</td></tr></table>"; 31 echo fin_cadre_enfonce(); 32 } 33 34 // http://doc.spip.org/@exec_synchro_dist 35 function exec_synchro_dist() 36 { 37 global $connect_id_auteur; 38 ///// debut de la page 39 $commencer_page = charger_fonction('commencer_page', 'inc'); 40 echo $commencer_page(_T("icone_suivi_activite"), "accueil", "synchro"); 41 42 echo "<br /><br /><br />"; 43 gros_titre(_T("icone_suivi_activite")); 44 45 46 debut_gauche(); 47 48 debut_boite_info(); 49 50 echo "<div class='verdana2'>"; 51 52 echo _T('ical_info1').'<br /><br />'; 53 54 echo _T('ical_info2'); 55 56 echo "</div>"; 57 58 fin_boite_info(); 59 60 61 $suivi_edito=$GLOBALS['meta']["suivi_edito"]; 62 $adresse_suivi=$GLOBALS['meta']["adresse_suivi"]; 63 $adresse_suivi_inscription=$GLOBALS['meta']["adresse_suivi_inscription"]; 64 65 debut_droite(); 66 67 68 /// 69 /// Suivi par mailing-list 70 /// 71 72 if ($suivi_edito == "oui" AND strlen($adresse_suivi) > 3 AND strlen($adresse_suivi_inscription) > 3) { 73 debut_cadre_enfonce("racine-site-24.gif", false, "", _T('ical_titre_mailing')); 74 $lien = propre("[->$adresse_suivi_inscription]"); 75 76 77 echo _T('info_config_suivi_explication'); 78 echo "<p align='center'><b>$lien</b></p>\n"; 79 80 fin_cadre_enfonce(); 81 } 82 83 84 /// 85 /// Suivi par agenda iCal (taches + rendez-vous) 86 /// 87 88 debut_cadre_relief("agenda-24.gif", false, "", _T('icone_calendrier')); 89 90 echo _T('calendrier_synchro'); 91 92 echo '<p>'._T('ical_info_calendrier').'</p>'; 93 94 95 96 afficher_liens_calendrier(generer_url_public('ical'),'', _T('ical_texte_public')); 97 98 afficher_liens_calendrier(generer_url_action("ical", "id_auteur=$connect_id_auteur&arg=".afficher_low_sec($connect_id_auteur,'ical')),'cadenas-24.gif', _T('ical_texte_prive')); 99 100 101 fin_cadre_relief(); 102 103 104 105 /// 106 /// Suivi par RSS 107 /// 108 109 debut_cadre_relief("site-24.gif", false, "", _T('ical_titre_rss')); 110 111 echo _T('ical_texte_rss'); 112 113 echo "<p>"._T("ical_texte_rss_articles")."</p>"; 114 115 echo propre("<cadre>" . generer_url_public('backend') . "</cadre>"); 116 117 echo "<p>"._T("ical_texte_rss_articles2")."</p>"; 118 119 $result = spip_query("SELECT * FROM spip_rubriques WHERE id_parent='0' ORDER BY 0+titre, titre"); 120 121 if (spip_num_rows($result) > 0) { 122 echo "<ul>"; 123 124 while($row=spip_fetch_array($result)){ 125 $id_rubrique=$row['id_rubrique']; 126 $titre_rubrique = typo($row['titre']); 127 $titre = htmlspecialchars($titre_rubrique); 128 129 echo "<li>", http_href( generer_url_public('backend', "id_rubrique=$id_rubrique"), 130 http_img_pack( 'feed.png', 'RSS', '') .' '. 131 $titre_rubrique, $titre), 132 "</li>\n"; 133 } 134 echo "</ul>"; 135 } 136 137 138 $activer_breves = $GLOBALS['meta']['activer_breves']; 139 140 if ($activer_breves == "oui") { 141 142 echo "<p>"._T("ical_texte_rss_breves")."</p>"; 143 echo '<ul><li>' . 144 http_href( generer_url_public('backend-breves', ""), 145 http_img_pack( 'feed.png', 'RSS', '') .' '. 146 _T('ical_lien_rss_breves'), _T('ical_lien_rss_breves')) . 147 "</li></ul>"; 148 149 } 150 151 fin_cadre_relief(); 152 153 154 155 /// 156 /// Suivi par Javascript 157 /// 158 159 debut_cadre_relief("doc-24.gif", false, "", _T('ical_titre_js')); 160 161 echo _T('ical_texte_js').'<br />'; 162 163 echo propre('<code> 164 <script 165 type="text/javascript" 166 src="'.generer_url_public('distrib').'"> 167 </script> 168 </code>'); 169 170 fin_cadre_relief(); 171 172 173 echo fin_gauche(), fin_page(); 174 } 175 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Wed Nov 21 10:20:27 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |