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.
23 righe
927 B
23 righe
927 B
<? |
|
$return = false; |
|
if (!empty($sourceID)) { |
|
$richieste = $pdo->go("SELECT b_pubblicita_legale.codice, b_pubblicita_legale.modulo, b_pubblicita_legale.codice_elemento, b_pubblicita_legale.sub |
|
FROM b_pubblicita_legale WHERE b_pubblicita_legale.codice = :codice",[":codice"=>$sourceID]); |
|
if ($richieste->rowCount() > 0) { |
|
$richieste = $richieste->fetch(PDO::FETCH_ASSOC); |
|
$manager = new pubblicitaLegale($richieste["modulo"],$richieste["codice_elemento"],$richieste["sub"]); |
|
if (!empty($manager)) { |
|
if ($_SESSION["utente"]->gerarchia < 100) { |
|
if ($manager->checkAdminPermission()) { |
|
$return = true; |
|
} |
|
} else { |
|
$richiesta = $manager->getOE(["codice"=>$richieste["codice"]],$_SESSION["utente"]->oe["codice"]); |
|
if (!empty($richiesta)) { |
|
$return = true; |
|
} |
|
} |
|
} |
|
} |
|
} |
|
?>
|
|
|