normalize title names

This commit is contained in:
Nicolas Roman 2019-05-16 10:57:05 +02:00
parent bb17afd5fc
commit 1ffa0ef4e7
6 changed files with 17 additions and 17 deletions

View file

@ -222,10 +222,10 @@ elseif (isset($params[2]) && $params[2] == "add") {
} }
} }
else { else {
print "<h2>Ajout d'un serveralias</h2><hr>"; print "<h2>Ajout d'un alias</h2><hr>";
print "<form name=\"form-add\" id=\"form-add\" action=\"\" method=\"POST\">"; print "<form name=\"form-add\" id=\"form-add\" action=\"\" method=\"POST\">";
print " <fieldset>"; print " <fieldset>";
print " <legend>Ajout d'un serveralias</legend>"; print " <legend>Ajout d'un alias</legend>";
print $form; print $form;
print " <p><input type=\"submit\" value=\"Créer\"/></p>"; print " <p><input type=\"submit\" value=\"Créer\"/></p>";
print " </fieldset>"; print " </fieldset>";
@ -233,10 +233,10 @@ elseif (isset($params[2]) && $params[2] == "add") {
} }
} else { } else {
print "<h2>Ajout d'un serveralias</h2><hr>"; print "<h2>Ajout d'un alias</h2><hr>";
print "<form name=\"form-add\" id=\"form-add\" action=\"\" method=\"POST\">"; print "<form name=\"form-add\" id=\"form-add\" action=\"\" method=\"POST\">";
print " <fieldset>"; print " <fieldset>";
print " <legend>Ajout d'un serveralias</legend>"; print " <legend>Ajout d'un alias</legend>";
print $form; print $form;
print " <p><input type=\"submit\" value=\"Créer\"/></p>"; print " <p><input type=\"submit\" value=\"Créer\"/></p>";
print " </fieldset>"; print " </fieldset>";

View file

@ -146,10 +146,10 @@ if (isset($params[2]) && $params[2] == "edit") {
} }
} }
} else { } else {
print "<h2>Modification du ServerName</h2><hr>"; print "<h2>Modification du Servername</h2><hr>";
print "<form name=\"form-add\" id=\"form-add\" action=\"\" method=\"POST\">"; print "<form name=\"form-add\" id=\"form-add\" action=\"\" method=\"POST\">";
print " <fieldset>"; print " <fieldset>";
print " <legend>Modification du ServerName</legend>"; print " <legend>Modification du Servername</legend>";
print $form; print $form;
print " <p><input type=\"submit\" value=\"Modifier\"/></p>"; print " <p><input type=\"submit\" value=\"Modifier\"/></p>";
print " </fieldset>"; print " </fieldset>";

View file

@ -5,7 +5,7 @@
* *
* Copyright (c) 2009 Evolix - Tous droits reserves * Copyright (c) 2009 Evolix - Tous droits reserves
* *
* vim: expandtab softtabstop=4 tabstop=4 shiftwidth=4 showtabline=2 * vim: expandtab softtabstop=4 tabstop=4 shiftwidth=4 showtabline=2
* *
* @author Thomas Martin <tmartin@evolix.fr> * @author Thomas Martin <tmartin@evolix.fr>
* @version 1.0 * @version 1.0
@ -38,7 +38,7 @@
<?php <?php
for ( $i=0; $i < count($alias_list); ++$i ) { for ( $i=0; $i < count($alias_list); ++$i ) {
print '<tr>'; print '<tr>';
printf('<td><a href="http://%s">http://%s</a></td>', printf('<td>%s</td>',
$alias_list[$i]['alias'], $alias_list[$i]['alias']); $alias_list[$i]['alias'], $alias_list[$i]['alias']);
if (is_superadmin()) if (is_superadmin())
printf('<td><a href="/webadmin/%s/alias/delete/%s/">Supprimer</a></td>', printf('<td><a href="/webadmin/%s/alias/delete/%s/">Supprimer</a></td>',

View file

@ -22,7 +22,7 @@
<table id="tab-list"> <table id="tab-list">
<thead> <thead>
<tr> <tr>
<th>ServerName</th> <th>Servername</th>
<th>Utilisateur</th> <th>Utilisateur</th>
<?php if (is_superadmin()) { <?php if (is_superadmin()) {
print '<th>Action</th>'; print '<th>Action</th>';

View file

@ -13,7 +13,7 @@
?> ?>
<h2>ServerNames</h2> <h2>Servernames</h2>
<?php <?php
@ -22,7 +22,7 @@
<table id="tab-list"> <table id="tab-list">
<thead> <thead>
<tr> <tr>
<th>ServerName</th> <th>Servername</th>
<?php if (is_superadmin()) { <?php if (is_superadmin()) {
print '<th>Action</th>'; print '<th>Action</th>';
} ?> } ?>
@ -43,7 +43,7 @@
</table> </table>
<?php <?php
} else { } else {
print "<p>Aucun ServerName existant pour le domaine $domain !</p>"; print "<p>Aucun Servername existant pour le domaine $domain !</p>";
} }

View file

@ -22,9 +22,9 @@
<thead> <thead>
<tr> <tr>
<?php if(is_superadmin()) { <?php if(is_superadmin()) {
print '<th>Propriétaire</th>'; print '<th>Virtual Host</th>';
} ?> } ?>
<th>Domaine</th> <th>Servername</th>
<?php if(is_superadmin()) { <?php if(is_superadmin()) {
print '<th>Alias</th>'; print '<th>Alias</th>';
} }
@ -61,7 +61,7 @@
if(is_superadmin()) { if(is_superadmin()) {
printf('<td>%s</td>', $vhost_info['owner']); printf('<td>%s</td>', $vhost_info['owner']);
} }
printf('<td><a href="http://%s">http://%s</a></td>', printf('<td>%s</td>',
$vhost_info['server_name'], $vhost_info['server_name']); $vhost_info['server_name'], $vhost_info['server_name']);
if ($conf['cluster']) { if ($conf['cluster']) {
@ -87,7 +87,7 @@
printf('<td>%s</td>', $vhost_info['slave']); printf('<td>%s</td>', $vhost_info['slave']);
} }
printf('<td align="left">%s</td>', preg_replace('/,/','<br />',$vhost_info['server_alias'])); printf('<td>%s</td>', preg_replace('/,/','<br />',$vhost_info['server_alias']));
if ($conf['quota']) { if ($conf['quota']) {
printf('<td>%s</td>', $vhost_info['size']); printf('<td>%s</td>', $vhost_info['size']);
@ -110,7 +110,7 @@
} else { } else {
printf('<a href="/webadmin/%s/itk/">ITK</a>', $vhost_info['owner']); printf('<a href="/webadmin/%s/itk/">ITK</a>', $vhost_info['owner']);
} }
printf('<a href="/webadmin/%s/delete/"> - Supprimer</a>', $vhost_info['owner']); printf('<a href="/webadmin/%s/delete/">Supprimer</a>', $vhost_info['owner']);
printf('</td>'); printf('</td>');
} }