diff options
-rw-r--r-- | mod/dirsearch.php | 10 | ||||
-rw-r--r-- | mod/pubsites.php | 2 |
2 files changed, 10 insertions, 2 deletions
diff --git a/mod/dirsearch.php b/mod/dirsearch.php index 3e385a6d1..6315cae31 100644 --- a/mod/dirsearch.php +++ b/mod/dirsearch.php @@ -227,6 +227,8 @@ function list_public_sites() { if($r) { $ret['success'] = true; $ret['sites'] = array(); + $insecure = array(); + foreach($r as $rr) { if($rr['site_access'] == ACCESS_FREE) @@ -245,7 +247,13 @@ function list_public_sites() { else $register = 'closed'; - $ret['sites'][] = array('url' => $rr['site_url'], 'access' => $access, 'register' => $register, 'sellpage' => $rr['site_sellpage'], 'location' => $rr['site_location']); + if(strpos($rr['site_url'],'https://') !== false) + $ret['sites'][] = array('url' => $rr['site_url'], 'access' => $access, 'register' => $register, 'sellpage' => $rr['site_sellpage'], 'location' => $rr['site_location']); + else + $insecure[] = array('url' => $rr['site_url'], 'access' => $access, 'register' => $register, 'sellpage' => $rr['site_sellpage'], 'location' => $rr['site_location']); + } + if($insecure) { + $ret['sites'] = array_merge($ret['sites'],$insecure); } } return $ret; diff --git a/mod/pubsites.php b/mod/pubsites.php index e744906fb..c15ba31ac 100644 --- a/mod/pubsites.php +++ b/mod/pubsites.php @@ -22,7 +22,7 @@ function pubsites_content(&$a) { $o .= '<h1>' . t('Public Sites') . '</h1>'; $o .= '<div class="descriptive-text">' . - t('The listed sites allow public registration into the Red Matrix. All sites in the matrix are interlinked so membership on any of them conveys membership in the matrix as a whole. Some sites may require subscription or provide tiered service plans. The provider links may provide additional details.') . '</div>' . EOL; + t('The listed sites allow public registration into the Red Matrix. All sites in the matrix are interlinked so membership on any of them conveys membership in the matrix as a whole. Some sites may require subscription or provide tiered service plans. The provider links <strong>may</strong> provide additional details.') . '</div>' . EOL; $ret = z_fetch_url($url); if($ret['success']) { |