Migration
This commit is contained in:
73
0.9.0/panel/module/dns/ajoutdomaine.php
Executable file
73
0.9.0/panel/module/dns/ajoutdomaine.php
Executable file
@@ -0,0 +1,73 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
$CountDNS = $MySql->Count('id', 'domainedns', "Utilisateur='{$_SESSION['Utilisateur']}'");
|
||||
|
||||
?><h3>Ajouter un nom de domaine</h3>
|
||||
<p>
|
||||
La Racine du site signifie le dossier dans lequel le domaine pointera.<br />
|
||||
L'OpenBaseDir signifie le dossier jusqu'auquel PHP peut remonter, vous pouvez par exemple faire communiquer plusieurs de vos sites entre eux. En général, celui-ci est identique à la racine.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Avant d'ajouter votre nom de domaine, vous devez l'avoir préalablement acheté auprès d'un registrar. Si ce n'est pas le cas, vous pouvez l'acheter auprès de <a href="http://www.gandi.net">Gandi</a>.<br />
|
||||
Notez que notre association peut se charger de la procédure d'achat et de configuration. Contactez-nous pour obtenir plus d'informations.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Pour utiliser nos serveurs DNS, configurez ceux-ci chez votre registrar pour pointer sur <b>ns1.kelio.org</b> et <b>ns2.kelio.org</b>.<br />
|
||||
Rendez-vous sur notre forum pour obtenir de l'aide.
|
||||
</p>
|
||||
|
||||
<?php if (($CountDNS < $_SESSION['Offre']['DomaineDns']) or ($_SESSION['Offre']['DomaineDns'] == '-1')): ?>
|
||||
<div>
|
||||
<form action="execution-11.html" method="post">
|
||||
<table cellpadding="5">
|
||||
<tr>
|
||||
<th>Domaine</th>
|
||||
<td><input name="Domaine" type="text" maxlength="80" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Racine</th>
|
||||
<td><input name="Racine" type="text" maxlength="80" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Open Basedir</th>
|
||||
<td><input name="OpenBasedir" type="text" maxlength="80" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Serveur Mail</th>
|
||||
<td>
|
||||
<input name="Mail" type="radio" value="mail.kelio.org" checked="checked"/> Utiliser le serveur mail de Kelio<br/>
|
||||
<input name="Mail" type="radio" value="autre" /> Utiliser un serveur mail externe: <input name="ServeurMail" type="text" maxlength="80" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Commentaire </th>
|
||||
<td><input name="Commentaire" type="text" maxlength="70" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="submit" name="Submit" value="Ajouter le nom de domaine" />
|
||||
</form>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<p>
|
||||
Désolé, votre offre ne vous permet pas d'ajouter plus de zone(s) DNS.<br />
|
||||
Veuillez en supprimer une ou utiliser un fournisseur de serveurs DNS externe.
|
||||
</p>
|
||||
<?php endif;?>
|
||||
100
0.9.0/panel/module/dns/ajoutsousdomaine.php
Executable file
100
0.9.0/panel/module/dns/ajoutsousdomaine.php
Executable file
@@ -0,0 +1,100 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
$CountDNS = $MySql->Count('id', 'sousdomainedns', "Utilisateur='{$_SESSION['Utilisateur']}'");
|
||||
|
||||
$ListDomaines = $MySql->Select ('*', 'domainedns', "Utilisateur='{$_SESSION['Utilisateur']}' AND Status!='".KELIO_DELETE."'", '', '', '', '');
|
||||
$CountDomaines = count ($ListDomaines);
|
||||
if ( $ListDomaines == FALSE ) { $CountDomaines = 0; }
|
||||
?>
|
||||
|
||||
<h3>Ajouter un sous domaine</h3>
|
||||
|
||||
<p class="notice">
|
||||
<b>TODO</b> Rédiger la description de cette page
|
||||
<?php echo $CountDNS."/".$_SESSION['Offre']['SousDomaineDns']; ?>
|
||||
</p>
|
||||
|
||||
<?php
|
||||
if($CountDNS > 0)
|
||||
{
|
||||
if (($CountDNS < $_SESSION['Offre']['SousDomaineDns']) or ($_SESSION['Offre']['SousDomaineDns'] == '-1')) { ?>
|
||||
<div>
|
||||
<form action="execution-13.html" method="post">
|
||||
<table cellpadding="5">
|
||||
<tr>
|
||||
<th>Sous-Domaine</th>
|
||||
<td>
|
||||
<input name="Donnee" type="text" maxlength="80" />
|
||||
<b>.</b>
|
||||
<select name="Domaine">
|
||||
<?php
|
||||
for($i = 0; $i < $CountDomaines; $i++)
|
||||
echo "<option>{$ListDomaines[$i]["Domaine"]}</option>";
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Type </th>
|
||||
<td>
|
||||
<input name="Type" type="radio" value="1" checked="checked" onclick="Montre_Form('JS_Racine'); Montre_Form('JS_OpenBasedir'); Cache_Form('JS_TypePointage'); Cache_Form('JS_Pointage');"> Ajouter sur les serveurs Kelio<br/>
|
||||
<input name="Type" type="radio" value="2" onclick="Cache_Form('JS_Racine'); Cache_Form('JS_OpenBasedir'); Montre_Form('JS_TypePointage'); Montre_Form('JS_Pointage');"> Faire pointer sur un serveur externe
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="JS_Racine">
|
||||
<th>Racine</th>
|
||||
<td><input name="Racine" type="text" maxlength="80" /></td>
|
||||
</tr>
|
||||
<tr id="JS_OpenBasedir">
|
||||
<th>Open Basedir</th>
|
||||
<td><input name="OpenBasedir" type="text" maxlength="80" /></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_TypePointage">
|
||||
<th>Pointage </th>
|
||||
<td>
|
||||
<select name="TypePointage">
|
||||
<option value="2">CNAME (alias)</option>
|
||||
<option value="3">A (IPv4)</option>
|
||||
<?php /*<option value="4">AAAA (IPv6)</option>*/ ?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_Pointage">
|
||||
<th>Destination </th>
|
||||
<td><input name="Pointage" type="text" maxlength="70" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Commentaire </th>
|
||||
<td><input name="Commentaire" type="text" maxlength="70" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="submit" name="Submit" value="Ajouter la zone DNS" />
|
||||
</form>
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<p>
|
||||
Désolé, votre offre ne vous permet pas d'ajouter plus de sous domaines.
|
||||
</p>
|
||||
<?php }
|
||||
}
|
||||
else { ?>
|
||||
<p>
|
||||
<b>Avant d'ajouter votre sous domaine, vous devez avoir préalablement <a href="Page-DNS-AjoutDomaine.html">ajouté un nom de domaine sur nos serveur.<a></b><br />
|
||||
</p>
|
||||
<?php } ?>
|
||||
200
0.9.0/panel/module/dns/recapitulatif.php
Executable file
200
0.9.0/panel/module/dns/recapitulatif.php
Executable file
@@ -0,0 +1,200 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
$ListTable = $MySql->Select ("*", "domainedns", "Utilisateur='".$_SESSION['Utilisateur']."'", "", "", "", "");
|
||||
$CountEnregistrement = count ($ListTable);
|
||||
if ( $ListTable == FALSE ) { $CountEnregistrement = 0; }
|
||||
|
||||
$CountSousDomaines = $MySql->Count('id', 'sousdomainedns', "Utilisateur='{$_SESSION['Utilisateur']}'");
|
||||
|
||||
?>
|
||||
<h3>Récapitulatif de vos noms de domaine <a style="border: 0px;" href="http://doc.kelio.org/"><img style="vertical-align:middle; border: 0px;" src="img/icons-panel/question.png" alt="Aide" title="Aide" /></a></h3>
|
||||
|
||||
<p class="notice">
|
||||
Actuellement, vous avez <?php echo $CountEnregistrement; if ($_SESSION['Offre']['DomaineDns'] != '-1') echo " / {$_SESSION['Offre']['DomaineDns']}"; ?> domaine(s)
|
||||
et <?php echo $CountSousDomaines; if($_SESSION['Offre']['SousDomaineDns'] != -1) echo " / {$_SESSION['Offre']['SousDomaineDns']}"; ?> sous domaine(s).
|
||||
</p>
|
||||
<p>
|
||||
Pour rappel, une adresse IP est l'équivalent d'une adresse postale dans le domaine informatique. Chaque ordinateur ou équipement informatique connecté au réseau dispose d'une adresse IP.
|
||||
Le service DNS sert à répondre aux internautes "ce (sous) domaine correspond à cette adresse IP".
|
||||
</p>
|
||||
<p>Passez votre souris sur le commentaire pour le voir en entier.</p>
|
||||
<p>
|
||||
Le statut "En attente" signifie que votre nom de domaine ou votre sous domaine est en attente de création par notre robot. Normalement, cette opération prend moins d'une heure.<br />
|
||||
Il en est de même pour le statut "Suppression".
|
||||
</p>
|
||||
<p>Pour utiliser nos serveurs DNS, configurez ceux-ci chez votre registrar pour pointer sur <strong>ns1.kelio.org</strong> et <strong>ns2.kelio.org</strong>. <br />Rendez-vous sur notre forum pour obtenir de l'aide.</p>
|
||||
|
||||
<div>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>(Sous) domaine</th>
|
||||
<th>Date de création</th>
|
||||
<th>Statut</th>
|
||||
<th>Racine</th>
|
||||
<th>Basedir</th>
|
||||
<th>Mail</th>
|
||||
<th>Commentaire</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?php
|
||||
if ( $ListTable == FALSE )
|
||||
echo '<tr><td style="text-align: center; font-weight: bold;" colspan="7">Aucun nom de domaine pour le moment</td></tr>';
|
||||
else
|
||||
{
|
||||
for ($i=0; $i < $CountEnregistrement; $i++)
|
||||
{
|
||||
if ( $ListTable[$i]["Status"] == KELIO_WAIT )
|
||||
$Status = "<img src='img/icons-panel/wait.png' style='vertical-align: middle;' alt='En Attente' /> En attente";
|
||||
elseif ( $ListTable[$i]["Status"] == KELIO_ACTIVE )
|
||||
$Status = "<img src='img/icons-panel/active.png' style='vertical-align: middle;' alt='Activé' /> Activé";
|
||||
elseif ( $ListTable[$i]["Status"] == KELIO_DELETE )
|
||||
$Status = "<img src='img/icons-panel/delete.png' style='vertical-align: middle;' alt='Suppresion' /> Suppression";
|
||||
else // KELIO_ERROR
|
||||
$Status = "<img src='img/icons-panel/error.png' style='vertical-align: middle;' alt='Erreur' /> Erreur";
|
||||
|
||||
// Commentaire
|
||||
if ( strlen($ListTable[$i]["Commentaire"]) > 16 )
|
||||
$Commentaire = substr ($ListTable[$i]["Commentaire"], 0, 16)."...";
|
||||
elseif ( strlen($ListTable[$i]["Commentaire"]) == 0 )
|
||||
$Commentaire = "-";
|
||||
else
|
||||
$Commentaire = $ListTable[$i]["Commentaire"];
|
||||
|
||||
// Domaine
|
||||
if ( strlen($ListTable[$i]["Domaine"]) > 15 )
|
||||
$Domaine = substr($ListTable[$i]["Domaine"], 0, 15)."...";
|
||||
else
|
||||
$Domaine = $ListTable[$i]["Domaine"];
|
||||
|
||||
// Racine
|
||||
if ( strlen($ListTable[$i]["Racine"]) > 15 )
|
||||
$Racine = substr($ListTable[$i]["Racine"], 0, 15)."...";
|
||||
else
|
||||
$Racine = $ListTable[$i]["Racine"];
|
||||
|
||||
// OpenBasedir
|
||||
if ( strlen($ListTable[$i]["OpenBasedir"]) > 15 )
|
||||
$OpenBasedir = substr($ListTable[$i]["OpenBasedir"], 0, 15)."...";
|
||||
else
|
||||
$OpenBasedir = $ListTable[$i]["OpenBasedir"];
|
||||
|
||||
// Mail
|
||||
if ( strlen($ListTable[$i]["Mail"]) > 15 )
|
||||
$Mail = substr($ListTable[$i]["Mail"], 0, 15)."...";
|
||||
else
|
||||
$Mail = $ListTable[$i]["Mail"];
|
||||
|
||||
echo '
|
||||
<tr>
|
||||
<th><span style="cursor: help;" title="'.$ListTable[$i]["Domaine"].'">'.$Domaine.'</span></th>
|
||||
<td><span style="cursor: help;" title="'.date ("d-m-Y H:i:s",$ListTable[$i]["DateDeCreation"]).'">'.date("d-m-Y", $ListTable[$i]["DateDeCreation"]).'</span></td>
|
||||
<td>'.$Status.'</td>
|
||||
<td><span style="cursor: help;" title="'.$ListTable[$i]["Racine"].'">'.$Racine.'</span></td>
|
||||
<td><span style="cursor: help;" title="'.$ListTable[$i]["OpenBasedir"].'">'.$OpenBasedir.'</span></td>
|
||||
<td><span style="cursor: help;" title="'.$ListTable[$i]["Mail"].'">'.$Mail.'</span></td>
|
||||
<td><span style="cursor: help;" title="'.$ListTable[$i]["Commentaire"].'">'.$Commentaire.'</span></td>
|
||||
</tr>';
|
||||
|
||||
$ListSousDomaine = $MySql->Select ("*", "sousdomainedns", "Domaine='".$ListTable[$i]["Domaine"]."'", "", "", "", "");
|
||||
if ( $ListSousDomaine == FALSE )
|
||||
echo '<tr><td style="text-align: center;" colspan="7">Aucun sous-domaine pour '.$ListTable[$i]["Domaine"].'</td></tr>';
|
||||
else
|
||||
{
|
||||
$CountSousDomaine = count ($ListSousDomaine);
|
||||
for ($o=0; $o < $CountSousDomaine; $o++)
|
||||
{
|
||||
if ( $ListSousDomaine[$o]["Status"] == KELIO_WAIT )
|
||||
$StatusSousDomaine = "<img src='img/icons-panel/wait.png' style='vertical-align: middle;' alt='En attente' /> En attente";
|
||||
elseif ( $ListSousDomaine[$o]["Status"] == KELIO_ACTIVE )
|
||||
$StatusSousDomaine = "<img src='img/icons-panel/active.png' style='vertical-align: middle;' alt='Activé' /> Activé";
|
||||
elseif ( $ListSousDomaine[$o]["Status"] == KELIO_DELETE )
|
||||
$StatusSousDomaine = "<img src='img/icons-panel/delete.png' style='vertical-align: middle;' alt='Suppresion' /> Suppression";
|
||||
else // KELIO_ERROR
|
||||
$StatusSousDomaine = "<img src='img/icons-panel/error.png' style='vertical-align: middle;' alt='Erreur' /> Erreur";
|
||||
|
||||
if ( strlen($ListSousDomaine[$o]["Commentaire"]) > 16 )
|
||||
$CommentaireSousDomaine = substr ($ListSousDomaine[$o]["Commentaire"], 0, 16)."...";
|
||||
elseif ( strlen($ListSousDomaine[$o]["Commentaire"]) == 0 )
|
||||
$CommentaireSousDomaine = "-";
|
||||
else
|
||||
$CommentaireSousDomaine = $ListSousDomaine[$o]["Commentaire"];
|
||||
|
||||
// Donnee
|
||||
if ( strlen($ListSousDomaine[$o]["Donnee"]) > 15 )
|
||||
$Donnee = substr($ListSousDomaine[$o]["Donnee"], 0, 15)."...";
|
||||
else
|
||||
$Donnee = $ListSousDomaine[$o]["Donnee"];
|
||||
|
||||
// Racine
|
||||
if ( strlen($ListSousDomaine[$o]["Racine"]) > 15 )
|
||||
$Racine = substr($ListSousDomaine[$o]["Racine"], 0, 15)."...";
|
||||
else
|
||||
$Racine = $ListSousDomaine[$o]["Racine"];
|
||||
|
||||
// OpenBasedir
|
||||
if ( strlen($ListSousDomaine[$o]["OpenBasedir"]) > 15 )
|
||||
$OpenBasedir = substr($ListSousDomaine[$o]["OpenBasedir"], 0, 15)."...";
|
||||
else
|
||||
$OpenBasedir = $ListSousDomaine[$o]["OpenBasedir"];
|
||||
|
||||
// Pointage
|
||||
if ( strlen($ListSousDomaine[$o]["Pointage"]) > 20 )
|
||||
$Pointage = substr($ListSousDomaine[$o]["Pointage"], 0, 20)."...";
|
||||
else
|
||||
$Pointage = $ListSousDomaine[$o]["Pointage"];
|
||||
|
||||
// Type de pointage
|
||||
switch($ListSousDomaine[$o]["Type"])
|
||||
{
|
||||
case 2: $TypePointage = "CNAME"; break;
|
||||
case 3: $TypePointage = "A"; break;
|
||||
case 4: $TypePointage = "AAAA"; break;
|
||||
}
|
||||
|
||||
echo '
|
||||
<tr class="special">
|
||||
<td style="padding-left: 30px;"><span style="cursor: help;" title="'.$ListSousDomaine[$o]['Donnee'].'">'.$Donnee.'</span></td>
|
||||
<td><span style="cursor: help;" title="'.date ("d-m-Y H:i:s",$ListSousDomaine[$o]["DateDeCreation"]).'">'.date("d-m-Y", $ListSousDomaine[$o]["DateDeCreation"]).'</span></td>
|
||||
<td>'.$StatusSousDomaine.'</td>';
|
||||
|
||||
if($ListSousDomaine[$o]['Type'] == 1)
|
||||
{
|
||||
echo '<td><span style="cursor: help;" title="'.$ListSousDomaine[$o]["Racine"].'">'.$Racine.'</span></td>';
|
||||
echo '<td colspan="2"><span style="cursor: help;" title="'.$ListSousDomaine[$o]["OpenBasedir"].'">'.$OpenBasedir.'</span></td>';
|
||||
}
|
||||
elseif( ($ListSousDomaine[$o]['Type'] > 1) || ($ListSousDomaine[$o]['Type'] < 5))
|
||||
echo '<td colspan="3"><b>Externe</b>: <span style="cursor: help;" title="'.$ListSousDomaine[$o]["Pointage"].'">'.$Pointage.'</span> ('.$TypePointage.')</td>';
|
||||
else
|
||||
echo '<td colspan="3" style="font-weight: bold;">Erreur de création</td>';
|
||||
|
||||
echo '
|
||||
<td><span style="cursor: help;" title="'.$ListSousDomaine[$o]["Commentaire"].'">'.$CommentaireSousDomaine.'</span></td>
|
||||
</tr>' ;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
68
0.9.0/panel/module/dns/suppression.php
Executable file
68
0.9.0/panel/module/dns/suppression.php
Executable file
@@ -0,0 +1,68 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
$ListTable = $MySql->Select ("*", "domainedns", "Utilisateur='".$_SESSION['Utilisateur']."' AND Status='2'", "", "", "", "");
|
||||
?>
|
||||
|
||||
<h3>Supprimer un (sous) domaine</h3>
|
||||
<p>
|
||||
En cas d'erreur, vous devrez attendre que le (sous) domaine soit totalement supprimé du serveur pour pouvoir le recréer.<br />
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<form action="execution-12.html" method="post">
|
||||
<table cellpadding="5">
|
||||
<tr>
|
||||
<th>(Sous) domaine à supprimer :</th>
|
||||
<td>
|
||||
<select name="Domaine">
|
||||
<option selected="selected" value="">Sélectionnez</option>
|
||||
<?php
|
||||
if ( $ListTable == FALSE)
|
||||
{
|
||||
$TotalEnregistement = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
$TotalEnregistement = count ($ListTable);
|
||||
for ($i=0; $i < $TotalEnregistement; $i++)
|
||||
{
|
||||
echo "<option value='".$ListTable[$i]["Domaine"]."'>".$ListTable[$i]["Domaine"]."</option>\n";
|
||||
|
||||
$ListSousZones = $MySql->Select ("*", "sousdomainedns", "Utilisateur='{$_SESSION['Utilisateur']}' AND Domaine='{$ListTable[$i]["Domaine"]}' AND Status='2'", "", "", "", "");
|
||||
$CountSousZones = count ($ListSousZones);
|
||||
if ( $ListSousZones == FALSE ) { $CountSousZones = 0; }
|
||||
|
||||
for($j = 0; $j < $CountSousZones; $j++)
|
||||
{
|
||||
echo "<option value=' {$ListSousZones[$j]["Donnee"]}'> ".$ListSousZones[$j]["Donnee"]."</option>\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Tapez "oui"</th>
|
||||
<td><input name="Confirmation" type="text" maxlength="3" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="submit" name="Submit" value="Supprimer le (sous) domaine" />
|
||||
</form>
|
||||
</div>
|
||||
Reference in New Issue
Block a user