4 |
david |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/***************************************************************************\
|
|
|
4 |
* SPIP, Systeme de publication pour l'internet *
|
|
|
5 |
* *
|
|
|
6 |
* Copyright (c) 2001-2005 *
|
|
|
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 |
|
|
|
14 |
include ("inc.php3");
|
|
|
15 |
include_ecrire ("inc_calendrier.php");
|
|
|
16 |
include_ecrire ("inc_rubriques.php3");
|
|
|
17 |
|
|
|
18 |
debut_page(_T('titre_page_index'), "asuivre", "asuivre");
|
|
|
19 |
|
|
|
20 |
debut_gauche();
|
|
|
21 |
|
|
|
22 |
|
|
|
23 |
if ($spip_display != 4) {
|
|
|
24 |
|
|
|
25 |
//
|
|
|
26 |
// Infos personnelles : nom, utilisation de la messagerie
|
|
|
27 |
//
|
|
|
28 |
|
|
|
29 |
|
|
|
30 |
echo "<p>";
|
|
|
31 |
|
|
|
32 |
$titre_cadre = afficher_plus("auteurs_edit.php3?id_auteur=$connect_id_auteur");
|
|
|
33 |
$titre_cadre .= majuscules(typo($connect_nom));
|
|
|
34 |
|
|
|
35 |
debut_cadre_couleur_foncee("fiche-perso-24.gif", false, '', '');
|
|
|
36 |
echo "<center><b>".$titre_cadre."</b></center>";
|
|
|
37 |
fin_cadre_couleur_foncee();
|
|
|
38 |
|
|
|
39 |
|
|
|
40 |
//
|
|
|
41 |
// Supprimer le cookie, se deconnecter...
|
|
|
42 |
//
|
|
|
43 |
|
|
|
44 |
if ($connect_statut == "0minirezo" AND $cookie_admin) {
|
|
|
45 |
$texte = _T('icone_supprimer_cookie');
|
|
|
46 |
if ($spip_display != 1) $texte .= aide("cookie");
|
|
|
47 |
icone_horizontale( $texte , "../spip_cookie.php3?cookie_admin=non&url=".rawurlencode(_DIR_RESTREINT_ABS), "cookie-24.gif", "");
|
|
|
48 |
}
|
|
|
49 |
|
|
|
50 |
$nom_site_spip = propre(lire_meta("nom_site"));
|
|
|
51 |
if (!$nom_site_spip) $nom_site_spip="SPIP";
|
|
|
52 |
|
|
|
53 |
|
|
|
54 |
echo "<div> </div>";
|
|
|
55 |
|
|
|
56 |
echo debut_cadre_relief("racine-site-24.gif", false, "", $nom_site_spip);
|
|
|
57 |
|
|
|
58 |
|
|
|
59 |
if ($spip_display != 1) {
|
|
|
60 |
include_ecrire('inc_logos.php3');
|
|
|
61 |
if ($logo = decrire_logo("rubon0")) {
|
|
|
62 |
echo "<div style='text-align:center; margin-bottom: 5px;'><a href='naviguer.php3'>";
|
|
|
63 |
echo reduire_image_logo(_DIR_IMG.$logo[0], 170);
|
|
|
64 |
echo "</a></div>";
|
|
|
65 |
}
|
|
|
66 |
}
|
|
|
67 |
echo "<div class='verdana1'>";
|
|
|
68 |
|
|
|
69 |
$res = spip_query("SELECT count(*) AS cnt, statut FROM spip_articles GROUP BY statut");
|
|
|
70 |
|
|
|
71 |
while($row = spip_fetch_array($res)) {
|
|
|
72 |
$var = 'nb_art_'.$row['statut'];
|
|
|
73 |
$$var = $row['cnt'];
|
|
|
74 |
}
|
|
|
75 |
|
|
|
76 |
if ($nb_art_prepa OR $nb_art_prop OR $nb_art_publie) {
|
|
|
77 |
|
|
|
78 |
echo afficher_plus("articles_page.php3")."<b>"._T('info_articles')."</b>";
|
|
|
79 |
echo "<ul style='margin:0px; padding-$spip_lang_left: 20px; margin-bottom: 5px;'>";
|
|
|
80 |
if ($nb_art_prepa) echo "<li>"._T("texte_statut_en_cours_redaction").": ".$nb_art_prepa;
|
|
|
81 |
if ($nb_art_prop) echo "<li>"._T("texte_statut_attente_validation").": ".$nb_art_prop;
|
|
|
82 |
if ($nb_art_publie) echo "<li><b>"._T("texte_statut_publies").": ".$nb_art_publie."</b>";
|
|
|
83 |
echo "</ul>";
|
|
|
84 |
|
|
|
85 |
}
|
|
|
86 |
|
|
|
87 |
$res = spip_query("SELECT count(*) AS cnt, statut FROM spip_breves GROUP BY statut");
|
|
|
88 |
|
|
|
89 |
|
|
|
90 |
while($row = spip_fetch_array($res)) {
|
|
|
91 |
$var = 'nb_bre_'.$row['statut'];
|
|
|
92 |
$$var = $row['cnt'];
|
|
|
93 |
}
|
|
|
94 |
|
|
|
95 |
if ($nb_bre_prop OR $nb_bre_publie) {
|
|
|
96 |
echo afficher_plus("breves.php3")."<b>"._T('info_breves_02')."</b>";
|
|
|
97 |
echo "<ul style='margin:0px; padding-$spip_lang_left: 20px; margin-bottom: 5px;'>";
|
|
|
98 |
if ($nb_bre_prop) echo "<li>"._T("texte_statut_attente_validation").": ".$nb_bre_prop;
|
|
|
99 |
if ($nb_bre_publie) echo "<li><b>"._T("texte_statut_publies").": ".$nb_bre_publie."</b>";
|
|
|
100 |
echo "</ul>";
|
|
|
101 |
}
|
|
|
102 |
|
|
|
103 |
$result = spip_fetch_array(spip_query("SELECT count(*) AS cnt FROM spip_forum where statut='publie'"));
|
|
|
104 |
|
|
|
105 |
$nb_forum = $result['cnt'];
|
|
|
106 |
|
|
|
107 |
if ($nb_forum) {
|
|
|
108 |
if ($connect_statut == "0minirezo") echo afficher_plus("controle_forum.php3");
|
|
|
109 |
echo "<b>"._T('onglet_messages_publics')."</b>";
|
|
|
110 |
echo "<ul style='margin:0px; padding-$spip_lang_left: 20px; margin-bottom: 5px;'>";
|
|
|
111 |
echo "<li><b>".$nb_forum."</b>";
|
|
|
112 |
echo "</ul>";
|
|
|
113 |
}
|
|
|
114 |
|
|
|
115 |
$res = spip_query("SELECT count(*) AS cnt, statut FROM spip_auteurs GROUP BY statut");
|
|
|
116 |
|
|
|
117 |
|
|
|
118 |
while($row = spip_fetch_array($res)) {
|
|
|
119 |
$var = 'nb_aut_'.$row['statut'];
|
|
|
120 |
$$var = $row['cnt'];
|
|
|
121 |
}
|
|
|
122 |
|
|
|
123 |
if ($nb_aut_0minirezo OR $nb_aut_1comite OR $nb_aut_6forum) {
|
|
|
124 |
echo afficher_plus("auteurs.php3")."<b>"._T('icone_auteurs')."</b>";
|
|
|
125 |
echo "<ul style='margin:0px; padding-$spip_lang_left: 20px; margin-bottom: 5px;'>";
|
|
|
126 |
if ($nb_aut_0minirezo) echo "<li>"._T("info_administrateurs").": ".$nb_aut_0minirezo;
|
|
|
127 |
if ($nb_aut_1comite) echo "<li>"._T("info_redacteurs").": ".$nb_aut_1comite;
|
|
|
128 |
if ($nb_aut_6forum) echo "<li>"._T("info_visiteurs").": ".$nb_aut_6forum;
|
|
|
129 |
echo "</ul>";
|
|
|
130 |
}
|
|
|
131 |
|
|
|
132 |
echo "</div>";
|
|
|
133 |
|
|
|
134 |
echo fin_cadre_relief();
|
|
|
135 |
|
|
|
136 |
|
|
|
137 |
//
|
|
|
138 |
// Afficher les raccourcis : boutons de creation d'article et de breve, etc.
|
|
|
139 |
//
|
|
|
140 |
|
|
|
141 |
|
|
|
142 |
creer_colonne_droite();
|
|
|
143 |
echo "<div> </div>";
|
|
|
144 |
|
|
|
145 |
|
|
|
146 |
|
|
|
147 |
//
|
|
|
148 |
// Annonces
|
|
|
149 |
//
|
|
|
150 |
echo http_calendrier_rv(sql_calendrier_taches_annonces(),"annonces");
|
|
|
151 |
echo http_calendrier_rv(sql_calendrier_taches_pb(),"pb") ;
|
|
|
152 |
echo http_calendrier_rv(sql_calendrier_taches_rv(), "rv");
|
|
|
153 |
|
|
|
154 |
|
|
|
155 |
//
|
|
|
156 |
// Afficher le calendrier du mois s'il y a des rendez-vous
|
|
|
157 |
//
|
|
|
158 |
|
|
|
159 |
$mois = date("m");
|
|
|
160 |
$annee = date("Y");
|
|
|
161 |
$jour = date("d");
|
|
|
162 |
|
|
|
163 |
$evt = sql_calendrier_agenda($annee, $mois);
|
|
|
164 |
if ($evt)
|
|
|
165 |
echo http_calendrier_agenda ($annee, $mois, $jour, $mois, $annee, false, 'calendrier.php3', '', $evt);
|
|
|
166 |
|
|
|
167 |
// et ceux du jour
|
|
|
168 |
$evt = date("Y-m-d");
|
|
|
169 |
$evt = sql_calendrier_interval_rv("'$evt'", "'$evt 23:59:59'");
|
|
|
170 |
|
|
|
171 |
if ($evt) {
|
|
|
172 |
echo http_calendrier_ics_titre($annee,$mois,$jour,'calendrier.php3');
|
|
|
173 |
echo http_calendrier_ics($annee, $mois, $jour, $echelle, $partie_cal, 90, array('', $evt));
|
|
|
174 |
}
|
|
|
175 |
}
|
|
|
176 |
|
|
|
177 |
debut_droite();
|
|
|
178 |
|
|
|
179 |
|
|
|
180 |
|
|
|
181 |
//
|
|
|
182 |
// Restauration d'une archive
|
|
|
183 |
//
|
|
|
184 |
|
|
|
185 |
if ($meta["debut_restauration"]) {
|
|
|
186 |
@ignore_user_abort(1);
|
|
|
187 |
include_ecrire("inc_import.php3");
|
|
|
188 |
import_init();
|
|
|
189 |
exit;
|
|
|
190 |
}
|
|
|
191 |
|
|
|
192 |
|
|
|
193 |
//
|
|
|
194 |
// Articles post-dates en attente de publication
|
|
|
195 |
//
|
|
|
196 |
|
|
|
197 |
$post_dates = lire_meta("post_dates");
|
|
|
198 |
|
|
|
199 |
if ($post_dates == "non" AND $connect_statut == '0minirezo' AND $options == 'avancees') {
|
|
|
200 |
echo "<p>";
|
|
|
201 |
afficher_articles(_T('info_article_a_paraitre'), "WHERE statut='publie' AND date>NOW() ORDER BY date");
|
|
|
202 |
}
|
|
|
203 |
|
|
|
204 |
|
|
|
205 |
|
|
|
206 |
//
|
|
|
207 |
// Vos articles en cours de redaction
|
|
|
208 |
//
|
|
|
209 |
|
|
|
210 |
echo "<p>";
|
|
|
211 |
$vos_articles = afficher_articles(afficher_plus('articles_page.php3')._T('info_en_cours_validation'), ", spip_auteurs_articles AS lien WHERE articles.id_article=lien.id_article AND lien.id_auteur=$connect_id_auteur AND articles.statut='prepa' ORDER BY articles.date DESC");
|
|
|
212 |
|
|
|
213 |
if ($vos_articles) $vos_articles = ' AND articles.id_article NOT IN ('.join($vos_articles,',').')';
|
|
|
214 |
|
|
|
215 |
|
|
|
216 |
//
|
|
|
217 |
// Raccourcis pour malvoyants
|
|
|
218 |
//
|
|
|
219 |
if ($spip_display == 4) {
|
|
|
220 |
debut_raccourcis();
|
|
|
221 |
if (spip_num_rows(spip_query("SELECT id_rubrique FROM spip_rubriques LIMIT 0,1"))) {
|
|
|
222 |
icone_horizontale(_T('icone_ecrire_article'), "articles_edit.php3?new=oui", "article-24.gif","creer.gif");
|
|
|
223 |
|
|
|
224 |
$activer_breves = lire_meta("activer_breves");
|
|
|
225 |
if ($activer_breves != "non") {
|
|
|
226 |
icone_horizontale(_T('icone_nouvelle_breve'), "breves_edit.php3?new=oui", "breve-24.gif","creer.gif");
|
|
|
227 |
}
|
|
|
228 |
}
|
|
|
229 |
else {
|
|
|
230 |
if ($connect_statut == '0minirezo') {
|
|
|
231 |
echo "<div class='verdana11'>"._T('info_ecrire_article')."</div>";
|
|
|
232 |
}
|
|
|
233 |
}
|
|
|
234 |
if ($connect_statut == '0minirezo' and $connect_toutes_rubriques) {
|
|
|
235 |
icone_horizontale(_T('icone_creer_rubrique_2'), "rubriques_edit.php3?new=oui", "rubrique-24.gif","creer.gif");
|
|
|
236 |
}
|
|
|
237 |
fin_raccourcis();
|
|
|
238 |
} else {
|
|
|
239 |
|
|
|
240 |
$gadget = "";
|
|
|
241 |
|
|
|
242 |
$gadget = "<center><table><tr>";
|
|
|
243 |
$id_rubrique = $GLOBALS['id_rubrique'];
|
|
|
244 |
if ($id_rubrique > 0) {
|
|
|
245 |
$dans_rub = "&id_rubrique=$id_rubrique";
|
|
|
246 |
$dans_parent = "&id_parent=$id_rubrique";
|
|
|
247 |
}
|
|
|
248 |
if ($connect_statut == "0minirezo") {
|
|
|
249 |
$gadget .= "<td>";
|
|
|
250 |
$gadget .= icone_horizontale(_T('icone_creer_rubrique'), "rubriques_edit.php3?new=oui", "rubrique-24.gif", "creer.gif", false);
|
|
|
251 |
$gadget .= "</td>";
|
|
|
252 |
}
|
|
|
253 |
if (spip_num_rows(spip_query("SELECT id_rubrique FROM spip_rubriques LIMIT 0,1"))) {
|
|
|
254 |
$gadget .= "<td>";
|
|
|
255 |
$gadget .= icone_horizontale(_T('icone_ecrire_article'), "articles_edit.php3?new=oui$dans_rub", "article-24.gif","creer.gif", false);
|
|
|
256 |
$gadget .= "</td>";
|
|
|
257 |
|
|
|
258 |
$activer_breves = lire_meta("activer_breves");
|
|
|
259 |
if ($activer_breves != "non") {
|
|
|
260 |
$gadget .= "<td>";
|
|
|
261 |
$gadget .= icone_horizontale(_T('icone_nouvelle_breve'), "breves_edit.php3?new=oui$dans_rub", "breve-24.gif","creer.gif", false);
|
|
|
262 |
$gadget .= "</td>";
|
|
|
263 |
}
|
|
|
264 |
|
|
|
265 |
if (lire_meta("activer_sites") == 'oui') {
|
|
|
266 |
if ($connect_statut == '0minirezo' OR lire_meta("proposer_sites") > 0) {
|
|
|
267 |
$gadget .= "<td>";
|
|
|
268 |
$gadget .= icone_horizontale(_T('info_sites_referencer'), "sites_edit.php3?new=oui&target=sites.php3$dans_rub", "site-24.gif","creer.gif", false);
|
|
|
269 |
$gadget .= "</td>";
|
|
|
270 |
}
|
|
|
271 |
}
|
|
|
272 |
|
|
|
273 |
}
|
|
|
274 |
$gadget .= "</tr></table></center>\n";
|
|
|
275 |
|
|
|
276 |
|
|
|
277 |
if ($connect_statut != "0minirezo") {
|
|
|
278 |
|
|
|
279 |
$gadget .= "<center><table><tr>";
|
|
|
280 |
|
|
|
281 |
$nombre_articles = spip_num_rows(spip_query("SELECT art.id_article FROM spip_articles AS art, spip_auteurs_articles AS lien WHERE lien.id_auteur = '$connect_id_auteur' AND art.id_article = lien.id_article LIMIT 0,1"));
|
|
|
282 |
if ($nombre_articles > 0) {
|
|
|
283 |
$gadget .= "<td>";
|
|
|
284 |
$gadget .= icone_horizontale (_T('icone_tous_articles'), "articles_page.php3", "article-24.gif", "", false);
|
|
|
285 |
$gadget .= "</td>";
|
|
|
286 |
}
|
|
|
287 |
|
|
|
288 |
$activer_breves=lire_meta("activer_breves");
|
|
|
289 |
if ($activer_breves != "non"){
|
|
|
290 |
$gadget .= "<td>";
|
|
|
291 |
$gadget .= icone_horizontale (_T('icone_breves'), "breves.php3", "breve-24.gif", "", false);
|
|
|
292 |
$gadget .= "</td>";
|
|
|
293 |
}
|
|
|
294 |
|
|
|
295 |
$articles_mots = lire_meta('articles_mots');
|
|
|
296 |
if ($articles_mots != "non") {
|
|
|
297 |
$gadget .= "<td>";
|
|
|
298 |
$gadget .= icone_horizontale (_T('icone_mots_cles'), "mots_tous.php3", "mot-cle-24.gif", "", false);
|
|
|
299 |
$gadget .= "</td>";
|
|
|
300 |
}
|
|
|
301 |
|
|
|
302 |
$activer_sites = lire_meta('activer_sites');
|
|
|
303 |
if ($activer_sites<>'non') {
|
|
|
304 |
$gadget .= "<td>";
|
|
|
305 |
$gadget .= icone_horizontale (_T('icone_sites_references'), "sites_tous.php3", "site-24.gif", "", false);
|
|
|
306 |
$gadget .= "</td>";
|
|
|
307 |
}
|
|
|
308 |
$gadget .= "</tr></table></center>\n";
|
|
|
309 |
|
|
|
310 |
}
|
|
|
311 |
|
|
|
312 |
}
|
|
|
313 |
|
|
|
314 |
|
|
|
315 |
|
|
|
316 |
|
|
|
317 |
//
|
|
|
318 |
// Modification du cookie
|
|
|
319 |
//
|
|
|
320 |
|
|
|
321 |
if ($connect_statut == "0minirezo" AND $spip_display != 4) {
|
|
|
322 |
if (!$cookie_admin) {
|
|
|
323 |
$gadget .= "<div> </div>".
|
|
|
324 |
"<table width=95%><tr>".
|
|
|
325 |
"<td width=100%>".
|
|
|
326 |
_T('info_activer_cookie').
|
|
|
327 |
aide ("cookie").
|
|
|
328 |
"</td>".
|
|
|
329 |
"<td width=10>".
|
|
|
330 |
http_img_pack("rien.gif", ' ', "width='10'") .
|
|
|
331 |
"</td>".
|
|
|
332 |
"<td width='250'>".
|
|
|
333 |
icone_horizontale(_T('icone_activer_cookie'), "../spip_cookie.php3?cookie_admin=".rawurlencode("@$connect_login")."&url=".rawurlencode(_DIR_RESTREINT_ABS), "cookie-24.gif", "", false).
|
|
|
334 |
"</td></tr></table>";
|
|
|
335 |
}
|
|
|
336 |
}
|
|
|
337 |
|
|
|
338 |
if (strlen($gadget) > 0) {
|
|
|
339 |
echo "<div> </div>";
|
|
|
340 |
echo debut_cadre_trait_couleur();
|
|
|
341 |
echo $gadget;
|
|
|
342 |
echo fin_cadre_trait_couleur();
|
|
|
343 |
}
|
|
|
344 |
echo "<div> </div>";
|
|
|
345 |
|
|
|
346 |
|
|
|
347 |
//
|
|
|
348 |
// On utilise ob_start pour ne pas afficher de bloc vide (sinon tant pis)
|
|
|
349 |
//
|
|
|
350 |
if ($flag_ob)
|
|
|
351 |
ob_start();
|
|
|
352 |
else
|
|
|
353 |
debut_cadre_couleur_foncee("",false, "", _T('texte_en_cours_validation'));
|
|
|
354 |
|
|
|
355 |
//
|
|
|
356 |
// Les articles a valider
|
|
|
357 |
//
|
|
|
358 |
afficher_articles(_T('info_articles_proposes'), "WHERE statut='prop'$vos_articles ORDER BY date DESC");
|
|
|
359 |
|
|
|
360 |
//
|
|
|
361 |
// Les breves a valider
|
|
|
362 |
//
|
|
|
363 |
afficher_breves(afficher_plus('breves.php3')._T('info_breves_valider'), "SELECT * FROM spip_breves WHERE statut='prepa' OR statut='prop' ORDER BY date_heure DESC", true);
|
|
|
364 |
|
|
|
365 |
//
|
|
|
366 |
// Les sites references a valider
|
|
|
367 |
//
|
|
|
368 |
if (afficher_plus('sites_tous.php3').lire_meta('activer_syndic') != 'non') {
|
|
|
369 |
include_ecrire("inc_sites.php3");
|
|
|
370 |
afficher_sites(afficher_plus('sites_tous.php3')._T('info_site_valider'), "SELECT * FROM spip_syndic WHERE statut='prop' ORDER BY nom_site");
|
|
|
371 |
}
|
|
|
372 |
|
|
|
373 |
//
|
|
|
374 |
// Les sites a probleme
|
|
|
375 |
//
|
|
|
376 |
if (lire_meta('activer_syndic') != 'non' AND $connect_statut == '0minirezo' AND $connect_toutes_rubriques) {
|
|
|
377 |
include_ecrire("inc_sites.php3");
|
|
|
378 |
afficher_sites(afficher_plus('sites_tous.php3')._T('avis_sites_syndiques_probleme'), "SELECT * FROM spip_syndic WHERE (syndication='off' OR syndication='sus') AND statut='publie' ORDER BY nom_site");
|
|
|
379 |
}
|
|
|
380 |
|
|
|
381 |
// Les articles syndiques en attente de validation
|
|
|
382 |
if ($connect_statut == '0minirezo' AND $connect_toutes_rubriques) {
|
|
|
383 |
$result = spip_query ("SELECT COUNT(*) AS compte FROM spip_syndic_articles WHERE statut='dispo'");
|
|
|
384 |
if (($row = spip_fetch_array($result)) AND $row['compte'])
|
|
|
385 |
echo "<br><small><a href='sites_tous.php3' style='color: black;'>".$row['compte']." "._T('info_liens_syndiques_1')." "._T('info_liens_syndiques_2')."</a></small>";
|
|
|
386 |
}
|
|
|
387 |
|
|
|
388 |
// Les forums en attente de moderation
|
|
|
389 |
if ($connect_statut == '0minirezo' AND $connect_toutes_rubriques) {
|
|
|
390 |
$result = spip_query ("SELECT COUNT(*) AS compte FROM spip_forum WHERE statut='prop'");
|
|
|
391 |
if (($row = spip_fetch_array($result)) AND $row['compte']) {
|
|
|
392 |
echo "<br><small> <a href='controle_forum.php3' style='color: black;'>".$row['compte'];
|
|
|
393 |
if ($row['compte']>1)
|
|
|
394 |
echo " "._T('info_liens_syndiques_3')
|
|
|
395 |
." "._T('info_liens_syndiques_4');
|
|
|
396 |
else
|
|
|
397 |
echo " "._T('info_liens_syndiques_5')
|
|
|
398 |
." "._T('info_liens_syndiques_6');
|
|
|
399 |
echo " "._T('info_liens_syndiques_7').".</a></small>";
|
|
|
400 |
}
|
|
|
401 |
}
|
|
|
402 |
|
|
|
403 |
|
|
|
404 |
if ($flag_ob) {
|
|
|
405 |
$a = ob_get_contents();
|
|
|
406 |
ob_end_clean();
|
|
|
407 |
if ($a) {
|
|
|
408 |
debut_cadre_couleur_foncee("",false, "", _T('texte_en_cours_validation'));
|
|
|
409 |
echo $a;
|
|
|
410 |
} else
|
|
|
411 |
$non_affiche = true;
|
|
|
412 |
}
|
|
|
413 |
|
|
|
414 |
|
|
|
415 |
if (!$non_affiche) {
|
|
|
416 |
// Afficher le lien RSS
|
|
|
417 |
include_ecrire('inc_rss.php3');
|
|
|
418 |
$op = 'a-suivre';
|
|
|
419 |
$args = array();
|
|
|
420 |
echo "<div style='text-align: "
|
|
|
421 |
. $GLOBALS['spip_lang_right']
|
|
|
422 |
. ";'>"
|
|
|
423 |
. bouton_spip_rss($op, $args)
|
|
|
424 |
."</div>";
|
|
|
425 |
fin_cadre_couleur_foncee();
|
|
|
426 |
}
|
|
|
427 |
|
|
|
428 |
|
|
|
429 |
|
|
|
430 |
///// Afficher les rubriques
|
|
|
431 |
afficher_enfant_rub(0, false);
|
|
|
432 |
|
|
|
433 |
if ($options == 'avancees') {
|
|
|
434 |
|
|
|
435 |
/* Ne plus afficher: il y a la page "Tous vos articles" pour cela
|
|
|
436 |
// Vos articles publies
|
|
|
437 |
echo "<p>";
|
|
|
438 |
afficher_articles(afficher_plus('articles_page.php3')._T('info_derniers_articles_publies'), ", spip_auteurs_articles AS lien ".
|
|
|
439 |
"WHERE articles.id_article=lien.id_article AND lien.id_auteur=\"$connect_id_auteur\" AND articles.statut=\"publie\" ORDER BY articles.date DESC", true);
|
|
|
440 |
*/
|
|
|
441 |
|
|
|
442 |
// Dernieres modifications d'articles
|
|
|
443 |
include_ecrire("inc_suivi_revisions.php");
|
|
|
444 |
afficher_suivi_versions (0, 0, false, "", true);
|
|
|
445 |
}
|
|
|
446 |
|
|
|
447 |
|
|
|
448 |
fin_page("jimmac");
|
|
|
449 |
|
|
|
450 |
|
|
|
451 |
//
|
|
|
452 |
// Si necessaire, recalculer les rubriques
|
|
|
453 |
//
|
|
|
454 |
|
|
|
455 |
if (lire_meta('calculer_rubriques') == 'oui') {
|
|
|
456 |
calculer_rubriques();
|
|
|
457 |
effacer_meta('calculer_rubriques');
|
|
|
458 |
ecrire_metas();
|
|
|
459 |
}
|
|
|
460 |
|
|
|
461 |
|
|
|
462 |
//
|
|
|
463 |
// Renouvellement de l'alea utilise pour valider certaines operations
|
|
|
464 |
// (ajouter une image, etc.)
|
|
|
465 |
//
|
|
|
466 |
if (abs(time() - $meta_maj['alea_ephemere']) > 2 * 24*3600) {
|
|
|
467 |
spip_log("renouvellement de l'alea_ephemere");
|
|
|
468 |
include_ecrire("inc_session.php3");
|
|
|
469 |
$alea = md5(creer_uniqid());
|
|
|
470 |
ecrire_meta('alea_ephemere_ancien', lire_meta('alea_ephemere'));
|
|
|
471 |
ecrire_meta('alea_ephemere', $alea);
|
|
|
472 |
ecrire_metas();
|
|
|
473 |
}
|
|
|
474 |
|
|
|
475 |
?>
|