Request['id']); $client = $this->getModule('client')->getClientById($clientid); $allowed_clients = $this->getModule('bconsole')->bconsoleCommand($this->director, array('.client'), $this->user); if ($allowed_clients->exitcode === 0) { if(!is_null($client) && in_array($client->name, $allowed_clients->output)) { $this->output = $client; $this->error = ClientError::ERROR_NO_ERRORS; } else { $this->output = ClientError::MSG_ERROR_CLIENT_DOES_NOT_EXISTS; $this->error =ClientError::ERROR_CLIENT_DOES_NOT_EXISTS; } } else { $this->output = $allowed_clients->output; $this->error = $allowed_clients->exitcode; } } } ?>