Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
a532bd9cf1 | ||
|
f2d1f1efd6 | ||
|
a7fd4e96f1 | ||
|
a9cae7c9bd | ||
|
ebd92d736a | ||
|
96b7bfb32c |
@@ -319,7 +319,7 @@ class Channel {
|
|||||||
foreach($global_perms as $k => $perm) {
|
foreach($global_perms as $k => $perm) {
|
||||||
$options = array();
|
$options = array();
|
||||||
foreach($perm_opts as $opt) {
|
foreach($perm_opts as $opt) {
|
||||||
if((! strstr($perm,'view')) && $opt[1] == PERMS_PUBLIC)
|
if((! strstr($k,'view')) && $opt[1] == PERMS_PUBLIC)
|
||||||
continue;
|
continue;
|
||||||
$options[$opt[1]] = $opt[0];
|
$options[$opt[1]] = $opt[0];
|
||||||
}
|
}
|
||||||
@@ -327,10 +327,6 @@ class Channel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//logger('permiss: ' . print_r($permiss,true));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$username = $channel['channel_name'];
|
$username = $channel['channel_name'];
|
||||||
$nickname = $channel['channel_address'];
|
$nickname = $channel['channel_address'];
|
||||||
$timezone = $channel['channel_timezone'];
|
$timezone = $channel['channel_timezone'];
|
||||||
|
2
boot.php
2
boot.php
@@ -44,7 +44,7 @@ require_once('include/account.php');
|
|||||||
|
|
||||||
|
|
||||||
define ( 'PLATFORM_NAME', 'hubzilla' );
|
define ( 'PLATFORM_NAME', 'hubzilla' );
|
||||||
define ( 'STD_VERSION', '1.14' );
|
define ( 'STD_VERSION', '1.14.2' );
|
||||||
define ( 'ZOT_REVISION', '1.1' );
|
define ( 'ZOT_REVISION', '1.1' );
|
||||||
|
|
||||||
define ( 'DB_UPDATE_VERSION', 1183 );
|
define ( 'DB_UPDATE_VERSION', 1183 );
|
||||||
|
@@ -149,13 +149,36 @@ function populate_acl($defaults = null,$show_jotnets = true, $emptyACL_descripti
|
|||||||
array_walk($deny_gid,'fixacl');
|
array_walk($deny_gid,'fixacl');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$channel = ((local_channel()) ? \App::get_channel() : '');
|
||||||
|
$has_acl = false;
|
||||||
|
$single_group = false;
|
||||||
|
$just_me = false;
|
||||||
|
$custom = false;
|
||||||
|
|
||||||
|
if($allow_cid || $allow_gid || $deny_gid || $deny_cid) {
|
||||||
|
$has_acl = true;
|
||||||
|
$custom = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(count($allow_gid) === 1 && (! $allow_cid) && (! $deny_gid) && (! $deny_cid)) {
|
||||||
|
$single_group = true;
|
||||||
|
$custom = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(count($allow_cid) === 1 && $channel && $allow_cid[0] = $channel['channel_hash'] && (! $allow_gid) && (! $deny_gid) && (! $deny_cid)) {
|
||||||
|
$just_me = true;
|
||||||
|
$custom = false;
|
||||||
|
}
|
||||||
|
|
||||||
$r = q("SELECT id, hash, gname FROM groups WHERE deleted = 0 AND uid = %d ORDER BY gname ASC",
|
$r = q("SELECT id, hash, gname FROM groups WHERE deleted = 0 AND uid = %d ORDER BY gname ASC",
|
||||||
intval(local_channel())
|
intval(local_channel())
|
||||||
);
|
);
|
||||||
|
|
||||||
if($r) {
|
if($r) {
|
||||||
foreach($r as $rr) {
|
foreach($r as $rr) {
|
||||||
$groups .= '<option id="' . $rr['id'] . '" value="' . $rr['hash'] . '">' . $rr['gname'] . '</option>' . "\r\n";
|
$selected = (($single_group && $rr['hash'] === $allow_gid[0]) ? ' selected = "selected" ' : '');
|
||||||
|
$groups .= '<option id="' . $rr['id'] . '" value="' . $rr['hash'] . '"' . $selected . '>' . $rr['gname'] . '</option>' . "\r\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -163,7 +186,10 @@ function populate_acl($defaults = null,$show_jotnets = true, $emptyACL_descripti
|
|||||||
$o = replace_macros($tpl, array(
|
$o = replace_macros($tpl, array(
|
||||||
'$showall' => $showall_caption,
|
'$showall' => $showall_caption,
|
||||||
'$onlyme' => t('Only me'),
|
'$onlyme' => t('Only me'),
|
||||||
'$groups' => $groups,
|
'$groups' => $groups,
|
||||||
|
'$public_selected' => (($has_acl) ? false : true),
|
||||||
|
'$justme_selected' => $just_me,
|
||||||
|
'$custom_selected' => $custom,
|
||||||
'$showallOrigin' => $showall_origin,
|
'$showallOrigin' => $showall_origin,
|
||||||
'$showallIcon' => $showall_icon,
|
'$showallIcon' => $showall_icon,
|
||||||
'$select_label' => t('Who can see this?'),
|
'$select_label' => t('Who can see this?'),
|
||||||
|
@@ -2576,7 +2576,7 @@ function import_directory_profile($hash, $profile, $addr, $ud_flags = UPDATE_FLA
|
|||||||
$arr = array();
|
$arr = array();
|
||||||
|
|
||||||
$arr['xprof_hash'] = $hash;
|
$arr['xprof_hash'] = $hash;
|
||||||
$arr['xprof_dob'] = datetime_convert('','',$profile['birthday'],'Y-m-d'); // !!!! check this for 0000 year
|
$arr['xprof_dob'] = (($profile['birthday'] === '0000-00-00') ? $profile['birthday'] : datetime_convert('','',$profile['birthday'],'Y-m-d')); // !!!! check this for 0000 year
|
||||||
$arr['xprof_age'] = (($profile['age']) ? intval($profile['age']) : 0);
|
$arr['xprof_age'] = (($profile['age']) ? intval($profile['age']) : 0);
|
||||||
$arr['xprof_desc'] = (($profile['description']) ? htmlspecialchars($profile['description'], ENT_COMPAT,'UTF-8',false) : '');
|
$arr['xprof_desc'] = (($profile['description']) ? htmlspecialchars($profile['description'], ENT_COMPAT,'UTF-8',false) : '');
|
||||||
$arr['xprof_gender'] = (($profile['gender']) ? htmlspecialchars($profile['gender'], ENT_COMPAT,'UTF-8',false) : '');
|
$arr['xprof_gender'] = (($profile['gender']) ? htmlspecialchars($profile['gender'], ENT_COMPAT,'UTF-8',false) : '');
|
||||||
|
14205
util/hmessages.po
14205
util/hmessages.po
File diff suppressed because it is too large
Load Diff
@@ -15,10 +15,10 @@
|
|||||||
{{/if}}
|
{{/if}}
|
||||||
<label for="acl-select">{{$select_label}}</label>
|
<label for="acl-select">{{$select_label}}</label>
|
||||||
<select id="acl-select" name="optionsRadios" class="form-control form-group">
|
<select id="acl-select" name="optionsRadios" class="form-control form-group">
|
||||||
<option id="acl-showall" value="public" selected>{{$showall}}</option>
|
<option id="acl-showall" value="public" {{$public_selected}}>{{$showall}}</option>
|
||||||
{{$groups}}
|
{{$groups}}
|
||||||
<option id="acl-onlyme" value="onlyme">{{$onlyme}}</option>
|
<option id="acl-onlyme" value="onlyme" {{$justme_selected}}>{{$onlyme}}</option>
|
||||||
<option id="acl-custom" value="custom">{{$custom}}</option>
|
<option id="acl-custom" value="custom" {{$custom_selected}}>{{$custom}}</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
{{if $showallOrigin}}
|
{{if $showallOrigin}}
|
||||||
|
Reference in New Issue
Block a user