fetch(PDO::FETCH_ASSOC)) { if (readlink('/srv/openslx/www/boot/default/config.tgz') === $row['filepath']) { $id[] = (int)$row['moduleid']; break; } } $task = Taskmanager::submit('LdadpLauncher', array( 'ids' => $id )); if (!isset($task['id'])) return false; return $task['id']; } public static function mount() { $vmstore = Property::getVmStoreConfig(); if (!is_array($vmstore)) return; $storetype = $vmstore['storetype']; if ($storetype === 'nfs') $addr = $vmstore['nfsaddr']; if ($storetype === 'cifs') $addr = $vmstore['cifsaddr']; if ($storetype === 'internal') $addr = 'none'; return Taskmanager::submit('MountVmStore', array( 'address' => $addr, 'type' => 'images', 'username' => $vmstore['cifsuser'], 'password' => $vmstore['cifspasswd'] )); } }