112 lines
8.0 KiB
PHP
Executable File
112 lines
8.0 KiB
PHP
Executable File
<?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 <? ?>">*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>
|