| Current Path : /home/h/a/p/happyrenas/myreco.online/administration/panel/ |
Linux webd005.cluster105.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 |
| Current File : /home/h/a/p/happyrenas/myreco.online/administration/panel/test.php |
<?
set_include_path(get_include_path() . PATH_SEPARATOR . __DIR__ . '/../');
include("../../configuration.php");
include("../../includes/fonctions.php");
setlocale(LC_TIME, 'fr_FR.UTF-8');
$hebergement_id=70622;
$myquery = "SELECT * from heb where id=".$hebergement_id;
$fiche = $db->get_row($myquery);
$json = $fiche->lointain_json;
$lointain = json_decode($json, true); // décodage en tableau associatif
$lointain_total = 0;
if (is_array($lointain)) {
foreach ($lointain as $categorie => $items) {
if (is_array($items)) {
$lointain_total += count($items);
}
}
}
echo "Total d'éléments lointains : $lointain_total";
if (is_array($lointain)) {
foreach ($lointain as $categorie => $items) {
echo ucfirst($categorie) . " : " . count($items) . " élément(s)<br>";
}
}?>