} else {
        Header('Content-Type: image/png');
        die($tmp);
    }
}
?>
<html>
	<head>
		<title>Virtual server management</title>
	</head>
<body>
<?php 
require 'header.php';
$spaces = '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
$uri = $lv->get_uri();
$tmp = $lv->get_domain_count();
if ($action == 'storage-pools') {
    $msg = '';
    if ($subaction == 'volume-delete') {
        if (array_key_exists('confirm', $_GET) && $_GET['confirm'] == 'yes') {
            $msg = $lv->storagevolume_delete(base64_decode($_GET['path'])) ? 'Volume has been deleted successfully' : 'Cannot delete volume';
        } else {
            $msg = '<table>
					<tr>
						<td colspan="2">
							<b>Do you really want to delete volume <i>' . base64_decode($_GET['path']) . '</i> ?</b><br />
						</td>
					</tr>
					<tr align="center">
						<td>
							<a href="' . $_SERVER['REQUEST_URI'] . '&amp;confirm=yes">Yes, delete it</a>