I'm using the following script:
The problem is that it don't deleted the selected subdomain but al the subdomains.
I hope that anyone find a solution for me.
I'm sorry for my English.
PHP:
<?
$sock->query('/CMD_API_SUBDOMAINS',
array(
'domain' => $value
));
$subrow = $sock->fetch_parsed_body();
if(empty($subrow['list']))
{
echo 'Er zijn geen subdomeinen aanwezig';
}
else
{
foreach ($subrow['list'] as $sub => $subwaarde)
{
echo '
<tr>
<td width="200">'.$subwaarde.'.'.$value.'</td>
<td width="390"></td>
';
$sock->query('/CMD_API_SUBDOMAINS',
array(
'domain' => $value,
'action' => 'delete',
'select0' => $subwaarde,
));
echo '
<td width="10"><a href=""><img src="images/verwijderen_klein.png" border="0"></a></td>
</tr>
';
}
}
?>
The problem is that it don't deleted the selected subdomain but al the subdomains.
I hope that anyone find a solution for me.
I'm sorry for my English.