This commit is contained in:
Jeroen Derks 2013-04-06 19:46:01 -07:00
commit 002ffe0210
7 changed files with 10 additions and 10 deletions

View file

@ -48,8 +48,8 @@ is_object_valid 'user' 'USER' "$user"
is_object_unsuspended 'user' 'USER' "$user"
is_object_new 'db' 'DB' "$database"
get_next_dbhost
is_object_valid "../../../conf/$type" 'HOST' "$host"
is_object_unsuspended "../../../conf/$type" 'HOST' "$host"
is_object_valid "../../../conf/$type" 'DBHOST' "$host"
is_object_unsuspended "../../../conf/$type" 'DBHOST' "$host"
#is_charset_valid
is_package_full 'DATABASES'

View file

@ -43,9 +43,9 @@
}
if ($data[$key]['HOST'] != 'localhost' ) $http_host = $data[$key]['HOST'];
if ($data[$key]['TYPE'] == 'mysql') $db_admin = "phpMyAdmin";
if ($data[$key]['TYPE'] == 'mysql') $db_admin_link = "http://".$http_host."/phpMyAdmin/";
if ($data[$key]['TYPE'] == 'mysql') $db_admin_link = "https://".$http_host."/phpMyAdmin/";
if ($data[$key]['TYPE'] == 'pgsql') $db_admin = "phpPgAdmin";
if ($data[$key]['TYPE'] == 'pgsql') $db_admin_link = "http://".$http_host."/phpPgAdmin/";
if ($data[$key]['TYPE'] == 'pgsql') $db_admin_link = "https://".$http_host."/phpPgAdmin/";
?>
<tr class="data-row">
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">

View file

@ -79,7 +79,7 @@
<?php print _('edit');?>
</span>
</a>
<a href="<?php echo "http://".$http_host."/webmail/"; ?>" target="_blank" class="data-controls">
<a href="<?php echo "https://".$http_host."/webmail/"; ?>" target="_blank" class="data-controls">
<span>
<img src="/images/new_window.png" width="8px" height="8px">
<?php print _('open webmail');?>

View file

@ -110,7 +110,7 @@
<?php
if (!empty($data[$key]['STATS'])) {
?>
<a href="http://<?php echo $key ?>/vstats/" target="_blank" class="data-controls">
<a href="https://<?php echo $key ?>/vstats/" target="_blank" class="data-controls">
<span>
<img src="/images/new_window.png" width="8px" height="8px">
<?php print _('open webstats');?>

View file

@ -41,9 +41,9 @@
}
if ($data[$key]['HOST'] != 'localhost' ) $http_host = $data[$key]['HOST'];
if ($data[$key]['TYPE'] == 'mysql') $db_admin = "phpMyAdmin";
if ($data[$key]['TYPE'] == 'mysql') $db_admin_link = "http://".$http_host."/phpMyAdmin/";
if ($data[$key]['TYPE'] == 'mysql') $db_admin_link = "https://".$http_host."/phpMyAdmin/";
if ($data[$key]['TYPE'] == 'pgsql') $db_admin = "phpPgAdmin";
if ($data[$key]['TYPE'] == 'pgsql') $db_admin_link = "http://".$http_host."/phpPgAdmin/";
if ($data[$key]['TYPE'] == 'pgsql') $db_admin_link = "https://".$http_host."/phpPgAdmin/";
?>
<tr class="data-row">
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">

View file

@ -68,7 +68,7 @@
<?php print _('edit');?>
</span>
</a>
<a href="<?php echo "http://".$http_host."/webmail/"; ?>" target="_blank" class="data-controls">
<a href="<?php echo "https://".$http_host."/webmail/"; ?>" target="_blank" class="data-controls">
<span>
<img src="/images/new_window.png" width="8px" height="8px">
<?php print _('open webmail');?>

View file

@ -99,7 +99,7 @@
<?php
if (!empty($data[$key]['STATS'])) {
?>
<a href="http://<?php echo $key ?>/vstats/" target="_blank" class="data-controls">
<a href="https://<?php echo $key ?>/vstats/" target="_blank" class="data-controls">
<span>
<img src="/images/new_window.png" width="8px" height="8px">
<?php print _('open webstats');?>