blob: 384f498fef7dd08cf8a05a447bee776c7a5246a5 (
plain) (
tree)
|
|
<?php
// Locations from closest to furthest (order)
$locationId = ConfigHolder::get('SLX_LOCATIONS');
if ($locationId !== false) {
$locationId = (int)$locationId;
$ret = Database::queryFirst("SELECT locationid FROM remoteaccess_x_location WHERE locationid = :lid",
['lid' => $locationId], true); // TODO Remove true after next point release (2020-05-12)
if ($ret !== false) {
// TODO Properly merge
if (Property::get(RemoteAccess::PROP_TRY_VIRT_HANDOVER)) {
ConfigHolder::add("SLX_REMOTE_VNC", 'vmware virtualbox');
} else {
ConfigHolder::add("SLX_REMOTE_VNC", 'x11vnc');
}
ConfigHolder::add("SLX_REMOTE_HOST_ACCESS", Property::get(RemoteAccess::PROP_ALLOWED_VNC_NET));
ConfigHolder::add('SLX_RUNMODE_MODULE', 'remoteaccess');
}
}
|