Migration

This commit is contained in:
2016-02-21 01:33:05 +01:00
commit 6db8a86a48
386 changed files with 17311 additions and 0 deletions

View File

@@ -0,0 +1,111 @@
<?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']."'", "", "", "", "");
?><h3>Ajouter un domaine externe</h3>
<br />
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 pas exemple faire communiquer plusieurs de vos sites entre eux. En général, celui-ci est identique à la racine.
<br /><br />
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 une redirection de type A-record sur l'adresse ip : <strong><?php echo gethostbyname ($ListBDD[0]["ServeurFichier"]) ; ?> (<?php echo $ListBDD[0]["ServeurFichier"]; ?>)</strong>
<br />Vous pouvez aussi utiliser des sous-domaines.<br />Tout les champs marqués d'une étoile sont obligatoires.
<br />
<div style="width:100%; padding-top: 15px; padding-bottom: 15px; 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><br /></div>
<div style="width: 500px; margin: auto">
<form action="execution-6.html" method="post">
<table width="500" cellpadding="5">
<tr>
<td style="width:150px">*Adresse (sans http://) :</td>
<td style="width:350px"><input name="Adresse" type="text" style="border: 0; border-bottom: #006633 1px solid; background-color: #edffe1; width:100%" maxlength="120" /></td>
</tr>
<tr>
<td>*Racine :</td>
<td><input name="Racine" type="text" style="border: 0; border-bottom: #006633 1px solid; background-color: #edffe1; width:100%" maxlength="120" value="/public/" /></td>
</tr>
<tr>
<td>*Open BaseDir :</td>
<td><input name="BaseDir" type="text" style="border: 0; border-bottom: #006633 1px solid; background-color: #edffe1; width:100%" maxlength="120" value="/public/" /></td>
</tr>
<tr>
<td>Commentaire :</td>
<td><input name="Commentaire" type="text" style="border: 0; border-bottom: #006633 1px solid; background-color: #edffe1; width:100%" maxlength="50" /></td>
</tr>
<tr style="display: none" id="JS_ModExpert1">
<td><span style="cursor: help" title="Host par défaut en cas de champs vide pour la fonction mysql_connect ()">Mysq.ldefault_host</span></td>
<td><input name="mysqldefault_host" type="text" style="border: 0; border-bottom: #006633 1px solid; background-color: #edffe1; width:100%" maxlength="100" value="<?php echo $ListBDD[0]["ServeurMysql"]; ?>" /></td>
</tr>
<tr style="display: none" id="JS_ModExpert2">
<td><span style="cursor: help" title="Utilisateur par défaut en cas de champs vide pour la fonction mysql_connect ()">Mysql.default_user</span></td>
<td><input name="mysqldefault_user" type="text" style="border: 0; border-bottom: #006633 1px solid; background-color: #edffe1; width:100%" maxlength="16" /></td>
</tr>
<tr style="display: none" id="JS_ModExpert3">
<td><span style="cursor: help" title="Password par défaut en cas de champs vide pour la fonction mysql_connect ()">Mysql.default_password</span></td>
<td><input name="mysqldefault_password" type="text" style="border: 0; border-bottom: #006633 1px solid; background-color: #edffe1; width:100%" maxlength="16" /></td>
</tr>
<tr style="display: none" id="JS_ModExpert4">
<td><span style="cursor: help" title="Dossier contenant toute les données temporaires du domaine">Temporaire</span></td>
<td><input name="temporaire" type="text" style="border: 0; border-bottom: #006633 1px solid; background-color: #edffe1; width:100%" maxlength="120" /></td>
</tr>
<tr style="display: none" id="JS_ModExpert5">
<td><span style="cursor: help" title="Dossier contenant toute les sessions du domaine">Sessions</span></td>
<td><input name="sessions" type="text" style="border: 0; border-bottom: #006633 1px solid; background-color: #edffe1; width:100%" maxlength="120" /></td>
</tr>
<tr>
<td>*Listage du dossier :</td>
<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">
<td style="width:150px"><span style="cursor: help" title="Autoriser l'ouvrture de fichier distant via la fonction fopen()">*Allow_url_fopen</span></td>
<td style="width:350px"><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">
<td style="width:150px"><span style="cursor: help" title="Autoriser l'inclusion de fichier distant via la fonction include (), etc..">*Allow_url_include</span></td>
<td style="width:350px"><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">
<td style="width:150px"><span style="cursor: help" title="Voir les erreurs génerés par php">*Display_errors</span></td>
<td style="width:350px"><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">
<td style="width:150px"><span style="cursor: help" title="Permettre l'utilisation de &lt;? ?&gt;">*Short_open_tag</span></td>
<td style="width:350px"><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">
<td style="width:150px"><span style="cursor: help" title="Demarrer les sessions en début de page sans utiliser session_start ()">*Session.auto_start</span></td>
<td style="width:350px"><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">
<td style="width:150px"><span style="cursor: help" title="Ajoute automatiquement des anti-slashs aux arrays $_POST, etc..">*Magic_quotes_gpc</span></td>
<td style="width:350px"><label><input name="magic_quotes_gpc" type="radio" value="Oui" checked="checked" /> Oui</label> - <label><input name="magic_quotes_gpc" type="radio" value="Non" /> Non</label></td>
</tr>
<tr style="display: none" id="JS_ModExpert12">
<td style="width:150px"><span style="cursor: help" title="Permet d'utiliser $_POST['var'] en $var">*Register_globals</span></td>
<td style="width:350px"><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>
<div style="text-align: center; width: 100%; margin-top: 20px;">
<input type="submit" name="Submit" value="Ajouter le domaine" style=" border: #006633 1px solid; background-color: #edffe1;" />
</div>
</form>
</div>

View File

@@ -0,0 +1,132 @@
<?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 domaines externes
<a style="border: 0px;" href="http://wiki.kelio.org/doku.php?id=doc_panel:domaine"><img style="vertical-align:middle; border: 0px;" src="image/icons/question.png" alt="Aide" title="Aide" /></a>
</h3>
<br />
Actuellement, vous avez <?php echo $CountEnregistrement; ?> domaine(s) externe(s)
<br />Passez votre souris sur le commentaire pour le voir en entier.
<br />Idem pour le chemin, ainsi que le Basedir<br />
<br />
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 meme pour le statut "Suppression".
<br /><br />
<div style="border:#006633 1px solid; width: 90%; margin: auto; margin-top: 15px;">
<table style="width:100%">
<tr>
<td class="Tableau1" style="text-align: center; width: 15%;"><strong>Adresse</strong></td>
<td class="Tableau1" style="text-align: center; width: 15%;"><strong>Date</strong></td>
<td class="Tableau1" style="text-align: center; width: 10%;"><strong>Statut</strong></td>
<td class="Tableau1" style="text-align: center; width: 20%;"><strong>Racine</strong></td>
<td class="Tableau1" style="text-align: center; width: 20%;"><strong>Basedir</strong></td>
<td class="Tableau1" style="text-align: center; width: 20%;"><strong>Commentaire</strong></td>
</tr>
<?php
if ( $ListTable == FALSE )
{
echo '<tr><td class="Tableau1" style="text-align: center; width: 100%;" colspan="6">Aucun domaine pour le moment</td></tr>';
}
else
{
for ($i=0; $i < $CountEnregistrement; $i++)
{
if ( $ListTable[$i]["Status"] == "1" )
{
$Status = "Creation";
}
elseif ( $ListTable[$i]["Status"] == "2" )
{
$Status = "Activé";
}
elseif ( $ListTable[$i]["Status"] == "3" )
{
$Status = "Suppression";
}
else
{
$Status = "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 class="Tableau1" style="text-align: center; width: 15%;"><span style="cursor: pointer" title="'.$ListTable[$i]["Adresse"].'">'.$Adresse.'</span></td>
<td class="Tableau1" style="text-align: center; width: 15%;"><span style="cursor: pointer" title="'.date ("d-m-Y H:i:s",$ListTable[$i]["DateDeCreation"]).'">'.date("d-m-Y", $ListTable[$i]["DateDeCreation"]).'</span></td>
<td class="Tableau1" style="text-align: center; width: 10%;">'.$Status.'</td>
<td class="Tableau1" style="text-align: center; width: 20%;"><span style="cursor: pointer" title="'.$ListTable[$i]["Racine"].'">'.$Racine.'</span></td>
<td class="Tableau1" style="text-align: center; width: 20%;"><span style="cursor: pointer" title="'.$ListTable[$i]["OpenBasedir"].'">'.$Basedir.'</span></td>
<td class="Tableau1" style="text-align: center; width: 20%;"><span style="cursor: pointer" title="'.$ListTable[$i]["Commentaire"].'">'.$Commentaire.'</span></td>
</tr>';
}
}
?>
</table>
</div>

View File

@@ -0,0 +1,65 @@
<?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 domaine externe</h3>
<br />
En cas d'erreur, vous devrez attendre que l'adresse soit totalement supprimée du serveur pour pouvoir la recréer.<br />
<br /><br /><br />
<div style="width: 500px; margin: auto">
<form action="execution-7.html" method="post">
<table width="500" cellpadding="5">
<tr>
<td style="width:150px">Domaine à supprimer :</td>
<td style="width:350px">
<select name="Domaine" style="border: 0; border-bottom: #006633 1px solid; background-color: #edffe1; width:100%;">
<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>
<td>Tapez "oui" :</td>
<td><input name="Confirmation" type="text" style="border: 0; border-bottom: #006633 1px solid; background-color: #edffe1; width:100%;" maxlength="3" /></td>
</tr>
</table>
<div style="text-align: center; width: 100%; margin-top: 20px;">
<input type="submit" name="Submit" value="Supprimer le domaine" style=" border: #006633 1px solid; background-color: #edffe1;" />
</div>
</form>
</div>