5 |
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_acces.php3");
|
|
|
16 |
include_ecrire ("inc_index.php3");
|
|
|
17 |
include_ecrire ("inc_logos.php3");
|
|
|
18 |
|
|
|
19 |
function afficher_auteur_rubriques($leparent){
|
|
|
20 |
global $id_parent;
|
|
|
21 |
global $id_rubrique;
|
|
|
22 |
global $toutes_rubriques;
|
|
|
23 |
global $i;
|
|
|
24 |
|
|
|
25 |
$i++;
|
|
|
26 |
$query="SELECT * FROM spip_rubriques WHERE id_parent='$leparent' ORDER BY titre";
|
|
|
27 |
$result=spip_query($query);
|
|
|
28 |
|
|
|
29 |
while($row=spip_fetch_array($result)){
|
|
|
30 |
$my_rubrique=$row['id_rubrique'];
|
|
|
31 |
$titre=typo($row['titre']);
|
|
|
32 |
|
|
|
33 |
if (!ereg(",$my_rubrique,","$toutes_rubriques")){
|
|
|
34 |
$espace="";
|
|
|
35 |
for ($count=0;$count<$i;$count++){$espace.=" ";}
|
|
|
36 |
$espace .= "|";
|
|
|
37 |
if ($i==1)
|
|
|
38 |
$espace = "*";
|
|
|
39 |
|
|
|
40 |
echo "<OPTION VALUE='$my_rubrique'>$espace ".supprimer_tags($titre)."\n";
|
|
|
41 |
afficher_auteur_rubriques($my_rubrique);
|
|
|
42 |
}
|
|
|
43 |
}
|
|
|
44 |
$i=$i-1;
|
|
|
45 |
}
|
|
|
46 |
|
|
|
47 |
|
|
|
48 |
if ($connect_id_auteur == $id_auteur) {
|
|
|
49 |
if ($perso_activer_messagerie) {
|
|
|
50 |
$query = "UPDATE spip_auteurs SET messagerie='$perso_activer_messagerie', imessage='$perso_activer_imessage' WHERE id_auteur=$id_auteur";
|
|
|
51 |
$result = spip_query($query);
|
|
|
52 |
}
|
|
|
53 |
}
|
|
|
54 |
|
|
|
55 |
|
|
|
56 |
$query = "SELECT * FROM spip_auteurs WHERE id_auteur='$id_auteur'";
|
|
|
57 |
$result = spip_query($query);
|
|
|
58 |
|
|
|
59 |
|
|
|
60 |
if ($row = spip_fetch_array($result)) {
|
|
|
61 |
$id_auteur=$row['id_auteur'];
|
|
|
62 |
$nom=$row['nom'];
|
|
|
63 |
$bio=$row['bio'];
|
|
|
64 |
$email=$row['email'];
|
|
|
65 |
$nom_site_auteur=$row['nom_site'];
|
|
|
66 |
$url_site=$row['url_site'];
|
|
|
67 |
$login=$row['login'];
|
|
|
68 |
$pass=$row['pass'];
|
|
|
69 |
$statut=$row['statut'];
|
|
|
70 |
$pgp=$row["pgp"];
|
|
|
71 |
$messagerie=$row["messagerie"];
|
|
|
72 |
$imessage=$row["imessage"];
|
|
|
73 |
$abonne = $row['abonne'];
|
|
|
74 |
$abonne_pass = $row['abonne_pass'];
|
|
|
75 |
|
|
|
76 |
debut_page($nom_auteur, "asuivre", "perso");
|
|
|
77 |
|
|
|
78 |
|
|
|
79 |
|
|
|
80 |
echo "<br><br><br>";
|
|
|
81 |
gros_titre($nom);
|
|
|
82 |
|
|
|
83 |
if (($connect_statut == "0minirezo") OR ($connect_id_auteur == $id_auteur)) {
|
|
|
84 |
$statut_auteur=$statut;
|
|
|
85 |
barre_onglets("auteur", "messagerie");
|
|
|
86 |
}
|
|
|
87 |
|
|
|
88 |
|
|
|
89 |
debut_gauche();
|
|
|
90 |
|
|
|
91 |
|
|
|
92 |
|
|
|
93 |
debut_boite_info();
|
|
|
94 |
|
|
|
95 |
echo "<CENTER>";
|
|
|
96 |
|
|
|
97 |
echo "<FONT FACE='Verdana,Arial,Sans,sans-serif' SIZE=1><B>"._T('info_gauche_numero_auteur')." :</B></FONT>";
|
|
|
98 |
echo "<BR><FONT FACE='Verdana,Arial,Sans,sans-serif' SIZE=6><B>$id_auteur</B></FONT>";
|
|
|
99 |
echo "</CENTER>";
|
|
|
100 |
|
|
|
101 |
fin_boite_info();
|
|
|
102 |
|
|
|
103 |
|
|
|
104 |
debut_droite();
|
|
|
105 |
|
|
|
106 |
//
|
|
|
107 |
// Editer les donnees de l'auteur
|
|
|
108 |
//
|
|
|
109 |
|
|
|
110 |
if ($connect_id_auteur == $id_auteur) {
|
|
|
111 |
echo "<FORM ACTION='auteur_messagerie.php3?id_auteur=$id_auteur' METHOD='post'>";
|
|
|
112 |
echo "<INPUT TYPE='Hidden' NAME='id_auteur' VALUE=\"$id_auteur\">";
|
|
|
113 |
echo "<INPUT TYPE='Hidden' NAME='redirect' VALUE=\"$redirect\">";
|
|
|
114 |
|
|
|
115 |
//
|
|
|
116 |
// Fonctionnement de la messagerie interne
|
|
|
117 |
//
|
|
|
118 |
$activer_messagerie = "oui";
|
|
|
119 |
$activer_imessage = "oui";
|
|
|
120 |
|
|
|
121 |
if ($activer_messagerie!="non"){
|
|
|
122 |
debut_cadre_formulaire();
|
|
|
123 |
|
|
|
124 |
echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
|
|
|
125 |
echo "<TR><TD BGCOLOR='$couleur_foncee' BACKGROUND='" . _DIR_IMG_PACK . "rien.gif'><B><FONT FACE='Verdana,Arial,Sans,sans-serif' SIZE=3 COLOR='#FFFFFF'>"._T('info_messagerie_interne')."</FONT></B>".aide ("messconf")."</TD></TR>";
|
|
|
126 |
echo "<TR><TD BACKGROUND='" . _DIR_IMG_PACK . "rien.gif'>";
|
|
|
127 |
echo "<FONT FACE='Verdana,Arial,Sans,sans-serif' SIZE=2>"._T('texte_auteur_messagerie_1')."</FONT>";
|
|
|
128 |
echo "</TD></TR>";
|
|
|
129 |
|
|
|
130 |
echo "<TR><TD> </TD></TR>";
|
|
|
131 |
echo "<TR><TD BGCOLOR='#EEEECC' BACKGROUND='" . _DIR_IMG_PACK . "rien.gif'><B><FONT FACE='Verdana,Arial,Sans,sans-serif' SIZE=3>"._T('info_messagerie_interne')."</FONT></B></TD></TR>";
|
|
|
132 |
|
|
|
133 |
echo "<TR><TD BACKGROUND='" . _DIR_IMG_PACK . "rien.gif'>";
|
|
|
134 |
echo "<FONT FACE='Verdana,Arial,Sans,sans-serif' SIZE=2 COLOR='#000000'>"._T('info_desactiver_messagerie_personnelle')."</FONT>";
|
|
|
135 |
echo "</TD></TR>";
|
|
|
136 |
|
|
|
137 |
|
|
|
138 |
echo "<TR><TD BACKGROUND='" . _DIR_IMG_PACK . "rien.gif' ALIGN='left'>";
|
|
|
139 |
echo "<FONT FACE='Verdana,Arial,Sans,sans-serif' SIZE=2 COLOR='#000000'>";
|
|
|
140 |
if ($messagerie=="non"){
|
|
|
141 |
echo "<INPUT TYPE='radio' NAME='perso_activer_messagerie' VALUE='oui' id='perso_activer_messagerie_on'>";
|
|
|
142 |
echo " <label for='perso_activer_messagerie_on'>"._T('bouton_radio_activer_messagerie_interne')."</label> ";
|
|
|
143 |
echo "<BR><INPUT TYPE='radio' NAME='perso_activer_messagerie' VALUE='non' CHECKED id='perso_activer_messagerie_off'>";
|
|
|
144 |
echo " <B><label for='perso_activer_messagerie_off'>"._T('bouton_radio_desactiver_messagerie')."</label></B> ";
|
|
|
145 |
}else{
|
|
|
146 |
echo "<INPUT TYPE='radio' NAME='perso_activer_messagerie' VALUE='oui' id='perso_activer_messagerie_on' CHECKED>";
|
|
|
147 |
echo " <B><label for='perso_activer_messagerie_on'>"._T('bouton_radio_activer_messagerie')."</label></B> ";
|
|
|
148 |
echo "<BR><INPUT TYPE='radio' NAME='perso_activer_messagerie' VALUE='non' id='perso_activer_messagerie_off'>";
|
|
|
149 |
echo " <label for='perso_activer_messagerie_off'>"._T('bouton_radio_desactiver_messagerie')."</label> ";
|
|
|
150 |
}
|
|
|
151 |
|
|
|
152 |
echo "</FONT>";
|
|
|
153 |
echo "</TD></TR>\n";
|
|
|
154 |
|
|
|
155 |
|
|
|
156 |
if ($activer_imessage!="non"){
|
|
|
157 |
if ($messagerie!="non"){
|
|
|
158 |
/// Liste des redacteurs connectes
|
|
|
159 |
|
|
|
160 |
echo "<TR><TD> </TD></TR>";
|
|
|
161 |
echo "<TR><TD BGCOLOR='#EEEECC' BACKGROUND='" . _DIR_IMG_PACK . "rien.gif'><B><FONT FACE='Verdana,Arial,Sans,sans-serif' SIZE=3>"._T('info_liste_redacteurs_connectes')."</FONT></B></TD></TR>";
|
|
|
162 |
|
|
|
163 |
echo "<TR><TD BACKGROUND='" . _DIR_IMG_PACK . "rien.gif'>";
|
|
|
164 |
echo "<FONT FACE='Verdana,Arial,Sans,sans-serif' SIZE=2 COLOR='#000000'>"._T('texte_auteur_messagerie')."</FONT>";
|
|
|
165 |
echo "</TD></TR>";
|
|
|
166 |
|
|
|
167 |
echo "<TR><TD BACKGROUND='" . _DIR_IMG_PACK . "rien.gif' ALIGN='left'>";
|
|
|
168 |
echo "<FONT FACE='Verdana,Arial,Sans,sans-serif' SIZE=2 COLOR='#000000'>";
|
|
|
169 |
if ($imessage=="non"){
|
|
|
170 |
echo "<INPUT TYPE='radio' NAME='perso_activer_imessage' VALUE='oui' id='perso_activer_imessage_on'>";
|
|
|
171 |
echo " <label for='perso_activer_imessage_on'>"._T('bouton_radio_apparaitre_liste_redacteurs_connectes')."</label> ";
|
|
|
172 |
echo "<BR><INPUT TYPE='radio' NAME='perso_activer_imessage' VALUE='non' CHECKED id='perso_activer_imessage_off'>";
|
|
|
173 |
echo " <B><label for='perso_activer_imessage_off'>"._T('bouton_radio_non_apparaitre_liste_redacteurs_connectes')."</label></B> ";
|
|
|
174 |
}else{
|
|
|
175 |
echo "<INPUT TYPE='radio' NAME='perso_activer_imessage' VALUE='oui' id='perso_activer_imessage_on' CHECKED>";
|
|
|
176 |
echo " <B><label for='perso_activer_imessage_on'>"._T('bouton_radio_apparaitre_liste_redacteurs_connectes')."</label></B> ";
|
|
|
177 |
|
|
|
178 |
echo "<BR><INPUT TYPE='radio' NAME='perso_activer_imessage' VALUE='non' id='perso_activer_imessage_off'>";
|
|
|
179 |
echo " <label for='perso_activer_imessage_off'>"._T('bouton_radio_non_apparaitre_liste_redacteurs_connectes')."</label> ";
|
|
|
180 |
}
|
|
|
181 |
echo "</FONT>";
|
|
|
182 |
echo "</TD></TR>\n";
|
|
|
183 |
}
|
|
|
184 |
}
|
|
|
185 |
echo "</TABLE>\n";
|
|
|
186 |
}
|
|
|
187 |
|
|
|
188 |
echo "<DIV align='right'><INPUT TYPE='submit' CLASS='fondo' NAME='Valider' VALUE='"._T('bouton_valider')."'></DIV>";
|
|
|
189 |
|
|
|
190 |
fin_cadre_formulaire();
|
|
|
191 |
|
|
|
192 |
echo "</form>";
|
|
|
193 |
}
|
|
|
194 |
|
|
|
195 |
}
|
|
|
196 |
|
|
|
197 |
|
|
|
198 |
fin_page();
|
|
|
199 |
|
|
|
200 |
?>
|