Subversion Repositories Sites.tela-botanica.org

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
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
 
16
if ($connect_statut != '0minirezo' OR !$connect_toutes_rubriques) {
17
	echo _T('avis_non_acces_page');
18
	fin_page();
19
	exit;
20
}
21
 
22
 
23
//
24
// Modifications
25
//
26
 
27
include_ecrire ("inc_config.php3");
28
init_config();
29
if ($changer_config == 'oui') {
30
	appliquer_modifs_config();
31
}
32
else {
33
	$forums_publics = lire_meta("forums_publics");
34
	if (!$forums_publics) {
35
		ecrire_meta("forums_publics", "posteriori");
36
		ecrire_metas();
37
	}
38
}
39
 
40
lire_metas();
41
 
42
 
43
debut_page(_T('titre_page_configuration'), "administration", "configuration");
44
 
45
echo "<br><br><br>";
46
gros_titre(_T('titre_configuration'));
47
barre_onglets("configuration", "contenu");
48
 
49
 
50
debut_gauche();
51
 
52
debut_droite();
53
 
54
avertissement_config();
55
 
56
//
57
// Afficher les options de config
58
//
59
 
60
echo "<form action='configuration.php3' method='post'>";
61
echo "<input type='hidden' name='changer_config' value='oui'>";
62
debut_cadre_couleur("racine-site-24.gif");
63
 
64
	$nom_site = entites_html(lire_meta("nom_site"));
65
	$adresse_site = entites_html(lire_meta("adresse_site"));
66
	$email_webmaster = entites_html(lire_meta("email_webmaster"));
67
 
68
	debut_cadre_relief("", false, "", _T('info_nom_site').aide ("confnom"));
69
	echo "<input type='text' name='nom_site' value=\"$nom_site\" size='40' CLASS='forml'>";
70
	fin_cadre_relief();
71
 
72
	debut_cadre_relief("", false, "", _T('info_adresse_url'));
73
	echo "<input type='text' name='adresse_site' value=\"$adresse_site/\" size='40' CLASS='forml'>";
74
	fin_cadre_relief();
75
 
76
	if ($options == "avancees") {
77
		echo "<div>&nbsp;</div>";
78
 
79
		debut_cadre_relief("", false, "", _T('info_email_webmestre'));
80
		echo "<input type='text' name='email_webmaster' value=\"$email_webmaster\" size='40' CLASS='formo'>";
81
		fin_cadre_relief();
82
	}
83
 
84
	echo "<div style='text-align:right;'><input type='submit' name='Valider' value='"._T('bouton_enregistrer')."' CLASS='fondo'></div>";
85
 
86
fin_cadre_couleur();
87
 
88
echo "<p>&nbsp;<p>";
89
 
90
 
91
//
92
// Options des articles
93
//
94
 
