cleaning code + add links to navigate to new pages

This commit is contained in:
Nicolas Roman 2019-03-26 10:41:17 +01:00 committed by Ludovic Poujol
parent 89858a6bbd
commit fc3fe6bd15
3 changed files with 14 additions and 4 deletions

View file

@ -18,7 +18,6 @@ require_once EVOADMIN_BASE . '../lib/domain.php';
global $conf;
var_dump($_SESSION);
if (isset($_GET['enable']) ) {
require_once EVOADMIN_BASE . '../evolibs/Form.php';

View file

@ -54,7 +54,7 @@
</table>
<?php
} else {
print "<p>Aucun ServerName existant pour le domaine $domain !</p>";
print "<p>La sécurité ITK ne semble pas en place pour le domaine $domain</p>";
}

View file

@ -39,7 +39,14 @@
}
?>
<th>&nbsp;Actif ?&nbsp;</th>
<th>&nbsp;Action&nbsp;</th>
<?php if(is_superadmin()) {
print '<th>&nbsp;Alias&nbsp;</th>';
print '<th>&nbsp;ServerName&nbsp;</th>';
print '<th>&nbsp;Sécurité&nbsp;</th>';
}
?>
<!--<th>Opérations</th>-->
<?php if($conf['cluster']) { ?>
<th>Bdd</th>
@ -95,7 +102,11 @@
}
printf('<td>%s</td>', ($vhost_info['is_enabled'] ? 'Activé' : 'Désactivé' ));
if (is_superadmin()) {
printf('<td><a href="/webadmin/edit/%s">Lister/Modifier les alias</a></td>',
printf('<td><a href="/webadmin/edit/%s">Gérer</a></td>',
$vhost_info['owner']);
printf('<td><a href="/webadmin/servername/%s">Modifier</a></td>',
$vhost_info['owner']);
printf('<td><a href="/webadmin/itk/%s">Gérer</a></td>',
$vhost_info['owner']);
}