diff --git a/htdocs/index.php b/htdocs/index.php
index 47fe6f4..f1aacd9 100755
--- a/htdocs/index.php
+++ b/htdocs/index.php
@@ -48,6 +48,10 @@ if (!array_key_exists('auth', $_SESSION) || $_SESSION['auth']!=1) {
include_once EVOADMIN_BASE . '../inc/webadmin.php';
+} elseif (preg_match('#^/webadmin/servername/(.*)/?$#', $uri, $params)) {
+
+ include_once EVOADMIN_BASE . '../inc/webadmin-servername.php';
+
} elseif (preg_match('#^/webadmin/edit/(.*)/?$#', $uri, $params)) {
include_once EVOADMIN_BASE . '../inc/webadmin-edit.php';
diff --git a/inc/webadmin-servername.php b/inc/webadmin-servername.php
new file mode 100644
index 0000000..f577b67
--- /dev/null
+++ b/inc/webadmin-servername.php
@@ -0,0 +1,193 @@
+
+ * @author Thomas Martin L\'alias %s du domaine %s a bien été créé Echec dans la creation de l\'alias %s du domaine %s Alias %s du domaine %s deja existant ! Le Server Name %s du domaine %s a bien été modifié Echec dans la modification du Server Name %s du domaine %sModification du ServerName
";
+ print "";
+
+ }
+
+ include_once EVOADMIN_BASE . '../tpl/footer.tpl.php';
+
+
+} else {
+
+ $domain = $params[1];
+ $servername_list = array();
+
+ // TODO: adapt for cluster mode
+ if ($conf['cluster']) {
+ if (is_mcluster_mode()) {
+ // If the user has not yet selected a cluster, redirect-it to home page.
+ if (empty($_SESSION['cluster'])) {
+ http_redirect('/');
+ }
+ $cache = str_replace('%cluster_name%', $_SESSION['cluster'], $conf['cache']);
+ }
+ else {
+ $cache = $conf['cache'];
+ }
+
+ $alias_list = array();
+
+ /* parcours de la table Serveralias */
+ $bdd = new bdd();
+ $bdd->open($cache);
+
+ $alias_list = $bdd->list_serveralias($domain);
+ }
+ else {
+ $cmd = 'web-add.sh list-vhost';
+ if(!is_superadmin()) {
+ $cmd = sprintf('%s %s', $cmd, $_SESSION['user']);
+ }
+ sudoexec($cmd, $data_output, $exec_return);
+
+ foreach($data_output as $data_line) {
+ $data_split = explode(':', $data_line);
+ if ($data_split[0] == $domain && $data_split[2] != '') {
+ // Fonctionne uniquement pour un seul et même servername par conf
+ array_push($servername_list, $data_split[2]);
+ }
+ }
+ }
+
+ include_once EVOADMIN_BASE . '../tpl/header.tpl.php';
+ include_once EVOADMIN_BASE . '../tpl/menu.tpl.php';
+ include_once EVOADMIN_BASE . '../tpl/webadmin-servername.tpl.php';
+ include_once EVOADMIN_BASE . '../tpl/footer.tpl.php';
+
+}
+
+?>
diff --git a/tpl/webadmin-servername.tpl.php b/tpl/webadmin-servername.tpl.php
new file mode 100644
index 0000000..70cdc2f
--- /dev/null
+++ b/tpl/webadmin-servername.tpl.php
@@ -0,0 +1,55 @@
+
+ * @version 1.0
+ */
+
+?>
+
+Server Name
+
+ 0) { ?>
+
+
+
+
+Aucun alias existant pour le domaine $domain !
+
+
+
+ ';
+ printf('Server Name
+ Action';
+ } ?>
+ %s ',
+ $servername_list[$i]);
+ if (is_superadmin())
+ printf('Modifier ',
+ $domain, $servername_list[$i]);
+ print '';
+ } ?>
+
+