95
if ($options == 'avancees') {
96
	debut_cadre_trait_couleur("article-24.gif", false, "", _T('titre_les_articles'));
97
 
98
 
99
	//
100
	// Champs optionnels des articles
101
	//
102
 
103
	debut_cadre_relief("", false, "", _T('info_contenu_articles').aide ("confart"));
104
 
105
	$articles_surtitre = lire_meta("articles_surtitre");
106
	$articles_soustitre = lire_meta("articles_soustitre");
107
	$articles_descriptif = lire_meta("articles_descriptif");
108
	$articles_chapeau = lire_meta("articles_chapeau");
109
	$articles_ps = lire_meta("articles_ps");
110
	$articles_redac = lire_meta("articles_redac");
111
	$articles_urlref = lire_meta("articles_urlref");
112
 
113
	echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
114
 
115
	echo "<TR><TD BACKGROUND='" . _DIR_IMG_PACK . "rien.gif' COLSPAN='2' class='verdana2'>";
116
	echo _T('texte_contenu_articles');
117
	echo "</TD></TR>";
118
 
119
	echo "<TR>";
120
	echo "<TD ALIGN='$spip_lang_left' class='verdana2'>";
121
	echo _T('info_surtitre');
122
	echo "</TD>";
123
	echo "<TD ALIGN='$spip_lang_left' class='verdana2'>";
124
	afficher_choix('articles_surtitre', $articles_surtitre,
125
		array('oui' => _T('item_oui'), 'non' => _T('item_non')), " &nbsp; ");
126
	echo "</TD></TR>\n";
127
 
128
	echo "<TR>";
129
	echo "<TD ALIGN='$spip_lang_left' class='verdana2'>";
130
	echo _T('info_sous_titre');
131
	echo "</TD>";
132
	echo "<TD ALIGN='$spip_lang_left' class='verdana2'>";
133
	afficher_choix('articles_soustitre', $articles_soustitre,
134
		array('oui' => _T('item_oui'), 'non' => _T('item_non')), " &nbsp; ");
135
	echo "</TD></TR>\n";
136
 
137
	echo "<TR>";
138
	echo "<TD ALIGN='$spip_lang_left' class='verdana2'>";
139
	echo _T('info_descriptif');
140
	echo "</TD>";
141
	echo "<TD ALIGN='$spip_lang_left' class='verdana2'>";
142
	afficher_choix('articles_descriptif', $articles_descriptif,
143
		array('oui' => _T('item_oui'), 'non' => _T('item_non')), " &nbsp; ");
144
	echo "</TD></TR>\n";
145
 
146
	echo "<TR>";
147
	echo "<TD ALIGN='$spip_lang_left' class='verdana2'>";
148
	echo _T('info_chapeau_2');
149
	echo "</TD>";
150
	echo "<TD ALIGN='$spip_lang_left' class='verdana2'>";
151
	afficher_choix('articles_chapeau', $articles_chapeau,
152
		array('oui' => _T('item_oui'), 'non' => _T('item_non')), " &nbsp; ");
153
	echo "</TD></TR>\n";
154
 
155
	echo "<TR>";
156
	echo "<TD ALIGN='$spip_lang_left' class='verdana2'>";
157
	echo _T('info_post_scriptum_2');
158
	echo "</TD>";
159
	echo "<TD ALIGN='$spip_lang_left' class='verdana2'>";
160
	afficher_choix('articles_ps', $articles_ps,
161
		array('oui' => _T('item_oui'), 'non' => _T('item_non')), " &nbsp; ");
162
	echo "</TD></TR>\n";
163
 
164
	echo "<TR>";
165
	echo "<TD ALIGN='$spip_lang_left' class='verdana2'>";
166
	echo _T('info_date_publication_anterieure');
167
	echo "</TD>";
168
	echo "<TD ALIGN='$spip_lang_left' class='verdana2'>";
169
	afficher_choix('articles_redac', $articles_redac,
170
		array('oui' => _T('item_oui'), 'non' => _T('item_non')), " &nbsp; ");
171
	echo "</TD></TR>\n";
172
 
173
	echo "<TR>";
174
	echo "<TD ALIGN='$spip_lang_left' class='verdana2'>";
175
	echo _T('info_urlref');
176
	echo "</TD>";
177
	echo "<TD ALIGN='$spip_lang_left' class='verdana2'>";
178
	afficher_choix('articles_urlref', $articles_urlref,
179
		array('oui' => _T('item_oui'), 'non' => _T('item_non')), " &nbsp; ");
180
	echo "</TD></TR>\n";
181
 
182
	echo "<TR><TD style='text-align: $spip_lang_right;' COLSPAN=2>";
183
	echo "<INPUT TYPE='submit' NAME='Valider' VALUE='"._T('bouton_valider')."' CLASS='fondo'>";
184
	echo "</TD></TR>";
185
	echo "</TABLE>";
186
 
187
	fin_cadre_relief();
188
 
189
	//
190
	// Articles post-dates
191
	//
192
 
193
	debut_cadre_relief("", false, "", _T('titre_publication_articles_post_dates').aide ("confdates"));
194
 
195
	$post_dates = lire_meta("post_dates");
196
 
197
	echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
198
	echo "<TR><TD class='verdana2'>";
199
	echo _T('texte_publication_articles_post_dates');
200
	echo "</TD></TR>";
201
 
202
	echo "<TR><TD ALIGN='$spip_lang_left' class='verdana2'>";
203
	afficher_choix('post_dates', $post_dates,
204
		array('oui' => _T('item_publier_articles'),
205
			'non' => _T('item_non_publier_articles')));
206
	echo "</TD></TR>\n";
207
 
208
	echo "<TR><td style='text-align:$spip_lang_right;'>";
209
	echo "<INPUT TYPE='submit' NAME='Valider' VALUE='"._T('bouton_valider')."' CLASS='fondo'>";
210
	echo "</TD></TR>";
211
	echo "</TABLE>\n";
212
 
213
	fin_cadre_relief();
214
 
215
	fin_cadre_trait_couleur();
216
}
217
 
