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/genius/prive/squelettes/contenu/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/hednacluml/genius/prive/squelettes/contenu/job_queue_fonctions.php
<?php

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

function job_queue_block_and_watch() {
	// bloquer la queue sur ce hit
	// pour avoir coherence entre l'affichage de la liste de jobs
	// et les jobs en base en fin de hit
	define('_DEBUG_BLOCK_QUEUE', true);
	include_spip('inc/genie');
	genie_queue_watch_dist();
}

/**
 * Prévisu d'un appel à une fonction avec ses arguments
 *
 * @param string $function
 * @param string $args
 * @return string
 */
function job_queue_display_call(string $function, string $args): string {
	$args = unserialize($args);
	$args = array_map(function($arg) {
		return is_scalar($arg) ? $arg : get_debug_type($arg);
	}, $args);

	return sprintf('%s(%s)', $function, implode(', ', $args));
}

SAMX