aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-11-14 18:36:09 -0800
committerfriendica <info@friendica.com>2013-11-14 18:36:09 -0800
commitbf709d49bac7a1075736c052066e5d44d9dfe7eb (patch)
treea2bebc8158133369922d95f863139f1bc0feee53
parentcad483e80bd41dd068d820858bfe059f136d1281 (diff)
downloadvolse-hubzilla-bf709d49bac7a1075736c052066e5d44d9dfe7eb.tar.gz
volse-hubzilla-bf709d49bac7a1075736c052066e5d44d9dfe7eb.tar.bz2
volse-hubzilla-bf709d49bac7a1075736c052066e5d44d9dfe7eb.zip
dirsearch and pubsites - force non-SSL sites to float to the bottom of the list
-rw-r--r--mod/dirsearch.php10
-rw-r--r--mod/pubsites.php2
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']) {