218
 
219
 
220
echo "<p>";
221
 
222
 
223
//
224
// Actives/desactiver les breves
225
//
226
 
227
debut_cadre_trait_couleur("breve-24.gif", false, "", _T('titre_breves').aide ("confbreves"));
228
 
229
$activer_breves = lire_meta("activer_breves");
230
 
231
echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
232
echo "<TR><TD class='verdana2'>";
233
echo _T('texte_breves')."<p>";
234
echo _T('info_breves');
235
echo "</TD></TR>";
236
 
237
echo "<TR><TD align='center' class='verdana2'>";
238
afficher_choix('activer_breves', $activer_breves,
239
	array('oui' => _T('item_utiliser_breves'),
240
		'non' => _T('item_non_utiliser_breves')), " &nbsp; ");
241
echo "</FONT>";
242
echo "</TD></TR>\n";
243
 
244
echo "<TR><td style='text-align:$spip_lang_right;'>";
245
echo "<INPUT TYPE='submit' NAME='Valider' VALUE='"._T('bouton_valider')."' CLASS='fondo'>";
246
echo "</TD></TR>";
247
echo "</TABLE>\n";
248
 
249
fin_cadre_trait_couleur();
250
 
251
echo "<p>";
252
 
253
 
254
//
255
// Gestion des mots-cles
256
//
257
 
258
if ($options == "avancees") {
259
 
260
	debut_cadre_trait_couleur("mot-cle-24.gif", false, "", _T('info_mots_cles'));
261
 
262
	$articles_mots = lire_meta("articles_mots");
263
	$config_precise_groupes = lire_meta("config_precise_groupes");
264
	$mots_cles_forums = lire_meta("mots_cles_forums");
265
	$forums_publics = lire_meta("forums_publics");
266
 
267
	echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
268
	echo "<TR><TD class='verdana2'>";
269
	echo _T('texte_mots_cles')."<p>";
270
	echo _T('info_question_mots_cles');
271
	echo "</TD></TR>";
272
 
273
	echo "<TR>";
274
	echo "<TD align='center' class='verdana2'>";
275
 
276
 
277
		echo bouton_radio("articles_mots", "oui", _T('item_utiliser_mots_cles'), $articles_mots == "oui", "changeVisible(this.checked, 'mots-config', 'block', 'none');");
278
		echo " &nbsp;";
279
		echo bouton_radio("articles_mots", "non", _T('item_non_utiliser_mots_cles'), $articles_mots == "non", "changeVisible(this.checked, 'mots-config', 'none', 'block');");
280
 
281
 
282
//	afficher_choix('articles_mots', $articles_mots,
283
//		array('oui' => _T('item_utiliser_mots_cles'),
284
//			'non' => _T('item_non_utiliser_mots_cles')), "<br />");
285
	echo "</TD></TR></table>";
286
 
287
	if ($articles_mots != "non") $style = "display: block;";
288
	else $style = "display: none;";
289
 
290
		echo "<div id='mots-config' style='$style'>";
291
 
292
		echo "<p />";
293
		debut_cadre_relief("", false, "", _T('titre_config_groupe_mots_cles'));
294
 
295
		echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
296
		echo "<TR><TD class='verdana2'>";
297
		echo _T('texte_config_groupe_mots_cles');
298
		echo "</TD></TR>";
299
 
300
		echo "<TR>";
301
		echo "<TD ALIGN='$spip_lang_left' class='verdana2'>";
302
		afficher_choix('config_precise_groupes', $config_precise_groupes,
303
			array('oui' => _T('item_utiliser_config_groupe_mots_cles'),
304
				'non' => _T('item_non_utiliser_config_groupe_mots_cles')));
305
		echo "</TD></TR></table>";
306
		fin_cadre_relief();
307
 
308
		if ($forums_publics != "non"){
309
			echo "<p />";
310
			debut_cadre_relief("", false, "", _T('titre_mots_cles_dans_forum'));
311
			echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
312
			echo "<TR><TD class='verdana2'>";
313
			echo _T('texte_mots_cles_dans_forum');
314
			echo "</TD></TR>";
315
 
316
			echo "<TR>";
317
			echo "<TD BACKGROUND='" . _DIR_IMG_PACK . "rien.gif' ALIGN='$spip_lang_left' class='verdana2'>";
318
			afficher_choix('mots_cles_forums', $mots_cles_forums,
319
				array('oui' => _T('item_ajout_mots_cles'),
320
					'non' => _T('item_non_ajout_mots_cles')));
321
			echo "</FONT>";
322
			echo "</TD></TR>";
323
			echo "</table>";
324
			fin_cadre_relief();
325
		}
326
		echo "</div>";
327
 
328
 
329
	echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
330
	echo "<TR><td style='text-align:$spip_lang_right;'>";
331
	echo "<INPUT TYPE='submit' NAME='Valider' VALUE='"._T('bouton_valider')."' CLASS='fondo'>";
332
	echo "</TD></TR>";
333
	echo "</TABLE>\n";
334
 
335
	fin_cadre_trait_couleur();
336
 
337
	echo "<p>";
338
}
339
 
