Exemple #1
0
/**
 *	Para servidor.
 *	@author João Reis
 */
function pararServidor($Id)
{
    global $conn;
    // Tenta Criar instancia do Servidor e parar
    try {
        $Server = new Servidor($Id, $conn);
        $Server->pararServidor();
        $Server->setStatus(0);
        $Server->atualizaInfo();
        $Server->getInfo();
        return true;
    } catch (Exception $e) {
        return false;
    }
}