You are here

function hosting_ssl_get_servers in Hostmaster (Aegir) 6

Return a list of servers which have SSL enabled web services.

3 calls to hosting_ssl_get_servers()
hook_hosting_site_options_alter in modules/hosting/site/hosting_site.api.php
hosting_ssl_get_platforms in modules/hosting/web_server/ssl/hosting_ssl.module
Return a list of platforms on SSL enabled servers.
hosting_ssl_hosting_site_options_alter in modules/hosting/web_server/ssl/hosting_ssl.nodeapi.inc

File

modules/hosting/web_server/ssl/hosting_ssl.module, line 36

Code

function hosting_ssl_get_servers() {
  $servers = hosting_get_servers('http');
  $ssl_servers = array();
  foreach ($servers as $nid => $title) {
    $node = node_load($nid);
    if ($node->services['http']->ssl_enabled) {
      $ssl_servers[] = $nid;
    }
  }
  return $ssl_servers;
}