示例#1
0
// Method k: Elenco combinazioni di classi e categorie
if (strcasecmp($apiMethod, 'compagnie') == 0) {
    $response['code'] = 1;
    $response['status'] = $api_response_code[$response['code']]['HTTP Response'];
    $response['data'] = getCompagnie();
}
// Method l: Elenco Foto da associare
if (strcasecmp($apiMethod, 'fotodaassociare') == 0) {
    if (isset($_GET['nascondipath'])) {
        $nascondipath = $_GET['nascondipath'];
    } else {
        $nascondipath = true;
    }
    $response['code'] = 1;
    $response['status'] = $api_response_code[$response['code']]['HTTP Response'];
    $response['data'] = getElencoFotoDaAssociare($nascondipath);
}
// Method l: abbinamento Foto
if (strcasecmp($apiMethod, 'abbinafoto') == 0) {
    if (isset($_GET['foto'])) {
        $foto = $_GET['foto'];
    } else {
        $foto = null;
    }
    if (isset($_GET['tessera'])) {
        $tessera = $_GET['tessera'];
    } else {
        $tessera = null;
    }
    if (DEBUG) {
        error_log("deliver_response - \$apiMethod --> {$apiMethod}");
示例#2
0
文件: test.php 项目: jourus/aironiweb
<?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 {
    echo "boh!<br/>";
}
echo join("<br>", $variabile1);