</tr> <tr align="center"> <td> <a href="' . $_SERVER['REQUEST_URI'] . '&confirm=yes">Yes, delete it</a> </td> <td> <a href="?action=' . $action . '&uuid=' . $_GET['uuid'] . '">No, go back</a> </td> </tr>'; $die = true; } } if ($subaction == 'disk-add') { $img = array_key_exists('img', $_POST) ? $_POST['img'] : false; if ($img) { $ret = $lv->domain_disk_add($domName, $_POST['img'], $_POST['dev']) ? 'Disk has been successfully added to the guest' : 'Cannot add disk to the guest: ' . $lv->get_last_error(); } else { $ret = '<b>Add a new disk device</b> <form method="POST"> <table> <tr> <td>Disk image: </td> <td><input type="text" name="img" /></td> </tr> <tr> <td>Disk device in the guest: </td> <td><input type="text" name="dev" value="hdb" /></td> </tr> <tr align="center"> <td colspan="2"><input type="submit" value=" Add new disk " /></td> </tr>