Пример #1
0
}
// Method e: un podio per classe / categoria
if (strcasecmp($apiMethod, 'podio') == 0) {
    if (isset($_GET['cla'])) {
        $idClasse = $_GET['cla'];
    } else {
        $idClasse = null;
    }
    if (isset($_GET['cat'])) {
        $idCategoria = $_GET['cat'];
    } else {
        $idCategoria = null;
    }
    $response['code'] = 1;
    $response['status'] = $api_response_code[$response['code']]['HTTP Response'];
    $response['data'] = getPodio($idClasse, $idCategoria);
}
// Method f: Informazioni sulla gara (Tipo, data, località ecc.)
if (strcasecmp($apiMethod, 'infogara') == 0) {
    $response['code'] = 1;
    $response['status'] = $api_response_code[$response['code']]['HTTP Response'];
    $response['data'] = getInformazioniGara();
}
// Method g: classifica per classe / categoria
if (strcasecmp($apiMethod, 'classifica') == 0) {
    if (isset($_GET['cla'])) {
        $idClasse = $_GET['cla'];
    } else {
        $idClasse = null;
    }
    if (isset($_GET['cat'])) {
Пример #2
0
<body>

<p>
<?php 
include_once 'PiazzoleService.php';
getCompagniaArciere(23);
$ciccio = getAllowedExt();
$pluto = "jpg";
//echo $ciccio[0] . "<br/>";
if (in_array($pluto, $ciccio)) {
    echo "Ho trovato PLUTO<br/><br/><br/>";
} else {
    echo "Nulla da segnalare<br/><br/><br/>";
}
$pieces = getClassificaCompagnia('04ARCH');
getPodio('CAM', 'SI');
$ext = getAllowedExt();
echo join(";", $ext);
$ciccio = getElencoFotoDaAssociare();
echo "Ci sono " . count($ciccio) . " file";
echo "GIANFRANCO";
//echo json_encode($pieces);
// return getGenericData(AIRO_SQL_GET_CLASSIFICA_COMPAGNIA, "s", array($compagnia));
echo "<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>";
$variabile1 = [];
$variabile1[] = "s";
$parm = array("04ARCH");
array_unshift($variabile1, "prova");
if (is_array($variabile1)) {
    echo "è un array<br/>";
} else {