Migration
This commit is contained in:
115
0.9.0/panel/module/domaine/ajoutdomaine.php
Executable file
115
0.9.0/panel/module/domaine/ajoutdomaine.php
Executable file
@@ -0,0 +1,115 @@
|
||||
<?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.
|
||||
*/
|
||||
|
||||
$ListBDD = $MySql->Select ("*", "utilisateur", "Utilisateur='".$_SESSION['Utilisateur']."'", "", "", "", "");
|
||||
$CountDomaine = $MySql->Count('id', 'domaine', "Utilisateur='{$_SESSION['Utilisateur']}'");
|
||||
|
||||
?><h3>Ajouter un nom de domaine externe</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>Le domaine doit être déposé auprès d'un <abbr title="bureau d'enregistrement en français">registrar</abbr>.
|
||||
<br />Il vous faut aussi faire un pointage de type "A" ou "CNAME" sur l'adresse IP : <strong><?php echo gethostbyname ($ListBDD[0]["ServeurFichier"]) ; ?> (<?php echo $ListBDD[0]["ServeurFichier"]; ?>)</strong>
|
||||
<br /><br />Vous pouvez aussi utiliser des sous-domaines.<br />
|
||||
N'hesitez pas à poster sur notre <a href="http://forum.kelio.asso.fr">forum</a> afin d'obtenir de l'aide à la configuration.<br />Tous les champs marqués d'une étoile sont obligatoires.
|
||||
</p>
|
||||
|
||||
<?php if ( ($CountDomaine < $_SESSION['Offre']['Domaine']) or ($_SESSION['Offre']['Domaine'] == '-1') ): ?>
|
||||
<div>
|
||||
<form action="execution-6.html" method="post">
|
||||
<table cellpadding="5">
|
||||
<tr>
|
||||
<th colspan="2" style="text-align: center;"><a style=" cursor:pointer" onclick="Cache('JS_ModExpert1'); Cache('JS_ModExpert2'); Cache('JS_ModExpert3'); Cache('JS_ModExpert4'); Cache('JS_ModExpert5'); Cache('JS_ModExpert6'); Cache('JS_ModExpert7'); Cache('JS_ModExpert8'); Cache('JS_ModExpert9'); Cache('JS_ModExpert10'); Cache('JS_ModExpert11'); Cache('JS_ModExpert12');">Mode expert / Mode normal</a></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>*Adresse (sans http://)</th>
|
||||
<td style="width:350px"><input name="Adresse" type="text" maxlength="120" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>*Racine </th>
|
||||
<td><input name="Racine" type="text" maxlength="120" value="/public/" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>*Open BaseDir :</th>
|
||||
<td><input name="BaseDir" type="text" maxlength="120" value="/public/" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Commentaire</th>
|
||||
<td><input name="Commentaire" type="text" maxlength="50" /></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_ModExpert1">
|
||||
<th><span style="cursor: help" title="Host par défaut en cas de champs vide pour la fonction mysql_connect ()">Mysq.ldefault_host</span></th>
|
||||
<td><input name="mysqldefault_host" type="text" maxlength="100" value="<?php echo $ListBDD[0]["ServeurMysql"]; ?>" /></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_ModExpert2">
|
||||
<th><span style="cursor: help" title="Utilisateur par défaut en cas de champs vide pour la fonction mysql_connect ()">Mysql.default_user</span></th>
|
||||
<td><input name="mysqldefault_user" type="text" maxlength="16" /></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_ModExpert3">
|
||||
<th><span style="cursor: help" title="Password par défaut en cas de champs vide pour la fonction mysql_connect ()">Mysql.default_password</span></th>
|
||||
<td><input name="mysqldefault_password" type="text" maxlength="16" /></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_ModExpert4">
|
||||
<th><span style="cursor: help" title="Dossier contenant toute les données temporaires du domaine">Temporaire</span></th>
|
||||
<td><input name="temporaire" type="text" maxlength="120" /></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_ModExpert5">
|
||||
<th><span style="cursor: help" title="Dossier contenant toute les sessions du domaine">Sessions</span></th>
|
||||
<td><input name="sessions" type="text" maxlength="120" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>*Listage du dossier :</th>
|
||||
<td><label><input name="Listage" type="radio" value="Oui" checked="checked" /> Oui</label> - <label><input name="Listage" type="radio" value="Non" /> Non</label></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_ModExpert6">
|
||||
<th><span style="cursor: help" title="Autoriser l'ouvrture de fichier distant via la fonction fopen(), file_get_contents(), etc.">*Allow_url_fopen</span></th>
|
||||
<td><label><input name="allow_url_fopen" type="radio" value="Oui" /> Oui</label> - <label><input name="allow_url_fopen" type="radio" value="Non" checked="checked" /> Non</label></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_ModExpert7">
|
||||
<th><span style="cursor: help" title="Autoriser l'inclusion de fichier distant via la fonction include(), etc.">*Allow_url_include</span></th>
|
||||
<td><label><input name="allow_url_include" type="radio" value="Oui" /> Oui</label> - <label><input name="allow_url_include" type="radio" value="Non" checked="checked" /> Non</label></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_ModExpert8">
|
||||
<th><span style="cursor: help" title="Voir les erreurs génerés par php">*Display_errors</span></th>
|
||||
<td><label><input name="display_errors" type="radio" value="Oui" checked="checked" /> Oui</label> - <label><input name="display_errors" type="radio" value="Non" /> Non</label></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_ModExpert9">
|
||||
<th><span style="cursor: help" title="Permettre l'utilisation de <? ?>">*Short_open_tag</span></th>
|
||||
<td><label><input name="short_open_tag" type="radio" value="Oui" checked="checked" /> Oui</label> - <label><input name="short_open_tag" type="radio" value="Non" /> Non</label></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_ModExpert10">
|
||||
<th><span style="cursor: help" title="Demarrer les sessions en début de page sans utiliser session_start ()">*Session.auto_start</span></th>
|
||||
<td><label><input name="sessionauto_start" type="radio" value="Oui" /> Oui</label> - <label><input name="sessionauto_start" type="radio" value="Non" checked="checked" /> Non</label></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_ModExpert11">
|
||||
<th><span style="cursor: help" title="Ajoute automatiquement des anti-slashs aux arrays $_POST, etc..">*Magic_quotes_gpc</span></th>
|
||||
<td><label><input name="magic_quotes_gpc" type="radio" value="Oui" /> Oui</label> - <label><input name="magic_quotes_gpc" type="radio" value="Non" checked="checked" /> Non</label></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_ModExpert12">
|
||||
<th><span style="cursor: help" title="Permet d'utiliser $_POST['var'] en $var">*Register_globals</span></th>
|
||||
<td><label><input name="register_globals" type="radio" value="Oui" /> Oui</label> - <label><input name="register_globals" type="radio" value="Non" checked="checked" /> Non</label></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="submit" name="Submit" value="Ajouter le domaine" />
|
||||
</form>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<p>Désolé, vous ne pouvez plus ajouter de nom(s) de domaine. Votre offre ne vous le permet pas.</p>
|
||||
<?php endif;?>
|
||||
137
0.9.0/panel/module/domaine/recapitulatif.php
Executable file
137
0.9.0/panel/module/domaine/recapitulatif.php
Executable file
@@ -0,0 +1,137 @@
|
||||
<?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 ("*", "domaine", "Utilisateur='".$_SESSION['Utilisateur']."'", "", "", "", "");
|
||||
$CountEnregistrement = count ($ListTable);
|
||||
if ( $ListTable == FALSE ) { $CountEnregistrement = 0; }
|
||||
|
||||
?>
|
||||
<h3>Récapitulatif de vos noms de domaine externes <a style="border: 0px;" href="http://doc.kelio.org/gerer_les_noms_de_domaine"><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; ?> domaine(s)<?php if ($_SESSION['Offre']['Domaine'] != '-1'):?> sur <?php echo $_SESSION['Offre']['Domaine']; ?> autorisé(s)<?php endif;?>.
|
||||
</p>
|
||||
<p>
|
||||
Cette catégorie sert à indiquer au serveur web que tel nom de domaine (ou sous-somaine) doit se rendre dans tel dossier.
|
||||
<br />Ainsi, vous pouvez ajouter plusieurs noms de domaine (ou sous-domaine) et gérer en parralèle plusieurs sites web dans votre compte.
|
||||
<br />Exemple : <strong><?php echo $_SESSION['Utilisateur']; ?>.kelio.org</strong> est relié à votre dossier <strong>/var/www/web/<?php echo $_SESSION['Utilisateur']; ?>/public/</strong>. Les données que vous déposerez dans ce dossier apparaitront sur ce site.
|
||||
</p>
|
||||
|
||||
<p>Passez votre souris sur le commentaire pour le voir en entier.<br />Idem pour le chemin, ainsi que le basedir</p>
|
||||
<p>
|
||||
Le statut "Création" signifie que votre domaine est en attente de création par notre robot. <br />
|
||||
Normalement, cette opération prend moins d'une heure.<br />
|
||||
Il en est de même pour le statut "Suppression".
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Adresse</th>
|
||||
<th>Date</th>
|
||||
<th>Statut</th>
|
||||
<th>Racine</th>
|
||||
<th>Basedir</th>
|
||||
<th>Commentaire</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
|
||||
if ( $ListTable == FALSE )
|
||||
{
|
||||
echo '<tr><td style="text-align: center; font-weight: bold;" colspan="6">Aucun domaine pour le moment</td></tr>';
|
||||
}
|
||||
else
|
||||
{
|
||||
for ($i=0; $i < $CountEnregistrement; $i++)
|
||||
{
|
||||
if ( $ListTable[$i]["Status"] == "1" )
|
||||
{
|
||||
$Status = "<img src=\"img/icons-panel/wait.png\" style=\"vertical-align: middle;\" alt=\"Création\" /> Création";
|
||||
}
|
||||
elseif ( $ListTable[$i]["Status"] == "2" )
|
||||
{
|
||||
$Status = "<img src=\"img/icons-panel/active.png\" style=\"vertical-align: middle;\" alt=\"Activé\" /> Activé";
|
||||
}
|
||||
elseif ( $ListTable[$i]["Status"] == "3" )
|
||||
{
|
||||
$Status = "<img src=\"img/icons-panel/delete.png\" style=\"vertical-align: middle;\" alt=\"Suppresion\" /> Suppression";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Status = "<img src=\"img/icons-panel/error.png\" style=\"vertical-align: middle;\" alt=\"Erreur\" /> Erreur";
|
||||
}
|
||||
|
||||
if ( strlen($ListTable[$i]["Adresse"]) > 10 )
|
||||
{
|
||||
$Adresse = substr($ListTable[$i]["Adresse"], 0, 10)." ...";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Adresse = $ListTable[$i]["Adresse"];
|
||||
}
|
||||
|
||||
if ( strlen($ListTable[$i]["Racine"]) > 16 )
|
||||
{
|
||||
$Racine = substr($ListTable[$i]["Racine"], 0 ,16)." ...";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Racine = $ListTable[$i]["Racine"];
|
||||
}
|
||||
|
||||
if ( strlen ($ListTable[$i]["OpenBasedir"]) > 16 )
|
||||
{
|
||||
$Basedir = substr($ListTable[$i]["OpenBasedir"], 0 ,16)." ...";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Basedir = $ListTable[$i]["OpenBasedir"];
|
||||
}
|
||||
|
||||
if ( strlen ($ListTable[$i]["Commentaire"]) > 13 )
|
||||
{
|
||||
$Commentaire = substr($ListTable[$i]["Commentaire"], 0 ,16)." ...";
|
||||
}
|
||||
elseif ( strlen ($ListTable[$i]["Commentaire"]) == 0)
|
||||
{
|
||||
$Commentaire = "-";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Commentaire = $ListTable[$i]["Commentaire"];
|
||||
}
|
||||
|
||||
|
||||
echo '
|
||||
<tr>
|
||||
<td><span style="cursor: help;" title="'.$ListTable[$i]["Adresse"].'">'.$Adresse.'</span></td>
|
||||
<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"].'">'.$Basedir.'</span></td>
|
||||
<td><span style="cursor: help;" title="'.$ListTable[$i]["Commentaire"].'">'.$Commentaire.'</span></td>
|
||||
</tr>';
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
60
0.9.0/panel/module/domaine/suppressiondomaine.php
Executable file
60
0.9.0/panel/module/domaine/suppressiondomaine.php
Executable file
@@ -0,0 +1,60 @@
|
||||
<?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 ("*", "domaine", "Utilisateur='".$_SESSION['Utilisateur']."' AND Status='2'", "", "", "", "");
|
||||
|
||||
?>
|
||||
<h3>Supprimer un nom de domaine externe</h3>
|
||||
<p>
|
||||
En cas d'erreur, vous devrez attendre que l'adresse soit totalement supprimée du serveur pour pouvoir la recréer.<br />
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<form action="execution-7.html" method="post">
|
||||
<table cellpadding="5">
|
||||
<tr>
|
||||
<th>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]["Adresse"]."'>".$ListTable[$i]["Adresse"]."</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 site web" />
|
||||
</form>
|
||||
</div>
|
||||
Reference in New Issue
Block a user