show whether ssl-certs are given for a domain by red or green icon in customer-domains, thx to nico for the icon-work
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -73,17 +73,20 @@ elseif($page == 'domains')
|
|||||||
$parentdomains_count++;
|
$parentdomains_count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
$domains_count++;
|
/**
|
||||||
/*
|
* check for set ssl-certs to show either
|
||||||
$domainparts = explode('.', $row['domain']);
|
* a red or a green ssl-icon
|
||||||
$domainparts = array_reverse($domainparts);
|
|
||||||
$sortkey = '';
|
|
||||||
foreach($domainparts as $key => $part)
|
|
||||||
{
|
|
||||||
$sortkey.= $part . '.';
|
|
||||||
}
|
|
||||||
$domain_array[$sortkey] = $row;
|
|
||||||
*/
|
*/
|
||||||
|
$row['domain_hascert'] = false;
|
||||||
|
$ssl_result = $db->query_first("SELECT * FROM `".TABLE_PANEL_DOMAIN_SSL_SETTINGS."` WHERE `domainid`='".(int)$row['id']."';");
|
||||||
|
if (is_array($ssl_result)
|
||||||
|
&& isset($ssl_result['ssl_cert_file'])
|
||||||
|
&& $ssl_result['ssl_cert_file'] != ''
|
||||||
|
) {
|
||||||
|
$row['domain_hascert'] = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
$domains_count++;
|
||||||
$domain_array[$row['domain']] = $row;
|
$domain_array[$row['domain']] = $row;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 521 B |
BIN
templates/Froxlor/assets/img/icons/ssl_green.png
Normal file
BIN
templates/Froxlor/assets/img/icons/ssl_green.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.0 KiB |
BIN
templates/Froxlor/assets/img/icons/ssl_red.png
Normal file
BIN
templates/Froxlor/assets/img/icons/ssl_red.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.0 KiB |
@@ -17,7 +17,7 @@
|
|||||||
</if>
|
</if>
|
||||||
<if $show_ssledit == 1>
|
<if $show_ssledit == 1>
|
||||||
<a href="{$linker->getLink(array('section' => 'domains', 'page' => 'domainssleditor', 'action' => 'view', 'id' => $row['id']))}" style="text-decoration:none;">
|
<a href="{$linker->getLink(array('section' => 'domains', 'page' => 'domainssleditor', 'action' => 'view', 'id' => $row['id']))}" style="text-decoration:none;">
|
||||||
<img src="templates/{$theme}/assets/img/icons/ssl.png" alt="{$lng['panel']['ssleditor']}" />
|
<img src="templates/{$theme}/assets/img/icons/ssl_<if $row['domain_hascert'] == 1>green<else>red</if>.png" alt="{$lng['panel']['ssleditor']}" />
|
||||||
</a>
|
</a>
|
||||||
</if>
|
</if>
|
||||||
<if $row['parentdomainid'] == '0' && !(isset($row['domainaliasid']) && $row['domainaliasid'] != 0)>
|
<if $row['parentdomainid'] == '0' && !(isset($row['domainaliasid']) && $row['domainaliasid'] != 0)>
|
||||||
|
|||||||
Reference in New Issue
Block a user