340
 
341
//
342
// Actives/desactiver systeme de syndication
343
//
344
 
345
debut_cadre_trait_couleur("site-24.gif", false, "", _T('titre_referencement_sites').aide ("reference"));
346
 
347
$activer_sites = lire_meta('activer_sites');
348
$activer_syndic = lire_meta("activer_syndic");
349
$proposer_sites = lire_meta("proposer_sites");
350
$visiter_sites = lire_meta("visiter_sites");
351
$moderation_sites = lire_meta("moderation_sites");
352
 
353
echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
354
 
355
echo "<TR><TD BACKGROUND='" . _DIR_IMG_PACK . "rien.gif' ALIGN='$spip_lang_left' class='verdana2'>";
356
 
357
		echo bouton_radio("activer_sites", "oui", _T('item_gerer_annuaire_site_web'), $activer_sites == "oui", "changeVisible(this.checked, 'config-site', 'block', 'none');");
358
		echo " &nbsp;";
359
		echo bouton_radio("activer_sites", "non", _T('item_non_gerer_annuaire_site_web'), $activer_sites == "non", "changeVisible(this.checked, 'config-site', 'none', 'block');");
360
 
361
echo "</TD></TR></table>\n";
362
 
363
 
364
 
365
if ($activer_sites != 'non') $style = "display: block;";
366
else $style = "display: none;";
367
 
368
	echo "<div id='config-site' style='$style'>";
369
 
370
	// Utilisateurs autorises a proposer des sites references
371
	//
372
		echo "<p />";
373
		debut_cadre_relief();
374
		echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
375
		echo "<TR><TD BACKGROUND='" . _DIR_IMG_PACK . "rien.gif'>";
376
		echo "<FONT FACE='Verdana,Arial,Sans,sans-serif' SIZE=2 COLOR='#000000'>";
377
		echo _T('info_question_proposer_site');
378
			echo "<center><SELECT NAME='proposer_sites' CLASS='fondo' SIZE=1>\n";
379
				echo "<OPTION".mySel('0',$proposer_sites).">"._T('item_choix_administrateurs')."\n";
380
				echo "<OPTION".mySel('1',$proposer_sites).">"._T('item_choix_redacteurs')."\n";
381
				echo "<OPTION".mySel('2',$proposer_sites).">"._T('item_choix_visiteurs')."\n";
382
			echo "</SELECT></center><P>\n";
383
		echo "</FONT>";
384
		echo "</TD></TR></table>";
385
		fin_cadre_relief();
386
 
387
 
