1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
<?php
$session = $soap->login("xxxxxx-ovh", "******","fr", false);
// -- Permet de déprotéger le domaine
$domainunlock = $soap->domainUnlock($session, "$siteweb");
// -- Permet de protéger le domaine
$domainlock = $soap->domainLock($session, "$siteweb");
// -- Statut du domaine
$statslock = $soap->domainLockStatus($session, "$siteweb");
if ($statslock == "locked")
{
$domainstats = "<a href=\"".$domainunlock."\"><img width=\"16\" height=\"16\" src=\"".(ESFD_URL)."/images/fermer.png\" alt=\"Domaine protéger\" border=\"0\" /></a>";
}
elseif ($statslock == "unlocked")
{
$domainstats = "<a href=\"".$domainlock."\"><img width=\"16\" height=\"16\" src=\"".(ESFD_URL)."/images/ouvert.png\" alt=\"Domaine déprotéger\" border=\"0\" /></a>";
}
else
{
$domainstats = "En cours de changement";
}
?> |
Partager