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/svp_stats/genie/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/hednacluml/jobs/plugins/auto/svp_stats/genie/svpstats_taches_generales_cron.php
<?php

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

// Mise a jour automatique des depots (CRON)
// - Flag de declenchement
if (!defined('_SVP_CRON_ACTUALISATION_STATS')) {
	define('_SVP_CRON_ACTUALISATION_STATS', true);
}

// - Periode d'actualisation en nombre de jours
if (!defined('_SVP_PERIODE_ACTUALISATION_STATS')) {
	define('_SVP_PERIODE_ACTUALISATION_STATS', 7);
}

/**
 * Activation du CRON de mise à jour des statistiques de plugins.
 *
 * @param array $taches_generales Liste des taches à compléter
 *
 * @return array Liste des taches mise à jour
 */
function svpstats_taches_generales_cron(array $taches_generales) : array {
	// Ajout de la tache CRON de mise a jour reguliere des statistiques d'utilisation des plugins
	// Par defaut, toutes les 7 jours
	// Conditionnee a la variable de configuration
	if (_SVP_CRON_ACTUALISATION_STATS) {
		$taches_generales['svp_actualiser_stats'] = _SVP_PERIODE_ACTUALISATION_STATS * 24 * 3600;
	}

	return $taches_generales;
}

SAMX