Esempio n. 1
0
function configuration_ie6config()
{
	$iecompat = $GLOBALS['meta']["iecompat"];
	if (!$iecompat) $iecompat = "non";

	$res = _T("msiecompat:choix_explication");
	
	$res .= afficher_choix('iecompat', $iecompat,
		array('non' => _T("msiecompat:choix_non"),
			'ifixpng' => _L('iFixPng'),
			'IE7' => _L("IE7.js"),
			'IE7squish' => _L("IE7.js + ie7-squish.js"),
			'IE8' => _L('IE8.js'),
			'IE8squish' => _L('IE8.js + ie7-squish.js')
			/*,
			'IE9' => _L('IE9.js'),
			'IE9squish' => _L('IE9.js + ie7-squish.js')
			*/
		), 
		" <br /> ");
	
	
	$res = debut_cadre_trait_couleur(find_in_path("imgs/ie6-logo24.png"), true, "", _T("msiecompat:choix_titre"))
	. ajax_action_post('configurer', 'ie6config', 'configuration','',$res)
	. fin_cadre_trait_couleur(true);

	return ajax_action_greffe('configurer-ie6config', '', $res);

}
Esempio n. 2
0
function configuration_compteur_dist()
{
	global $spip_lang_right;

	$res = "<div class='verdana2'>"
	. _T('info_question_gerer_statistiques')
	. "</div>"
	. "<div class='verdana2'>"
	.  afficher_choix('activer_statistiques', 
			  $GLOBALS['meta']["activer_statistiques"],
			  array('oui' => _T('item_gerer_statistiques'),
				'non' => _T('item_non_gerer_statistiques')), ' &nbsp; ')
	  . "</div>";
	if ($GLOBALS['meta']["activer_statistiques"]=='oui'){
		$res .= "<br /><div class='verdana2' id='captures_voir'>"
		. _T('info_question_vignettes_referer')
		. "</div>"
		. "<div class='verdana2'>"
		.  afficher_choix('activer_captures_referers', 
				  $GLOBALS['meta']["activer_captures_referers"],
				  array('oui' => _T('info_question_vignettes_referer_oui'),
					'non' => _T('info_question_vignettes_referer_non')))
		  . "</div>";
	}


	$res = debut_cadre_trait_couleur("statistiques-24.gif", true, "", _T('info_forum_statistiques').aide ("confstat"))
	.  ajax_action_post('configurer', 'compteur', 'config_fonctions', '', $res)
	.  fin_cadre_trait_couleur(true);

	return ajax_action_greffe("configurer-compteur", '', $res);
}
Esempio n. 3
0
function configuration_documents_dist(){
	global $spip_lang_left, $spip_lang_right;

	$res = "<table border='0' cellspacing='1' cellpadding='3' width=\"100%\">";
	$res .= "<tr><td class='verdana2'>";
	$res .= _T('texte_documents_joints');
	$res .= _T('texte_documents_joints_2');
	$res .= "</td></tr>";

	$res .= "<tr>";
	$res .= "<td align='$spip_lang_left' class='verdana2'>";
	$res .= afficher_choix('documents_article',
		$GLOBALS['meta']["documents_article"],
		array('oui' => _T('item_autoriser_documents_joints'),
			'non' => _T('item_non_autoriser_documents_joints')), "<br />\n");
	$res .= "<br /><br />\n";
	$res .= afficher_choix('documents_rubrique',
		$GLOBALS['meta']["documents_rubrique"],
		array('oui' => _T('item_autoriser_documents_joints_rubriques'),
			'non' => _T('item_non_autoriser_documents_joints_rubriques')), "<br />\n");
	$res .= "<br /><br />\n";
	$res .= afficher_choix('documents_date',
		$GLOBALS['meta']["documents_date"],
		array('oui' => _T('item_autoriser_selectionner_date_en_ligne'),
			'non' => _T('item_non_autoriser_selectionner_date_en_ligne')), "<br />\n");
	$res .= "</td></tr>";
	$res .= "</table>\n";

	$res = debut_cadre_trait_couleur("doc-24.gif", true, "", _T('titre_documents_joints'))
	. ajax_action_post('configurer', 'documents', 'configuration','',$res)
	. fin_cadre_trait_couleur(true);

	return ajax_action_greffe('configurer-documents', '', $res);
}
Esempio n. 4
0
function configuration_type_urls_dist()
{
	if ($GLOBALS['type_urls'] != 'page') // fixe par mes_options
		return '';

	$dispo = array();
	foreach (find_all_in_path('urls/', '\w+\.php$', array()) as $f) {
		$r = basename($f, '.php');
		if ($r == 'index' OR strncmp('generer_',$r,8)==0) continue;
		include_once $f;
		$exemple = 'URLS_' . strtoupper($r) . '_EXEMPLE';
		$exemple = defined($exemple) ? constant($exemple) : '?';
		$dispo[$r] = "<em>$r</em> &mdash; <tt>" . $exemple . '</tt>';
	}

	$res = "<p class='verdana2'>"
		. _T('texte_type_urls')
		. "</p>"
		. "<div class='verdana2'>"
		. afficher_choix('type_urls', $GLOBALS['meta']['type_urls'], $dispo)
		. "</div>"
		. "<p><em>"
		. _T('texte_type_urls_attention', array('htaccess' => '<tt>.htaccess</tt>'))
		. "</em></p>";


	$res = '<br />'.debut_cadre_trait_couleur("", true, "",  _T('titre_type_urls').aide("confurl"))
	.  ajax_action_post('configurer', 'type_urls', 'config_fonctions', '', $res)
	.  fin_cadre_trait_couleur(true);

	return ajax_action_greffe("configurer-type_urls", '', $res);
}
Esempio n. 5
0
function configuration_visiteurs_dist()
{
	global $spip_lang_left ;

	if (!avoir_visiteurs(false,false)) {
		$res = "<table border='0' cellspacing='1' cellpadding='3' width=\"100%\">"
		. "\n<tr><td class='verdana2'>"
		. _T('info_question_accepter_visiteurs')
		. "</td></tr>"
		. "\n<tr><td style='text-align: $spip_lang_left' class='verdana2'>"
		. afficher_choix('accepter_visiteurs', $GLOBALS['meta']['accepter_visiteurs'],
				       array('oui' => _T('info_option_accepter_visiteurs'),
					'non' => _T('info_option_ne_pas_accepter_visiteurs')))
		. "</td></tr></table>\n";

		$res = ajax_action_post('configurer', 'visiteurs', 'config_contenu','',$res);
	} else {
		$res = _T('info_forums_abo_invites');
	}

	$res = debut_cadre_trait_couleur("redacteurs-24.gif", true, "", _T('info_visiteurs'))
	. $res
	. fin_cadre_trait_couleur(true);

	return ajax_action_greffe('configurer-visiteurs', '', $res);
}
Esempio n. 6
0
function configuration_forums_prives_dist()
{
	$res = "<div class='verdana2'>"
	. _T('info_config_forums_prive')
	. "<br />\n"

	. "<p>"._T('info_config_forums_prive_objets')
	. "<br />\n"
	. afficher_choix('forum_prive_objets', $GLOBALS['meta']['forum_prive_objets'],
		array('oui' => _T('item_config_forums_prive_objets'),
			'non' => _T('item_non_config_forums_prive_objets')))
	."</p>\n"

	. "<p>"._T('info_config_forums_prive_global')
	. "<br />\n"
	. afficher_choix('forum_prive', $GLOBALS['meta']['forum_prive'],
		array('oui' => _T('item_config_forums_prive_global'),
			'non' => _T('item_non_config_forums_prive_global')))
	."</p>\n"

	. "<p>"._T('info_config_forums_prive_admin')
	. "<br />\n"
	. afficher_choix('forum_prive_admin', $GLOBALS['meta']['forum_prive_admin'],
		array('oui' => _T('item_activer_forum_administrateur'),
			'non' => _T('item_desactiver_forum_administrateur')))
	."</p>\n"

	. "</div>";

	$res = debut_cadre_trait_couleur("forum-interne-24.gif", true, "", _T('titre_config_forums_prive'))
	. ajax_action_post('configurer', 'forums_prives', 'config_contenu','',$res)
	 . fin_cadre_trait_couleur(true);

	return ajax_action_greffe('configurer-forums_prives', '', $res);
}
Esempio n. 7
0
function configuration_referenceur_dist()
{
  global $spip_lang_right;

	$res =  "<p>"._T('texte_multilinguisme')."</p>"
	. "<div>"
	. _T('info_multi_articles')
	. "<div style='text-align: $spip_lang_right;'>"
	. afficher_choix('multi_articles', $GLOBALS['meta']['multi_articles'],
		array('oui' => _T('item_oui'), 'non' => _T('item_non')), " &nbsp; ")
	. "</div>"
	. "</div>"
	. "<div>"
	. _T('info_multi_rubriques')
	. "<div style='text-align: $spip_lang_right;'>"
	. afficher_choix('multi_rubriques', $GLOBALS['meta']['multi_rubriques'],
		array('oui' => _T('item_oui'), 'non' => _T('item_non')), " &nbsp; ")
	. "</div>"
	. "</div>";

	if  ($GLOBALS['meta']['multi_rubriques'] == 'oui') {
		$res .= "\n<div>"
		. _T('info_multi_secteurs')
		. "<div style='text-align: $spip_lang_right;'>"
		. afficher_choix('multi_secteurs', $GLOBALS['meta']['multi_secteurs'],
			array('oui' => _T('item_oui'), 'non' => _T('item_non')), " &nbsp; ")
		. "</div>"
		. "</div>";
	} else
		$res .= "<input type='hidden' name='multi_secteurs' id='multi_secteurs' value='".$GLOBALS['meta']['multi_secteurs']."' />";

	if (($GLOBALS['meta']['multi_rubriques'] == 'oui') OR ($GLOBALS['meta']['multi_articles'] == 'oui')) {
		$res .= "<hr />"
		. "<p>"._T('texte_multilinguisme_trad')."</p>";

		$res .= _T('info_gerer_trad')
		. "<div style='text-align: $spip_lang_right;'>"
		. afficher_choix('gerer_trad', $GLOBALS['meta']['gerer_trad'],
			array('oui' => _T('item_oui'), 'non' => _T('item_non')), " &nbsp; ")
		. "</div>";
	} else
		$res .= "<input type='hidden' name='gerer_trad' id='gerer_trad' value='".$GLOBALS['meta']['gerer_trad']."' />";

	$res = debut_cadre_couleur("traductions-24.gif", true, "", _T('info_multilinguisme'))
	. ajax_action_post('configurer', 'referenceur', 'config_multilang', '', $res)
	. fin_cadre_couleur(true);

	return ajax_action_greffe("configurer-referenceur", '', $res);
}
Esempio n. 8
0
function configuration_messagerie_agenda_dist()
{
	$res = "<div class='verdana2'>"
	. _T('texte_messagerie_agenda')
	. "<br />\n"
	. afficher_choix('messagerie_agenda', $GLOBALS['meta']['messagerie_agenda'],
		array('oui' => _T('item_messagerie_agenda'),
			'non' => _T('item_non_messagerie_agenda')))
	. "</div>";

	$res = debut_cadre_trait_couleur("messagerie-24.gif", true, "", _T('titre_messagerie_agenda'))
	. ajax_action_post('configurer', 'messagerie_agenda', 'config_contenu','',$res)
	 . fin_cadre_trait_couleur(true);

	return ajax_action_greffe('configurer-messagerie_agenda', '', $res);
}
Esempio n. 9
0
function configuration_indexeur_dist()
{
	global $spip_lang_right;

	$res = "<div class='verdana2'>"
	.  _T('info_question_utilisation_moteur_recherche')
	.  "</div>"
	.  "<div class='verdana2'>"
	.  afficher_choix('activer_moteur', $GLOBALS['meta']["activer_moteur"],
		array('oui' => _T('item_utiliser_moteur_recherche'),
			'non' => _T('item_non_utiliser_moteur_recherche')), ' &nbsp; ')
	  .  "</div>";

	$res = debut_cadre_trait_couleur("racine-site-24.gif", true, "", _T('info_moteur_recherche').aide ("confmoteur"))
	.  ajax_action_post('configurer', 'indexeur', 'config_fonctions', '', $res)
	.  fin_cadre_trait_couleur(true);

	return ajax_action_greffe("configurer-indexeur", '', $res);
}
Esempio n. 10
0
function configuration_versionneur_dist()
{
	global $spip_lang_right;

	$res =  "<div class='verdana2'>"
	. _T('info_historique_texte')
	. "</div>"
	. "<div class='verdana2'>"
	. afficher_choix('articles_versions', $GLOBALS['meta']["articles_versions"],
		array('oui' => _T('info_historique_activer'),
			'non' => _T('info_historique_desactiver')))
	. "</div>";

	$res = debut_cadre_trait_couleur("historique-24.gif", true, "", _T('info_historique_titre').aide("suivimodif"))
	.  ajax_action_post('configurer', 'versionneur', 'config_fonctions', '', $res)
	.  fin_cadre_trait_couleur(true);

	return ajax_action_greffe("configurer-versionneur", '', $res);
}
Esempio n. 11
0
function configuration_avertisseur_dist()
{
	global $spip_lang_right;

	$res = "<div class='verdana2'>"
	. _T('texte_travail_collaboratif')
	. "</div>"
	. "<div class='verdana2'>"
	. afficher_choix('articles_modif',$GLOBALS['meta']["articles_modif"] ,
		array('oui' => _T('item_activer_messages_avertissement'),
			'non' => _T('item_non_activer_messages_avertissement')))
	  . "</div>";


	$res = debut_cadre_trait_couleur("article-24.gif", true, "", _T('info_travail_colaboratif').aide("artmodif"))
	.  ajax_action_post('configurer', 'avertisseur', 'config_fonctions', '', $res)
	.  fin_cadre_trait_couleur(true);

	return ajax_action_greffe("configurer-avertisseur", '', $res);
}
Esempio n. 12
0
function configuration_logos_dist(){
	global $spip_lang_left, $spip_lang_right;
	
	$activer_logos = $GLOBALS['meta']["activer_logos"];
	$activer_logos_survol = $GLOBALS['meta']["activer_logos_survol"];
	
	$res = "<table border='0' cellspacing='1' cellpadding='3' width=\"100%\">";
	$res .= "<tr><td class='verdana2'>";
	$res .= _T('config_info_logos').aide('logoart');
	$res .= "</td></tr>";
	
	$res .= "<tr>";
	$res .= "<td align='$spip_lang_left' class='verdana2'>";
	
	
	$res .= bouton_radio("activer_logos", "oui", _T('config_info_logos_utiliser'), $activer_logos == "oui", "changeVisible(this.checked, 'logos_survol_config', 'block', 'none');")
	. " <br /> "
	. bouton_radio("activer_logos", "non", _T('config_info_logos_utiliser_non'), $activer_logos == "non", "changeVisible(this.checked, 'logos_survol_config', 'none', 'block');");

	if ($activer_logos != "non") $style = "display: block;";
	else $style = "display: none;";
	
	$res .= "<br /><br /><div id='logos_survol_config' style='$style'>";
	

	$res .= afficher_choix('activer_logos_survol', $activer_logos_survol,
		array('oui' => _T('config_info_logos_utiliser_survol'),
			'non' => _T('config_info_logos_utiliser_survol_non')), " <br /> ");
			
			
	$res .= "</div>";
	
	$res .= "</td></tr>";
	$res .= "</table>\n";

	$res = debut_cadre_trait_couleur("image-24.gif", true, "", _T('info_logos'))
	. ajax_action_post('configurer', 'logos', 'configuration','',$res) 
	. fin_cadre_trait_couleur(true);

	return ajax_action_greffe('configurer-logos', '', $res);
}
Esempio n. 13
0
function configuration_rubriques_dist(){
	global $spip_lang_left;

	$rubriques_descriptif = $GLOBALS['meta']["rubriques_descriptif"];
	$rubriques_texte = $GLOBALS['meta']["rubriques_texte"];

	$res = "<table border='0' cellspacing='1' cellpadding='3' width=\"100%\">"

	. "<tr><td colspan='2' class='verdana2'>"
	. typo(_T('config_activer_champs').':')
	. "</td></tr>"

	. "<tr>"
	. "<td align='$spip_lang_left' class='verdana2'>"
	. _T('info_descriptif')
	. "</td>"
	. "<td align='$spip_lang_left' class='verdana2'>"
	. afficher_choix('rubriques_descriptif', $rubriques_descriptif,
		array('oui' => _T('item_oui'), 'non' => _T('item_non')), " &nbsp; ")
	. "</td></tr>\n"

	. "<tr>"
	. "<td align='$spip_lang_left' class='verdana2'>"
	. typo(_T('info_texte').':')
	. "</td>"
	. "<td align='$spip_lang_left' class='verdana2'>"
	. afficher_choix('rubriques_texte', $rubriques_texte,
		array('oui' => _T('item_oui'), 'non' => _T('item_non')), " &nbsp; ")
	. "</td></tr>\n"

	. "</table>";

	$res = debut_cadre_trait_couleur("rubrique-24.gif", true, "", _T('icone_rubriques'))
	. ajax_action_post('configurer', 'rubriques', 'configuration','',$res)
	. fin_cadre_trait_couleur(true);

	return ajax_action_greffe('configurer-rubriques', '', $res);

}
Esempio n. 14
0
function configuration_redacteurs_dist()
{
	$res = "<table border='0' cellspacing='1' cellpadding='3' width=\"100%\">"
	. "\n<tr><td class='verdana2'>"
#	. "<blockquote><p><i>"
	. _T('info_question_inscription_nouveaux_redacteurs')
#	. "</i></p></blockquote>"
	. "</td></tr>"
	. "\n<tr><td align='center' class='verdana2'>"
	. afficher_choix('accepter_inscriptions', $GLOBALS['meta']["accepter_inscriptions"],
		array('oui' => _T('item_accepter_inscriptions'),
			'non' => _T('item_non_accepter_inscriptions')), " &nbsp; ")

	. "</td></tr>\n"
	. "</table>\n";

	$res = debut_cadre_trait_couleur("redacteurs-24.gif", true, "", _T('info_inscription_automatique'))
	. ajax_action_post('configurer', 'redacteurs', 'config_contenu','',$res)
	. fin_cadre_trait_couleur(true);

	return ajax_action_greffe('configurer-redacteurs', '', $res);
}
Esempio n. 15
0
function configuration_futurs_dist()
{
	global $spip_lang_left;

	$res = "<table border='0' cellspacing='1' cellpadding='3' width=\"100%\">"
	. "<tr><td class='verdana2'>"
	. _T('texte_publication_articles_post_dates')
	. "</td></tr>"

	. "<tr><td align='$spip_lang_left' class='verdana2'>"
	. afficher_choix('post_dates', $GLOBALS['meta']["post_dates"],
		array('oui' => _T('item_publier_articles'),
			'non' => _T('item_non_publier_articles')))
	. "</td></tr>\n"
	. "</table>\n";

	$res = debut_cadre_relief("", true, "", _T('titre_publication_articles_post_dates').aide ("confdates"))
	. ajax_action_post('configurer', 'futurs', 'configuration','',$res)
 	. fin_cadre_relief(true);

	return ajax_action_greffe('configurer-futurs', '', $res);
}
Esempio n. 16
0
function configuration_redirection_dist()
{
	global $spip_lang_left;

	$res = "<table border='0' cellspacing='1' cellpadding='3' width=\"100%\">"
	. "<tr><td class='verdana2'>"
	. _T('config_info_redirection')
	. "</td></tr>"

	. "<tr><td align='$spip_lang_left' class='verdana2'>"
	. afficher_choix('articles_redirection', $GLOBALS['meta']["articles_redirection"],
		array('oui' => _T('item_oui'),
			'non' => _T('item_non')))
	. "</td></tr>\n"
	. "</table>\n";

	$res = debut_cadre_relief("", true, "", _T('config_redirection').aide ("artvirt"))
	. ajax_action_post('configurer', 'redirection', 'configuration','',$res)
 	. fin_cadre_relief(true);

	return ajax_action_greffe('configurer-redirection', '', $res);
}
Esempio n. 17
0
function configuration_breves_dist(){

	$activer_breves = $GLOBALS['meta']["activer_breves"];

	$res = "<table border='0' cellspacing='1' cellpadding='3' width=\"100%\">"
	. "<tr><td class='verdana2'>"
	. _T('texte_breves')."<br />\n"
	. _T('info_breves')
	. "</td></tr>"
	. "<tr><td align='center' class='verdana2'>"
	. afficher_choix('activer_breves', $activer_breves,
		array('oui' => _T('item_utiliser_breves'),
			'non' => _T('item_non_utiliser_breves')), " &nbsp; ")
	. "</td></tr>\n"
	. "</table>\n";
	
	$res = debut_cadre_trait_couleur("breve-24.gif", true, "", _T('titre_breves').aide ("confbreves"))
	. ajax_action_post('configurer', 'breves', 'configuration','',$res)
	. fin_cadre_trait_couleur(true);

	return ajax_action_greffe('configurer-breves', '', $res);

}
Esempio n. 18
0
function configuration_porte_plume_dist()
{

	if (!$val =  $GLOBALS['meta']["barre_outils_public"]) {
		$val = 'oui';
	}
	$res = propre(_T("barre_outils:explication_barre_outils_public"));
	$res .= propre(_T("barre_outils:explication_barre_outils_public_2"));
	
	$res .= afficher_choix('barre_outils_public', $val,
		array(
			'oui' => _T("barre_outils:label_barre_outils_public_oui"),
			'non' => _T("barre_outils:label_barre_outils_public_non")
		), 
		" <br /> ");
	
	
	$res = debut_cadre_trait_couleur(find_in_path("images/porte-plume-24.png"), true, "", _T("barre_outils:info_porte_plume_titre"))
	. ajax_action_post('configurer', 'porte_plume', 'configuration','',$res)
	. fin_cadre_trait_couleur(true);

	return ajax_action_greffe('configurer-porte_plume', '', $res);

}
Esempio n. 19
0
function configuration_contenu_forums_dist(){
	global $spip_lang_left;

	$forums_titre = $GLOBALS['meta']["forums_titre"];
	$forums_texte = $GLOBALS['meta']["forums_texte"];
	$forums_urlref = $GLOBALS['meta']["forums_urlref"];
	$forums_afficher_barre = $GLOBALS['meta']["forums_afficher_barre"];

	$res = "<table border='0' cellspacing='1' cellpadding='3' width=\"100%\">"

	. "<tr><td colspan='2' class='verdana2'>"
	. typo(_T('config_activer_champs').':')
	. "</td></tr>"

	. "<tr>"
	. "<td align='$spip_lang_left' class='verdana2'>"
	. _T('info_titre')
	. "</td>"
	. "<td align='$spip_lang_left' class='verdana2'>"
	. afficher_choix('forums_titre', $forums_titre,
		array('oui' => _T('item_oui'), 'non' => _T('item_non')), " &nbsp; ")
	. "</td></tr>\n"

	. "<tr>"
	. "<td align='$spip_lang_left' class='verdana2'>"
	. typo(_T('info_texte').':')
	. "</td>"
	. "<td align='$spip_lang_left' class='verdana2'>"
	. afficher_choix('forums_texte', $forums_texte,
		array('oui' => _T('item_oui'), 'non' => _T('item_non')), " &nbsp; ")
	. "</td></tr>\n"

	. "<tr>"
	. "<td align='$spip_lang_left' class='verdana2'>- "
	. _T('info_barre_outils')
	. "</td>"
	. "<td align='$spip_lang_left' class='verdana2'>"
	. afficher_choix('forums_afficher_barre', $forums_afficher_barre,
		array('oui' => _T('item_oui'), 'non' => _T('item_non')), " &nbsp; ")
	. "</td></tr>\n"

	. "<tr>"
	. "<td align='$spip_lang_left' class='verdana2'>"
	. _T('info_urlref')
	. "</td>"
	. "<td align='$spip_lang_left' class='verdana2'>"
	. afficher_choix('forums_urlref', $forums_urlref,
		array('oui' => _T('item_oui'), 'non' => _T('item_non')), " &nbsp; ")
	. "</td></tr>\n"


	. "<tr>"
	. "<td align='$spip_lang_left' class='verdana2' colspan='2'>"
	. _T('info_question_visiteur_ajout_document_forum')
	. "<div class='spip_xx-small'>"
	. _T('info_question_visiteur_ajout_document_forum_format')
	. "</div><br />"
	. "<input type='text' name='formats_documents_forum' id='formats_documents_forum' size='40' class='forml' value=\""
		.entites_html($GLOBALS['meta']['formats_documents_forum'])
		."\" />"
	. "</td></tr>\n"


	. "</table>";

	$res = debut_cadre_trait_couleur("forum-public-24.gif", true, "", _T('titre_forum'))
	. ajax_action_post('configurer', 'contenu_forums', 'configuration','',$res)
	. fin_cadre_trait_couleur(true);

	return ajax_action_greffe('configurer-contenu_forums', '', $res);

}
Esempio n. 20
0
function configuration_mots_dist(){
	global $spip_lang_left;

	$articles_mots = $GLOBALS['meta']["articles_mots"];
	$config_precise_groupes = $GLOBALS['meta']["config_precise_groupes"];
	$mots_cles_forums = $GLOBALS['meta']["mots_cles_forums"];
	$forums_publics = $GLOBALS['meta']["forums_publics"]!='non';
	if (!$forums_publics){
		$forums_publics = sql_countsel('spip_forum', "statut='publie'");
	}

	$res .= "<table border='0' cellspacing='1' cellpadding='3' width=\"100%\">"
	. "<tr><td class='verdana2'>"
	. _T('texte_mots_cles')."<br />\n"
	. _T('info_question_mots_cles')
	. "</td></tr>"
	. "<tr>"
	. "<td align='center' class='verdana2'>"
	. bouton_radio("articles_mots", "oui", _T('item_utiliser_mots_cles'), $articles_mots == "oui", "changeVisible(this.checked, 'mots-config', 'block', 'none');")
	. " &nbsp;"
	. bouton_radio("articles_mots", "non", _T('item_non_utiliser_mots_cles'), $articles_mots == "non", "changeVisible(this.checked, 'mots-config', 'none', 'block');");

	//	$res .= afficher_choix('articles_mots', $articles_mots,
	//		array('oui' => _T('item_utiliser_mots_cles'),
	//			'non' => _T('item_non_utiliser_mots_cles')), "<br />");
	$res .= "</td></tr></table>";

	if ($articles_mots != "non") $style = "display: block;";
	else $style = "display: none;";
	
	$res .= "<div id='mots-config' style='$style'>"
	. "<br />\n"
	. debut_cadre_relief("", true, "", _T('titre_config_groupe_mots_cles'))
	. "<table border='0' cellspacing='1' cellpadding='3' width=\"100%\">"
	. "<tr><td class='verdana2'>"
	. _T('texte_config_groupe_mots_cles')
	. "</td></tr>"
	. "<tr>"
	. "<td align='$spip_lang_left' class='verdana2'>"
	. afficher_choix('config_precise_groupes', $config_precise_groupes,
		array('oui' => _T('item_utiliser_config_groupe_mots_cles'),
			'non' => _T('item_non_utiliser_config_groupe_mots_cles')))
	. "</td></tr></table>"
	. fin_cadre_relief(true);

	if ($forums_publics){
		$res .= "<br />\n"
		. debut_cadre_relief("", true, "", _T('titre_mots_cles_dans_forum'))
		. "<table border='0' cellspacing='1' cellpadding='3' width=\"100%\">"
		. "<tr><td class='verdana2'>"
		. _T('texte_mots_cles_dans_forum')
		. "</td></tr>"
		. "<tr>"
		. "<td align='$spip_lang_left' class='verdana2'>"
		. afficher_choix('mots_cles_forums', $mots_cles_forums,
			array('oui' => _T('item_ajout_mots_cles'),
				'non' => _T('item_non_ajout_mots_cles')))
		. "</td></tr>"
		. "</table>"
		. fin_cadre_relief(true);
	}
	$res .= "</div>";	

	$res = debut_cadre_trait_couleur("mot-cle-24.gif", true, "", _T('info_mots_cles'))
	. ajax_action_post('configurer', 'mots', 'configuration','',$res) 
	. fin_cadre_trait_couleur(true);

	return ajax_action_greffe('configurer-mots', '', $res);

}
Esempio n. 21
0
function configuration_syndications_dist()
{
	global $spip_lang_left;
	
	$activer_sites = $GLOBALS['meta']['activer_sites'];
	$activer_syndic = $GLOBALS['meta']["activer_syndic"];
	$proposer_sites = $GLOBALS['meta']["proposer_sites"];
	$moderation_sites = $GLOBALS['meta']["moderation_sites"];
	
	$res = "\n<table border='0' cellspacing='1' cellpadding='3' width=\"100%\">";
	
	$res .= "<tr><td align='$spip_lang_left' class='verdana2'>";
	
	$res .= bouton_radio("activer_sites", "oui", _T('item_gerer_annuaire_site_web'), $activer_sites == "oui", "changeVisible(this.checked, 'config-site', 'block', 'none');");
	$res .= " &nbsp;";
	$res .= bouton_radio("activer_sites", "non", _T('item_non_gerer_annuaire_site_web'), $activer_sites == "non", "changeVisible(this.checked, 'config-site', 'none', 'block');");
	
	$res .= "</td></tr></table>\n";



	if ($activer_sites != 'non') $style = "display: block;";
	else $style = "display: none;";

	$res .= "<div id='config-site' style='$style'>";
	
	// Utilisateurs autorises a proposer des sites references
	//
	$res .= "<br />\n";
	$res .= debut_cadre_relief('',true);
	$res .= "\n<table border='0' cellspacing='1' cellpadding='3' width=\"100%\">";
	$res .= "\n<tr><td style='color: #000000' class='verdana1 spip_x-small'>";
	$res .= "<label for='proposer_sites'>" . _T('info_question_proposer_site') ."</label>";
	$res .= "\n<div style='text-align: center'><select name='proposer_sites' id='proposer_sites' size='1'>\n";
	$res .= "<option".mySel('0',$proposer_sites).">"._T('item_choix_administrateurs')."</option>\n";
	$res .= "<option".mySel('1',$proposer_sites).">"._T('item_choix_redacteurs')."</option>\n";
	$res .= "<option".mySel('2',$proposer_sites).">"._T('item_choix_visiteurs')."</option>\n";
	$res .= "</select></div>\n";
	$res .= "</td></tr></table>\n";
	$res .= fin_cadre_relief(true);

	$res .= debut_cadre_relief("", true, "", _T('titre_syndication').aide ("rubsyn"));
	
	$res .= "\n<table border='0' cellspacing='1' cellpadding='3' width=\"100%\">";
	//
	// Reglage de la syndication
	//
	$res .= "<tr><td class='verdana2'>";
	$res .= _T('texte_syndication');
	$res .= "</td></tr>";

	$res .= "<tr><td align='$spip_lang_left' class='verdana2'>";

	$res .= bouton_radio("activer_syndic", "oui", _T('item_utiliser_syndication'), $activer_syndic == "oui", "changeVisible(this.checked, 'config-syndic', 'block', 'none');");
	$res .= "<br />\n";
	$res .= bouton_radio("activer_syndic", "non", _T('item_non_utiliser_syndication'), $activer_syndic == "non", "changeVisible(this.checked, 'config-syndic', 'none', 'block');");

	if ($activer_syndic != "non") $style = "display: block;";
	else $style = "display: none;";
			
	$res .= "<div id='config-syndic' style='$style'>";
		
	// Moderation par defaut des sites syndiques
	$res .= "<hr /><p style='text-align: $spip_lang_left'>";
	$res .= _T('texte_liens_sites_syndiques')."</p>";

	$res .= afficher_choix('moderation_sites', $moderation_sites,
		array('oui' => _T('item_bloquer_liens_syndiques'),
		'non' => _T('item_non_bloquer_liens_syndiques')));

	$res .= "</div>";
		
	$res .= "</td></tr>\n";

	$res .= "</table>\n";

	$res .= fin_cadre_relief(true);
	$res .= "</div>";

	//
	// Gestion des flux RSS
	//

	$res .= debut_cadre_relief("feed.png", true, "", _T('ical_titre_rss'));
	
	$res .= "<table border='0' cellspacing='1' cellpadding='3' width=\"100%\">";
	
	$res .= "<tr><td class='verdana2'>";
	$res .= _T('info_syndication_integrale_1',
			array('url' => generer_url_ecrire('synchro'),
			'titre' => _T("icone_suivi_activite"))
		).
		'<p>' .
	  _T('info_syndication_integrale_2').
	  '</p>';
	$res .= "</td></tr>";
	
	$res .= "<tr>";
	$res .= "<td align='$spip_lang_left' class='verdana2'>";
	$res .= afficher_choix('syndication_integrale', $GLOBALS['meta']["syndication_integrale"],
		array('oui' => _T('item_autoriser_syndication_integrale'),
			'non' => _T('item_non_autoriser_syndication_integrale')), "<br />\n");
	$res .= "</td></tr>";
	$res .= "</table>\n";
	
	$res .= fin_cadre_relief(true);

	$res = debut_cadre_trait_couleur("site-24.gif",true, "", _T('titre_referencement_sites').aide ("reference"))
	. ajax_action_post('configurer', 'syndications', 'configuration','',$res) 
	. fin_cadre_trait_couleur(true);

	return ajax_action_greffe('configurer-syndications', '', $res);
}
Esempio n. 22
0
function configuration_compresseur_dist()
{
	global $spip_lang_right;

	$res = '';

	// Compression du flux HTTP
	if (!function_exists('ob_gzhandler')) {
		$GLOBALS['meta']['auto_compress_http'] = 'non';
	} else {
		$res .= debut_cadre_relief("", true, "", _T('titre_compresser_flux_http'))
			.  "<p class='verdana2'>"
			. _T('texte_compresseur_page')
			. "</p>"
			. "<p class='verdana2'>"
			. _T('info_compresseur_gzip', array('testgzip' => propre('[->'.parametre_url('http://redbot.org/', 'uri',$GLOBALS['meta']['adresse_site']).']'))
			)
			. "</p>"

			. "<div class='verdana2'>"
			. "<p class='verdana2'>"
			. _T('info_question_activer_compresseur')
			. "</p>"
			. afficher_choix('auto_compress_http',
				($GLOBALS['meta']['auto_compress_http'] != 'non') ? 'oui' : 'non',
				array(
					'oui' => _T('item_compresseur'),
					'non' => _T('item_non_compresseur')
				)
			)
			. "</div>"
		. fin_cadre_relief(true);
	}


	// Compression des scripts et css
	$res .= debut_cadre_relief("", true, "", _T('titre_compacter_script_css'))
		.  "<p class='verdana2'>"
		. _T('texte_compacter_script_css')
		. " "
		. "</p>"

		. "<div class='verdana2'>"
		. "<p class='verdana2'>"
		. _T('info_question_activer_compactage_js')
		. "</p>"
		. afficher_choix('auto_compress_js',
			($GLOBALS['meta']['auto_compress_js'] != 'non') ? 'oui' : 'non',
			array(
				'oui' => _T('item_compresseur'),
				'non' => _T('item_non_compresseur')
			)
		)
		. "</div>"

		. "<div class='verdana2'>"
		. "<p class='verdana2'>"
		. _T('info_question_activer_compactage_css')
		. "</p>"
		. afficher_choix('auto_compress_css',
			($GLOBALS['meta']['auto_compress_css'] != 'non') ? 'oui' : 'non',
			array(
				'oui' => _T('item_compresseur'),
				'non' => _T('item_non_compresseur')
			)
		)
		. "</div>"

		. "<p><em>"._T('texte_compacter_avertissement')."</em></p>"


		. fin_cadre_relief(true);




	$res = '<br />'.debut_cadre_trait_couleur("", true, "",
		_T('info_compresseur_titre'))
	.  ajax_action_post('configurer', 'compresseur', 'config_fonctions', '', $res)
	.  fin_cadre_trait_couleur(true);

	return ajax_action_greffe("configurer-compresseur", '', $res);
}
Esempio n. 23
0
function options_moderation($row) {

	global $spip_lang_left;

	if ($row['syndication'] == 'non' or $row['syndication'] == '') return '';

	$id_syndic = $row['id_syndic'];
	$moderation = $row['moderation'];
	if ($moderation != 'oui') $moderation='non';

	$res = "<div style='text-align: ".$GLOBALS['spip_lang_left']."'>".
		  _T('syndic_choix_moderation')
		. "<div style='padding-$spip_lang_left: 40px;'>"
		. afficher_choix('moderation', $moderation,
			array(
			'non' => _T('info_publier') .' ('._T('bouton_radio_modere_posteriori').')',
			'oui' => _T('info_bloquer') .' ('._T('bouton_radio_modere_priori').')' ))
		. "</div></div>\n";

	// Oublier les vieux liens ?
	// Depublier les liens qui ne figurent plus ?

	$res .= "\n<div>&nbsp;</div>"
		. "\n<div style='text-align:".$GLOBALS['spip_lang_left']."'>"._T('syndic_choix_oublier'). '</div>'
		. "\n<ul style='text-align:".$GLOBALS['spip_lang_left']."'>\n";

	$on = array('oui' => _T('item_oui'), 'non' => _T('item_non'));
	if (!$miroir = $row['miroir'])
		$miroir = 'non';

	$res .= "\n<li>"._T('syndic_option_miroir').' '
	  . afficher_choix('miroir', $miroir, $on, " &nbsp; ")
	  . "</li>\n";

	if (!$oubli = $row['oubli'])
		$oubli = 'non';
	$res .= "\n<li>"
	  . _T('syndic_option_oubli', array('mois' => 2)).' '
	  . afficher_choix('oubli', $oubli, $on," &nbsp; ")
	  . "</li>\n"
	  . "</ul>\n";

	// Prendre les resumes ou le texte integral ?
	if (!$resume = $row['resume'])
		$resume = 'oui';

	$res .= "\n<div style='text-align: $spip_lang_left'>"
	  .  _T('syndic_choix_resume')
	  . "\n<div style='padding-$spip_lang_left: 40px;'>"
	  . afficher_choix('resume', $resume,
	    array(	'oui' => _T('syndic_option_resume_oui'),
	      'non' => _T('syndic_option_resume_non')	))
	  . "</div></div>\n";

	// Bouton "Valider"
	$res .= "\n<div style='text-align:".$GLOBALS['spip_lang_right'].";'><input type='submit' value='"._T('bouton_valider')."' /></div>\n";

	return
	  debut_cadre_relief('feed.png', true, "", _T('syndic_options').aide('artsyn'))
	  . redirige_action_post('editer_site', "options/$id_syndic", 'sites', '', $res)
	 .  fin_cadre_relief(true);
}
Esempio n. 24
0
function configuration_articles_dist(){
	global $spip_lang_left;

	$articles_surtitre = $GLOBALS['meta']["articles_surtitre"];
	$articles_soustitre = $GLOBALS['meta']["articles_soustitre"];
	$articles_descriptif = $GLOBALS['meta']["articles_descriptif"];
	$articles_chapeau = $GLOBALS['meta']["articles_chapeau"];
	$articles_texte = $GLOBALS['meta']["articles_texte"];
	$articles_ps = $GLOBALS['meta']["articles_ps"];
	$articles_redac = $GLOBALS['meta']["articles_redac"];
	$articles_urlref = $GLOBALS['meta']["articles_urlref"];

	$res = "<table border='0' cellspacing='1' cellpadding='3' width=\"100%\">"

	. "<tr><td colspan='2' class='verdana2'>"
	. _T('texte_contenu_articles')
	. "</td></tr>"

	. "<tr>"
	. "<td align='$spip_lang_left' class='verdana2'>"
	. _T('info_surtitre')
	. "</td>"
	. "<td align='$spip_lang_left' class='verdana2'>"
	. afficher_choix('articles_surtitre', $articles_surtitre,
		array('oui' => _T('item_oui'), 'non' => _T('item_non')), " &nbsp; ")
	. "</td></tr>\n"

	. "<tr>"
	. "<td align='$spip_lang_left' class='verdana2'>"
	. _T('info_sous_titre')
	. "</td>"
	. "<td align='$spip_lang_left' class='verdana2'>"
	. afficher_choix('articles_soustitre', $articles_soustitre,
		array('oui' => _T('item_oui'), 'non' => _T('item_non')), " &nbsp; ")
	. "</td></tr>\n"

	. "<tr>"
	. "<td align='$spip_lang_left' class='verdana2'>"
	. _T('info_descriptif')
	. "</td>"
	. "<td align='$spip_lang_left' class='verdana2'>"
	. afficher_choix('articles_descriptif', $articles_descriptif,
		array('oui' => _T('item_oui'), 'non' => _T('item_non')), " &nbsp; ")
	. "</td></tr>\n"

	. "<tr>"
	. "<td align='$spip_lang_left' class='verdana2'>"
	. _T('info_chapeau_2')
	. "</td>"
	. "<td align='$spip_lang_left' class='verdana2'>"
	. afficher_choix('articles_chapeau', $articles_chapeau,
		array('oui' => _T('item_oui'), 'non' => _T('item_non')), " &nbsp; ")
	. "</td></tr>\n"

	. "<tr>"
	. "<td align='$spip_lang_left' class='verdana2'>"
	. typo(_T('info_texte').':')
	. "</td>"
	. "<td align='$spip_lang_left' class='verdana2'>"
	. afficher_choix('articles_texte', $articles_texte,
		array('oui' => _T('item_oui'), 'non' => _T('item_non')), " &nbsp; ")
	. "</td></tr>\n"

	. "<tr>"
	. "<td align='$spip_lang_left' class='verdana2'>"
	. _T('info_post_scriptum_2')
	. "</td>"
	. "<td align='$spip_lang_left' class='verdana2'>"
	. afficher_choix('articles_ps', $articles_ps,
		array('oui' => _T('item_oui'), 'non' => _T('item_non')), " &nbsp; ")
	. "</td></tr>\n"

	. "<tr>"
	. "<td align='$spip_lang_left' class='verdana2'>"
	. _T('info_date_publication_anterieure')
	. "</td>"
	. "<td align='$spip_lang_left' class='verdana2'>"
	. afficher_choix('articles_redac', $articles_redac,
		array('oui' => _T('item_oui'), 'non' => _T('item_non')), " &nbsp; ")
	. "</td></tr>\n"

	. "<tr>"
	. "<td align='$spip_lang_left' class='verdana2'>"
	. _T('info_urlref')
	. "</td>"
	. "<td align='$spip_lang_left' class='verdana2'>"
	. afficher_choix('articles_urlref', $articles_urlref,
		array('oui' => _T('item_oui'), 'non' => _T('item_non')), " &nbsp; ")
	. "</td></tr>\n"


	. "</table>";

	$res = debut_cadre_relief("", true, "", _T('info_contenu_articles').aide ("confart"))
	. ajax_action_post('configurer', 'articles', 'configuration','',$res)
	. fin_cadre_relief(true);

	return ajax_action_greffe('configurer-articles', '', $res);

}
Esempio n. 25
0
function accesrestreint_htpasswd_config() {
	global $spip_lang_right;

	include_spip('inc/acces');
	ecrire_acces();

	echo debut_cadre_trait_couleur("cadenas-24.gif", true, "",
		_T('info_fichiers_authent'));

	$creer_htpasswd = $GLOBALS['meta']["creer_htpasswd"];

	echo "<div class='verdana2'>", _T('texte_fichier_authent', array('dossier' => '<tt>'.joli_repertoire(_DIR_TMP).'</tt>')), "</div>";

	echo "<div class='verdana2'>";
	echo afficher_choix('creer_htpasswd', $creer_htpasswd,
		array('oui' => _T('item_creer_fichiers_authent'),
			'non' =>  _T('item_non_creer_fichiers_authent')),
		' &nbsp; ');
	echo "</div>";
	echo "<div style='text-align:$spip_lang_right'><input type='submit' value='"._T('bouton_valider')."' class='fondo' /></div>";
	
	echo fin_cadre_trait_couleur(true);
}