Merge branch 'master' of https://github.com/friendica/red
This commit is contained in:
commit
56eb9e75cc
@ -59,6 +59,8 @@ server {
|
|||||||
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;
|
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;
|
||||||
ssl_prefer_server_ciphers on;
|
ssl_prefer_server_ciphers on;
|
||||||
|
|
||||||
|
fastcgi_param HTTPS on;
|
||||||
|
|
||||||
index index.php;
|
index index.php;
|
||||||
charset utf-8;
|
charset utf-8;
|
||||||
root /var/www/red;
|
root /var/www/red;
|
||||||
|
@ -705,12 +705,22 @@ function contact_block() {
|
|||||||
if($shown == 0)
|
if($shown == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
||||||
|
$is_owner = ((local_user() && local_user() == $a->profile['uid']) ? true : false);
|
||||||
|
|
||||||
|
$abook_flags = ABOOK_FLAG_PENDING|ABOOK_FLAG_SELF;
|
||||||
|
$xchan_flags = XCHAN_FLAGS_ORPHAN|XCHAN_FLAGS_DELETED;
|
||||||
|
if(! $is_owner) {
|
||||||
|
$abook_flags = $abook_flags | ABOOK_FLAGS_HIDDEN;
|
||||||
|
$xchan_flags = $xchan_flags | XCHAN_FLAGS_HIDDEN;
|
||||||
|
}
|
||||||
|
|
||||||
if((! is_array($a->profile)) || ($a->profile['hide_friends']))
|
if((! is_array($a->profile)) || ($a->profile['hide_friends']))
|
||||||
return $o;
|
return $o;
|
||||||
$r = q("SELECT COUNT(abook_id) AS total FROM abook left join xchan on abook_xchan = xchan_hash WHERE abook_channel = %d and not ( abook_flags & %d ) and not (xchan_flags & %d)",
|
$r = q("SELECT COUNT(abook_id) AS total FROM abook left join xchan on abook_xchan = xchan_hash WHERE abook_channel = %d and not ( abook_flags & %d ) and not (xchan_flags & %d)",
|
||||||
intval($a->profile['uid']),
|
intval($a->profile['uid']),
|
||||||
intval(ABOOK_FLAG_HIDDEN|ABOOK_FLAG_PENDING|ABOOK_FLAG_SELF),
|
intval($abook_flags),
|
||||||
intval(XCHAN_FLAGS_HIDDEN|XCHAN_FLAGS_ORPHAN|XCHAN_FLAGS_DELETED)
|
intval($xchan_flags)
|
||||||
);
|
);
|
||||||
if(count($r)) {
|
if(count($r)) {
|
||||||
$total = intval($r[0]['total']);
|
$total = intval($r[0]['total']);
|
||||||
@ -723,8 +733,8 @@ function contact_block() {
|
|||||||
|
|
||||||
$r = q("SELECT abook.*, xchan.* FROM abook left join xchan on abook.abook_xchan = xchan.xchan_hash WHERE abook_channel = %d AND not ( abook_flags & %d) and not (xchan_flags & %d ) ORDER BY RAND() LIMIT %d",
|
$r = q("SELECT abook.*, xchan.* FROM abook left join xchan on abook.abook_xchan = xchan.xchan_hash WHERE abook_channel = %d AND not ( abook_flags & %d) and not (xchan_flags & %d ) ORDER BY RAND() LIMIT %d",
|
||||||
intval($a->profile['uid']),
|
intval($a->profile['uid']),
|
||||||
intval(ABOOK_FLAG_HIDDEN|ABOOK_FLAG_PENDING|ABOOK_FLAG_SELF),
|
intval($abook_flags),
|
||||||
intval(XCHAN_FLAGS_HIDDEN|XCHAN_FLAGS_ORPHAN|XCHAN_FLAGS_DELETED),
|
intval($xchan_flags),
|
||||||
intval($shown)
|
intval($shown)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
20
index.php
20
index.php
@ -55,6 +55,17 @@ if(! $a->install) {
|
|||||||
call_hooks('init_1');
|
call_hooks('init_1');
|
||||||
|
|
||||||
load_translation_table($a->language);
|
load_translation_table($a->language);
|
||||||
|
// Force the cookie to be secure (https only) if this site is SSL enabled. Must be done before session_start().
|
||||||
|
|
||||||
|
if(intval($a->config['system']['ssl_cookie_protection'])) {
|
||||||
|
$arr = session_get_cookie_params();
|
||||||
|
session_set_cookie_params(
|
||||||
|
((isset($arr['lifetime'])) ? $arr['lifetime'] : 60*5),
|
||||||
|
((isset($arr['path'])) ? $arr['path'] : '/'),
|
||||||
|
((isset($arr['domain'])) ? $arr['domain'] : $a->get_hostname()),
|
||||||
|
((isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on') ? true : false),
|
||||||
|
((isset($arr['httponly'])) ? $arr['httponly'] : true));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// load translations but do not check plugins as we have no database
|
// load translations but do not check plugins as we have no database
|
||||||
@ -73,15 +84,6 @@ else {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Force the cookie to be secure (https only) if this site is SSL enabled. Must be done before session_start().
|
|
||||||
|
|
||||||
$arr = session_get_cookie_params();
|
|
||||||
session_set_cookie_params(
|
|
||||||
((isset($arr['lifetime'])) ? $arr['lifetime'] : 60*5),
|
|
||||||
((isset($arr['path'])) ? $arr['path'] : '/'),
|
|
||||||
((isset($arr['domain'])) ? $arr['domain'] : $a->get_hostname()),
|
|
||||||
((isset($_SERVER['HTTPS'])) ? true : false),
|
|
||||||
((isset($arr['httponly'])) ? $arr['httponly'] : true));
|
|
||||||
session_start();
|
session_start();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -158,8 +158,17 @@ function events_content(&$a) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$plaintext = true;
|
||||||
|
|
||||||
|
if(feature_enabled(local_user(),'richtext'))
|
||||||
|
$plaintext = false;
|
||||||
|
|
||||||
|
|
||||||
$htpl = get_markup_template('event_head.tpl');
|
$htpl = get_markup_template('event_head.tpl');
|
||||||
$a->page['htmlhead'] .= replace_macros($htpl,array('$baseurl' => $a->get_baseurl()));
|
$a->page['htmlhead'] .= replace_macros($htpl,array(
|
||||||
|
'$baseurl' => $a->get_baseurl(),
|
||||||
|
'$editselect' => (($plaintext) ? 'none' : 'textareas')
|
||||||
|
));
|
||||||
|
|
||||||
$o ="";
|
$o ="";
|
||||||
// tabs
|
// tabs
|
||||||
@ -400,7 +409,6 @@ function events_content(&$a) {
|
|||||||
if($orig_event['event_xchan'])
|
if($orig_event['event_xchan'])
|
||||||
$sh_checked .= ' disabled="disabled" ';
|
$sh_checked .= ' disabled="disabled" ';
|
||||||
|
|
||||||
$tpl = get_markup_template('event_form.tpl');
|
|
||||||
|
|
||||||
$sdt = ((x($orig_event)) ? $orig_event['start'] : 'now');
|
$sdt = ((x($orig_event)) ? $orig_event['start'] : 'now');
|
||||||
$fdt = ((x($orig_event)) ? $orig_event['finish'] : 'now');
|
$fdt = ((x($orig_event)) ? $orig_event['finish'] : 'now');
|
||||||
@ -439,6 +447,7 @@ function events_content(&$a) {
|
|||||||
'deny_gid' => $channel['channel_deny_gid']
|
'deny_gid' => $channel['channel_deny_gid']
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$tpl = get_markup_template('event_form.tpl');
|
||||||
|
|
||||||
|
|
||||||
$o .= replace_macros($tpl,array(
|
$o .= replace_macros($tpl,array(
|
||||||
|
@ -28,11 +28,19 @@ function viewconnections_content(&$a) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$is_owner = ((local_user() && local_user() == $a->profile['uid']) ? true : false);
|
||||||
|
|
||||||
|
$abook_flags = ABOOK_FLAG_PENDING|ABOOK_FLAG_SELF;
|
||||||
|
$xchan_flags = XCHAN_FLAGS_ORPHAN|XCHAN_FLAGS_DELETED;
|
||||||
|
if(! $is_owner) {
|
||||||
|
$abook_flags = $abook_flags | ABOOK_FLAGS_HIDDEN;
|
||||||
|
$xchan_flags = $xchan_flags | XCHAN_FLAGS_HIDDEN;
|
||||||
|
}
|
||||||
|
|
||||||
$r = q("SELECT count(*) as total FROM abook left join xchan on abook_xchan = xchan_hash where abook_channel = %d and not (abook_flags & %d ) and not ( xchan_flags & %d ) ",
|
$r = q("SELECT count(*) as total FROM abook left join xchan on abook_xchan = xchan_hash where abook_channel = %d and not (abook_flags & %d ) and not ( xchan_flags & %d ) ",
|
||||||
intval($a->profile['uid']),
|
intval($a->profile['uid']),
|
||||||
intval(ABOOK_FLAG_HIDDEN|ABOOK_FLAG_PENDING|ABOOK_FLAG_SELF),
|
intval($abook_flags),
|
||||||
intval(XCHAN_FLAGS_HIDDEN|XCHAN_FLAGS_ORPHAN|XCHAN_FLAGS_DELETED)
|
intval($xchan_flags)
|
||||||
);
|
);
|
||||||
if($r) {
|
if($r) {
|
||||||
$a->set_pager_total($r[0]['total']);
|
$a->set_pager_total($r[0]['total']);
|
||||||
@ -40,8 +48,8 @@ function viewconnections_content(&$a) {
|
|||||||
|
|
||||||
$r = q("SELECT * FROM abook left join xchan on abook_xchan = xchan_hash where abook_channel = %d and not ( abook_flags & %d ) and not ( xchan_flags & %d ) order by xchan_name LIMIT %d , %d ",
|
$r = q("SELECT * FROM abook left join xchan on abook_xchan = xchan_hash where abook_channel = %d and not ( abook_flags & %d ) and not ( xchan_flags & %d ) order by xchan_name LIMIT %d , %d ",
|
||||||
intval($a->profile['uid']),
|
intval($a->profile['uid']),
|
||||||
intval(ABOOK_FLAG_HIDDEN|ABOOK_FLAG_PENDING|ABOOK_FLAG_SELF),
|
intval($abook_flags),
|
||||||
intval(XCHAN_FLAGS_HIDDEN|XCHAN_FLAGS_ORPHAN|XCHAN_FLAGS_DELETED),
|
intval($xchan_flags),
|
||||||
intval($a->pager['start']),
|
intval($a->pager['start']),
|
||||||
intval($a->pager['itemspage'])
|
intval($a->pager['itemspage'])
|
||||||
);
|
);
|
||||||
|
@ -1 +1 @@
|
|||||||
2014-05-07.668
|
2014-05-08.669
|
||||||
|
@ -57,7 +57,7 @@
|
|||||||
/* conversation */
|
/* conversation */
|
||||||
|
|
||||||
.thread-wrapper.toplevel_item {
|
.thread-wrapper.toplevel_item {
|
||||||
margin-bottom: 10px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* conv_item */
|
/* conv_item */
|
||||||
|
3
view/css/mod_events.css
Normal file
3
view/css/mod_events.css
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#event-desc-textarea, #event-location-textarea {
|
||||||
|
width: 400px;
|
||||||
|
}
|
9514
view/it/messages.po
9514
view/it/messages.po
File diff suppressed because it is too large
Load Diff
2315
view/it/strings.php
2315
view/it/strings.php
File diff suppressed because it is too large
Load Diff
@ -1911,18 +1911,24 @@ img.mail-list-sender-photo {
|
|||||||
.wall-item-content-wrapper:hover {
|
.wall-item-content-wrapper:hover {
|
||||||
z-index:99;
|
z-index:99;
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
|
.comment .wall-item-body {
|
||||||
|
padding-left: 42px;
|
||||||
|
}
|
||||||
|
*/
|
||||||
.hide-comments-outer,
|
.hide-comments-outer,
|
||||||
.wall-item-content-wrapper.comment {
|
.wall-item-content-wrapper.comment {
|
||||||
background-color: $comment_item_colour;
|
background-color: $comment_item_colour;
|
||||||
border-left: 3px solid $comment_border_colour;
|
border-left: 1px solid $comment_border_colour;
|
||||||
|
border-right: 1px solid $comment_border_colour;
|
||||||
|
border-bottom: 1px solid $comment_border_colour;
|
||||||
border-radius: 0px;
|
border-radius: 0px;
|
||||||
padding: 7px 10px 7px 7px;
|
padding: 7px 10px 7px 7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wall-item-comment-wrapper {
|
.wall-item-comment-wrapper {
|
||||||
background-color: $comment_item_colour;
|
background-color: $comment_item_colour;
|
||||||
border-left: 3px solid $item_colour;
|
border: 1px solid $item_colour;
|
||||||
border-radius: 0px;
|
border-radius: 0px;
|
||||||
border-bottom-right-radius: $radiuspx;
|
border-bottom-right-radius: $radiuspx;
|
||||||
border-bottom-left-radius: $radiuspx;
|
border-bottom-left-radius: $radiuspx;
|
||||||
@ -2329,6 +2335,7 @@ blockquote {
|
|||||||
|
|
||||||
.thread-wrapper.toplevel_item {
|
.thread-wrapper.toplevel_item {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
border:1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wall-item-photo {
|
.wall-item-photo {
|
||||||
|
@ -13,14 +13,18 @@
|
|||||||
<div id="event-start-text">{{$s_text}}</div>
|
<div id="event-start-text">{{$s_text}}</div>
|
||||||
{{$s_dsel}} {{$s_tsel}}
|
{{$s_dsel}} {{$s_tsel}}
|
||||||
|
|
||||||
|
<div class="clear"></div><br />
|
||||||
|
|
||||||
|
<input type="checkbox" name="nofinish" value="1" id="event-nofinish-checkbox" {{$n_checked}} /> <div id="event-nofinish-text">{{$n_text}}</div>
|
||||||
|
|
||||||
|
<div id="event-nofinish-break"></div>
|
||||||
|
|
||||||
|
|
||||||
<div id="event-finish-text">{{$f_text}}</div>
|
<div id="event-finish-text">{{$f_text}}</div>
|
||||||
{{$f_dsel}} {{$f_tsel}}
|
{{$f_dsel}} {{$f_tsel}}
|
||||||
|
|
||||||
<div id="event-datetime-break"></div>
|
<div id="event-datetime-break"></div>
|
||||||
|
|
||||||
<input type="checkbox" name="nofinish" value="1" id="event-nofinish-checkbox" {{$n_checked}} /> <div id="event-nofinish-text">{{$n_text}}</div>
|
|
||||||
|
|
||||||
<div id="event-nofinish-break"></div>
|
|
||||||
|
|
||||||
<input type="checkbox" name="adjust" value="1" id="event-adjust-checkbox" {{$a_checked}} /> <div id="event-adjust-text">{{$a_text}}</div>
|
<input type="checkbox" name="adjust" value="1" id="event-adjust-checkbox" {{$a_checked}} /> <div id="event-adjust-text">{{$a_text}}</div>
|
||||||
|
|
||||||
@ -36,6 +40,7 @@
|
|||||||
|
|
||||||
<div id="event-location-text">{{$l_text}}</div>
|
<div id="event-location-text">{{$l_text}}</div>
|
||||||
<textarea id="event-location-textarea" name="location">{{$l_orig}}</textarea>
|
<textarea id="event-location-textarea" name="location">{{$l_orig}}</textarea>
|
||||||
|
<br />
|
||||||
|
|
||||||
<input type="checkbox" name="share" value="1" id="event-share-checkbox" {{$sh_checked}} /> <div id="event-share-text">{{$sh_text}}</div>
|
<input type="checkbox" name="share" value="1" id="event-share-checkbox" {{$sh_checked}} /> <div id="event-share-text">{{$sh_text}}</div>
|
||||||
<div id="event-share-break"></div>
|
<div id="event-share-break"></div>
|
||||||
|
@ -73,7 +73,7 @@
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
{{if $editselect != 'none'}}
|
||||||
<script language="javascript" type="text/javascript"
|
<script language="javascript" type="text/javascript"
|
||||||
src="{{$baseurl}}/library/tinymce/jscripts/tiny_mce/tiny_mce_src.js"></script>
|
src="{{$baseurl}}/library/tinymce/jscripts/tiny_mce/tiny_mce_src.js"></script>
|
||||||
<script language="javascript" type="text/javascript">
|
<script language="javascript" type="text/javascript">
|
||||||
@ -81,7 +81,7 @@
|
|||||||
|
|
||||||
tinyMCE.init({
|
tinyMCE.init({
|
||||||
theme : "advanced",
|
theme : "advanced",
|
||||||
mode : "textareas",
|
mode : "{{$editselect}}",
|
||||||
plugins : "bbcode,paste",
|
plugins : "bbcode,paste",
|
||||||
theme_advanced_buttons1 : "bold,italic,underline,undo,redo,link,unlink,image,forecolor,formatselect,code",
|
theme_advanced_buttons1 : "bold,italic,underline,undo,redo,link,unlink,image,forecolor,formatselect,code",
|
||||||
theme_advanced_buttons2 : "",
|
theme_advanced_buttons2 : "",
|
||||||
@ -107,6 +107,7 @@
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user