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.
49 righe
2.1 KiB
49 righe
2.1 KiB
<? |
|
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php"; |
|
include_once($configPath); |
|
$error = true; |
|
if (!empty($_GET) && !empty($_SESSION["utente"]) && $_SESSION["utente"]->gerarchia < 100) { |
|
if ($_SESSION["ente"]->hasModulo("conference")) { |
|
if (!empty($_GET["modulo"]) && !empty($_GET["codice_elemento"]) && !empty($_GET["tipologia"])) { |
|
$manager = new Commissione($_GET["modulo"],$_GET["codice_elemento"],$_GET["tipologia"]); |
|
if ($manager->checkAdminPermission()) { |
|
if (!$manager->lock) { |
|
$info = $manager->getInfo(); |
|
$startURL = conferenceManager::startMeeting("commissioni",$info["codice"],$manager->tipologia,0,false); |
|
if (!empty($startURL)) { |
|
$commissari = $manager->getCommissari(); |
|
if (!empty($commissari)) { |
|
$destinatari = array_column($commissari,"email"); |
|
if (!empty($destinatari)) { |
|
$status = conferenceManager::checkStatus("commissioni",$info["codice"],$manager->tipologia,0); |
|
if (!empty($status["url"])) { |
|
$url = $status["url"]; |
|
$oggetto = __("Conference Room") . " - " . $manager->getInfo()["oggetto"]; |
|
$corpo = "Clicca sul link sottostante per accedere alla conference room<br>"; |
|
$corpo.= "URL: <a href=\"{$url}\">{$url}</a>"; |
|
|
|
$mailer = new Communicator(); |
|
$mailer->oggetto = $oggetto; |
|
$mailer->corpo = $corpo; |
|
$mailer->codice_pec = -3; |
|
$mailer->comunicazione = false; |
|
$mailer->coda = false; |
|
$mailer->destinatari = $destinatari; |
|
$mailer->send(); |
|
} |
|
} |
|
} |
|
header("location: {$startURL}"); |
|
die(); |
|
} |
|
echo "<h1>" . __("Errore inizializzazione meeting") . "</h1>"; |
|
} |
|
} |
|
} |
|
} |
|
} |
|
if ($error) { |
|
header('HTTP/1.0 403 Forbidden'); |
|
die(); |
|
} |
|
?>
|
|
|