Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
51 righe
1.7 KiB
51 righe
1.7 KiB
<?php |
|
define('_ELENCHI_API', 1); |
|
require_once(__DIR__ . "/inc/init.php"); |
|
|
|
// Auto redirect al primo se ne abbiamo solo uno |
|
$autoRedirect = false; |
|
|
|
$endpoints = ElenchiAPI::getEndpoints(); |
|
if($endpoints["count"] == 1) { |
|
$globalCount = count($endpoints["global"]); |
|
if($globalCount > 0) { |
|
$key = array_key_first($endpoints["global"]); |
|
$url = url_with_params("/backend/elenchi_api/elenchi.php?endpoint={$key}&type=global"); |
|
} else { |
|
$key = array_key_first($endpoints["local"]); |
|
$url = url_with_params("/backend/elenchi_api/elenchi.php?endpoint={$key}&type=local"); |
|
} |
|
header("Location: {$url}"); |
|
die(); |
|
} |
|
if(!$isModal) { |
|
include_once "{$beRoot}/layout/top.php"; |
|
} |
|
?> |
|
|
|
|
|
<h3 class="mb-4"> |
|
<i class="fa fa-folder-open mr-2"></i> |
|
<?= $endpoints["count"] ?> indirizzi remoti disponibili |
|
</h3> |
|
|
|
<?php foreach($endpoints["global"] as $key => $endpoint) : ?> |
|
<a <?= elenchi_api_href(url_with_params("/backend/elenchi_api/elenchi.php?endpoint={$key}&type=global"), $isModal) ?> |
|
class="btn my-1 status-border-primary btn-block btn-info text-left"> |
|
<i class="fa fa-globe mr-2"></i> |
|
<?= $endpoint["displayName"] ?> |
|
</a> |
|
<?php endforeach; ?> |
|
|
|
<?php foreach($endpoints["local"] as $key => $endpoint) : ?> |
|
<a <?= elenchi_api_href(url_with_params("/backend/elenchi_api/elenchi.php?endpoint={$key}&type=local"), $isModal) ?> |
|
class="btn my-1 status-border-primary btn-block btn-info text-left"> |
|
<i class="fa fa-network-wired mr-2"></i> |
|
<?= $endpoint["displayName"] ?> |
|
</a> |
|
<?php endforeach; ?> |
|
|
|
|
|
<?php if(!$isModal) { |
|
include_once "{$beRoot}/layout/bottom.php"; |
|
} ?>
|