388
	if ($options == "avancees") {
389
		debut_cadre_relief("", false, "", _T('titre_syndication').aide ("rubsyn"));
390
 
391
		echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
392
		//
393
		// Reglage de la syndication
394
		//
395
		echo "<TR><TD BACKGROUND='" . _DIR_IMG_PACK . "rien.gif' class='verdana2'>";
396
		echo _T('texte_syndication');
397
		echo "</TD></TR>";
398
 
399
		echo "<TR><TD BACKGROUND='" . _DIR_IMG_PACK . "rien.gif' ALIGN='$spip_lang_left' class='verdana2'>";
400
 
401
			echo bouton_radio("activer_syndic", "oui", _T('item_utiliser_syndication'), $activer_syndic == "oui", "changeVisible(this.checked, 'config-syndic', 'block', 'none');");
402
			echo "<br />";
403
			echo bouton_radio("activer_syndic", "non", _T('item_non_utiliser_syndication'), $activer_syndic == "non", "changeVisible(this.checked, 'config-syndic', 'none', 'block');");
404
 
405
 
406
 
407
 
408
		if ($activer_syndic != "non") $style = "display: block;";
409
		else $style = "display: none;";
410
 
411
			echo "<div id='config-syndic' style='$style'>";
412
 
413
			// Moderation par defaut des sites syndiques
414
			echo "<p><hr><p align='$spip_lang_left'>";
415
			echo _T('texte_liens_sites_syndiques')."<p>";
416
 
417
			afficher_choix('moderation_sites', $moderation_sites,
418
				array('oui' => _T('item_bloquer_liens_syndiques'),
419
				'non' => _T('item_non_bloquer_liens_syndiques')));
420
 
421
			// Si indexation, activer/desactiver pages recuperees
422
 
423
			$activer_moteur = lire_meta("activer_moteur");
424
			if ($activer_moteur == "oui") {
425
				echo "<p><hr><p align='$spip_lang_left'>";
426
				echo _T('texte_utilisation_moteur_syndiques')." ";
427
				echo "<blockquote><i>"._T('texte_utilisation_moteur_syndiques_2')."</i></blockquote><p>";
428
 
429
				afficher_choix('visiter_sites', $visiter_sites,
430
					array('non' => _T('item_limiter_recherche'),
431
						'oui' => _T('item_non_limiter_recherche')));
432
			}
433
			echo "</div>";
434
 
435
		echo "</TD></TR>\n";
436
 
437
		echo "</TABLE>\n";
438
 
439
		fin_cadre_relief();
440
	}
441
	echo "</div>";
442
 
443
 
444
 
445
echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
446
echo "<TR><td style='text-align:$spip_lang_right;'>";
447
echo "<INPUT TYPE='submit' NAME='Valider' VALUE='"._T('bouton_valider')."' CLASS='fondo'>";
448
echo "</TD></TR>";
449
echo "</TABLE>\n";
450
 
451
fin_cadre_trait_couleur();
452
 
453
echo "<p>";
454
 
455
 
456
//
457
// Gestion des documents joints
458
//
459
 
460
debut_cadre_trait_couleur("doc-24.gif", false, "", _T('titre_documents_joints'));
461
 
462
$documents_rubrique = lire_meta("documents_rubrique");
463
$documents_article = lire_meta("documents_article");
464
 
465
echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
466
 
467
echo "<TR><TD class='verdana2'>";
468
echo _T('texte_documents_joints');
469
echo _T('texte_documents_joints_2');
470
echo "</TD></TR>";
471
 
472
echo "<TR>";
473
echo "<TD align='$spip_lang_left' class='verdana2'>";
474
afficher_choix('documents_article', $documents_article,
475
	array('oui' => _T('item_autoriser_documents_joints'),
476
		'non' => _T('item_non_autoriser_documents_joints')), "<br>");
477
echo "<br><br>\n";
478
afficher_choix('documents_rubrique', $documents_rubrique,
479
	array('oui' => _T('item_autoriser_documents_joints_rubriques'),
480
		'non' => _T('item_non_autoriser_documents_joints_rubriques')), "<br>");
481
echo "</FONT>";
482
echo "</TD></TR>";
483
 
484
echo "<TR><td style='text-align:$spip_lang_right;'>";
485
echo "<INPUT TYPE='submit' NAME='Valider' VALUE='"._T('bouton_valider')."' CLASS='fondo'>";
486
echo "</TD></TR>";
487
echo "</TABLE>\n";
488
 
489
fin_cadre_trait_couleur();
490
 
491
echo "<p>";
492
 
493
 
494
 
495
echo "</form>";
496
 
497
 
498
fin_page();
499
 
500
?>