From 7ed492470cbca7c74700f5f5fea549e9eaa8f76f Mon Sep 17 00:00:00 2001 From: Gregory Colpart Date: Sun, 20 Aug 2017 05:05:04 +0200 Subject: [PATCH] indent + fix typo --- tpl/webadmin.tpl.php | 57 ++++++++++++++++++++++---------------------- 1 file changed, 29 insertions(+), 28 deletions(-) diff --git a/tpl/webadmin.tpl.php b/tpl/webadmin.tpl.php index 13b0847..546f3a9 100755 --- a/tpl/webadmin.tpl.php +++ b/tpl/webadmin.tpl.php @@ -32,9 +32,11 @@ Replication Master Slave - Alias'; - }} ?> + } ?> @@ -47,35 +49,34 @@ $vhost_info['server_name'], $vhost_info['server_name']); if ($conf['cluster']) { - if (empty($vhost_info['bdd'])) - printf(''); - else - printf('%s', $vhost_info['bdd']); + if (empty($vhost_info['bdd'])) + printf(''); + else + printf('%s', $vhost_info['bdd']); - if (empty($vhost_info['mail'])) - printf(''); - else if ($vhost_info['mail'] == 'gmail') - printf('Gmail'); - else printf('Evolix'); + if (empty($vhost_info['mail'])) + printf(''); + else if ($vhost_info['mail'] == 'gmail') + printf('Gmail'); + else printf('Evolix'); - if (empty($vhost_info['replication'])) - printf(''); - else - printf('%s', $vhost_info['replication']); - printf('%s', $vhost_info['master']); - if (empty($vhost_info['slave'])) - printf(''); - else - printf('%s', $vhost_info['slave']); - } - else { - printf('%s', $vhost_info['server_alias']); - } - if (is_superadmin()) { - printf('Lister/Modifier', - $vhost_info['owner']); + if (empty($vhost_info['replication'])) + printf(''); + else + printf('%s', $vhost_info['replication']); + printf('%s', $vhost_info['master']); + if (empty($vhost_info['slave'])) + printf(''); + else + printf('%s', $vhost_info['slave']); + } + else { + printf('%s', $vhost_info['server_alias']); + } + if (is_superadmin()) { + printf('Lister/Modifier', + $vhost_info['owner']); } - print '';