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/univers/plugins/auto/article_pdf/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/hednacluml/univers/plugins/auto/article_pdf/article_pdf_options.php
<?php

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

// au choix, selon le cas (voir les avantages et les inconvénients de chaque selon le site):
// si besoin on fera un define de la constante en amont dans le fichier config/mes_options.php
//define('_DIR_STOCK_PDF', sous_repertoire(_DIR_CACHE, "article_PDF"));
if (!defined('_DIR_STOCK_PDF')) {
		define('_DIR_STOCK_PDF', sous_repertoire(_DIR_IMG, "article_PDF"));
}

if (!defined('_DIR_LIB')) define('_DIR_LIB', _DIR_RACINE . 'lib/');
if (!defined('_DIR_FPDF_LIB')) define('_DIR_FPDF_LIB', find_in_path('lib/fpdf184/'));

function balise_ARTICLE_PDF_dist($p) {
	if (!is_array($p->param))
		$p->param=array();

	// Produire le premier argument {article_pdf}
	$texte = new Texte;
	$texte->type='texte';
	$texte->texte='article_pdf';
	$param = array(0=>NULL, 1=>array(0=>$texte));
	array_unshift($p->param, $param);

	// Transformer les filtres en arguments
	for ($i=1; $i<count($p->param); $i++) {
		if ($p->param[$i][0]) {
			if (!strstr($p->param[$i][0], '='))
				break;# on a rencontre un vrai filtre, c'est fini
			$texte = new Texte;
			$texte->type='texte';
			$texte->texte=$p->param[$i][0];
			$param = array(0=>$texte);
			$p->param[$i][1] = $param;
			$p->param[$i][0] = NULL;
		}
	}

	// Appeler la balise #MODELE{article_pdf}{arguments}
	if (!function_exists($f = 'balise_modele'))
		$f = 'balise_modele_dist';
	return $f($p);
}

function balise_RUBRIQUE_PDF_dist($p) {
	if (!is_array($p->param))
		$p->param=array();

	// Produire le premier argument {article_pdf}
	$texte = new Texte;
	$texte->type='texte';
	$texte->texte='rubrique_pdf';
	$param = array(0=>NULL, 1=>array(0=>$texte));
	array_unshift($p->param, $param);

	// Transformer les filtres en arguments
	for ($i=1; $i<count($p->param); $i++) {
		if ($p->param[$i][0]) {
			if (!strstr($p->param[$i][0], '='))
				break;# on a rencontre un vrai filtre, c'est fini
			$texte = new Texte;
			$texte->type='texte';
			$texte->texte=$p->param[$i][0];
			$param = array(0=>$texte);
			$p->param[$i][1] = $param;
			$p->param[$i][0] = NULL;
		}
	}

	// Appeler la balise #MODELE{article_pdf}{arguments}
	if (!function_exists($f = 'balise_modele'))
		$f = 'balise_modele_dist';
	return $f($p);
}

SAMX