Merge remote-tracking branch 'origin/master'

This commit is contained in:
tommy tomson 2012-03-06 08:28:21 +01:00
commit eaaf030c18
12 changed files with 707 additions and 536 deletions

View file

@ -9,7 +9,7 @@ require_once('include/nav.php');
require_once('include/cache.php'); require_once('include/cache.php');
define ( 'FRIENDICA_PLATFORM', 'Friendica'); define ( 'FRIENDICA_PLATFORM', 'Friendica');
define ( 'FRIENDICA_VERSION', '2.3.1271' ); define ( 'FRIENDICA_VERSION', '2.3.1272' );
define ( 'DFRN_PROTOCOL_VERSION', '2.22' ); define ( 'DFRN_PROTOCOL_VERSION', '2.22' );
define ( 'DB_UPDATE_VERSION', 1131 ); define ( 'DB_UPDATE_VERSION', 1131 );

View file

@ -108,14 +108,18 @@ function can_write_wall(&$a,$owner) {
if(remote_user()) { if(remote_user()) {
// user remembered decision and avoid a DB lookup for each and every display item // use remembered decision and avoid a DB lookup for each and every display item
// DO NOT use this function if there are going to be multiple owners // DO NOT use this function if there are going to be multiple owners
// We have a contact-id for an authenticated remote user, this block determines if the contact
// belongs to this page owner, and has the necessary permissions to post content
if($verified === 2) if($verified === 2)
return true; return true;
elseif($verified === 1) elseif($verified === 1)
return false; return false;
else { else {
$r = q("SELECT `contact`.*, `user`.`page-flags` FROM `contact` LEFT JOIN `user` on `user`.`uid` = `contact`.`uid` $r = q("SELECT `contact`.*, `user`.`page-flags` FROM `contact` LEFT JOIN `user` on `user`.`uid` = `contact`.`uid`
WHERE `contact`.`uid` = %d AND `contact`.`id` = %d AND `contact`.`blocked` = 0 AND `contact`.`pending` = 0 WHERE `contact`.`uid` = %d AND `contact`.`id` = %d AND `contact`.`blocked` = 0 AND `contact`.`pending` = 0
AND `user`.`blockwall` = 0 AND `readonly` = 0 AND ( `contact`.`rel` IN ( %d , %d ) OR `user`.`page-flags` = %d ) LIMIT 1", AND `user`.`blockwall` = 0 AND `readonly` = 0 AND ( `contact`.`rel` IN ( %d , %d ) OR `user`.`page-flags` = %d ) LIMIT 1",
@ -125,6 +129,7 @@ function can_write_wall(&$a,$owner) {
intval(CONTACT_IS_FRIEND), intval(CONTACT_IS_FRIEND),
intval(PAGE_COMMUNITY) intval(PAGE_COMMUNITY)
); );
if(count($r)) { if(count($r)) {
$verified = 2; $verified = 2;
return true; return true;

View file

@ -145,9 +145,10 @@ function admin_page_summary(&$a) {
Array( t('Automatic Friend Account'), 0) Array( t('Automatic Friend Account'), 0)
); );
$users=0; $users=0;
foreach ($r as $u){ $accounts[$u['page-flags']][1] = $u['count']; $users+=$u['count']; } foreach ($r as $u){ $accounts[$u['page-flags']][1] = $u['count']; $users+= $u['count']; }
logger('accounts: ' . print_r($accounts,true));
$r = q("SELECT COUNT(id) as `count` FROM `register`"); $r = q("SELECT COUNT(id) as `count` FROM `register`");
$pending = $r[0]['count']; $pending = $r[0]['count'];
@ -574,6 +575,8 @@ function admin_page_plugins(&$a){
'$status' => $status, '$status' => $status,
'$action' => $action, '$action' => $action,
'$info' => get_plugin_info($plugin), '$info' => get_plugin_info($plugin),
'$str_author' => t('Author: '),
'$str_maintainer' => t('Maintainer: '),
'$admin_form' => $admin_form, '$admin_form' => $admin_form,
'$function' => 'plugins', '$function' => 'plugins',
@ -747,7 +750,8 @@ function admin_page_themes(&$a){
'$info' => get_theme_info($theme), '$info' => get_theme_info($theme),
'$function' => 'themes', '$function' => 'themes',
'$admin_form' => $admin_form, '$admin_form' => $admin_form,
'$str_author' => t('Author: '),
'$str_maintainer' => t('Maintainer: '),
'$readme' => $readme '$readme' => $readme
)); ));
} }

File diff suppressed because it is too large Load diff

View file

@ -4,13 +4,18 @@
<p><span class='toggleplugin icon $status'></span> $info.name - $info.version : <a href="$baseurl/admin/$function/$plugin/?a=t">$action</a></p> <p><span class='toggleplugin icon $status'></span> $info.name - $info.version : <a href="$baseurl/admin/$function/$plugin/?a=t">$action</a></p>
<p>$info.description</p> <p>$info.description</p>
<p class="author"> <p class="author">$str_author
{{ for $info.author as $a }} {{ for $info.author as $a }}
{{ if $a.link }}<a href="$a.link">$a.name</a>{{ else }}$a.name{{ endif }}, {{ if $a.link }}<a href="$a.link">$a.name</a>{{ else }}$a.name{{ endif }},
{{ endfor }} {{ endfor }}
</p> </p>
<p class="maintainer">$str_maintainer
{{ for $info.maintainer as $a }}
{{ if $a.link }}<a href="$a.link">$a.name</a>{{ else }}$a.name{{ endif }},
{{ endfor }}
</p>
{{ if $admin_form }} {{ if $admin_form }}
<h3>$settings</h3> <h3>$settings</h3>
<form method="post" action="$baseurl/admin/$function/$plugin/"> <form method="post" action="$baseurl/admin/$function/$plugin/">

View file

@ -13,7 +13,7 @@
{{ for $accounts as $p }} {{ for $accounts as $p }}
<dl> <dl>
<dt>$p.0</dt> <dt>$p.0</dt>
<dd>$p.1</dd> <dd>{{ if $p.1 }}$p.1{{ else }}0{{ endif }}</dd>
</dl> </dl>
{{ endfor }} {{ endfor }}

View file

@ -24,7 +24,8 @@ nav #banner #logo-text a { color: #ffffff; }
.wall-item-content-wrapper { border: 1px solid #444444; } .wall-item-content-wrapper { border: 1px solid #444444; }
.wall-item-tools { background-color: #444444; background-image: none;} .wall-item-tools { background-color: #444444; background-image: none;}
.comment-edit-wrapper{ background-color: #333333; } .comment-wwedit-wrapper{ background-color: #333333; }
.comment-edit-preview{ color: #000000; }
.wall-item-content-wrapper.comment { background-color: #444444; border: 0px;} .wall-item-content-wrapper.comment { background-color: #444444; border: 0px;}
.photo-top-album-name{ background-color: #333333; } .photo-top-album-name{ background-color: #333333; }
.photo-album-image-wrapper .caption { background-color: rgba(51, 51, 51, 0.8); color: #FFFFFF; } .photo-album-image-wrapper .caption { background-color: rgba(51, 51, 51, 0.8); color: #FFFFFF; }

View file

@ -4,6 +4,8 @@
* Name: Darkzero * Name: Darkzero
* Version: 1.0 * Version: 1.0
* Author: Fabio Communi <fabrix.xm@gmail.com> * Author: Fabio Communi <fabrix.xm@gmail.com>
* Maintainer: Fabio Communi <fabrix.xm@gmail.com>
* Maintainer: Mike Macgirvin <mike@macgirvin.com>
*/ */
$a->theme_info = array( $a->theme_info = array(

View file

@ -1703,11 +1703,11 @@ div[id$="wrapper"] br {
} }
#settings-nickname-desc { #settings-nickname-desc {
background-color:#DDEFFF; background-color: #def;
-webkit-border-radius:5px; -webkit-border-radius: 5px;
-moz-border-radius:5px; -moz-border-radius: 5px;
border-radius:5px; border-radius: 5px;
padding:5px; padding: 5px;
} }
#register-form div, #register-form div,
@ -2116,7 +2116,7 @@ div[id$="wrapper"] br {
margin: 0 10px 0.2em 0; margin: 0 10px 0.2em 0;
border: 1px #999 solid; border: 1px #999 solid;
padding: 5px; padding: 5px;
background: #f2eedf; background: #def;
vertical-align: middle; vertical-align: middle;
} }
.field input { .field input {
@ -2132,7 +2132,7 @@ div[id$="wrapper"] br {
} }
.field_help { .field_help {
display: block; display: block;
margin-left: 0px; margin-left: 297px;
color: #666; color: #666;
} }
.field .onoff { .field .onoff {
@ -2142,32 +2142,26 @@ div[id$="wrapper"] br {
.field .onoff a { .field .onoff a {
display: block; display: block;
border: 1px solid #666; border: 1px solid #666;
background: url("../../../images/onoff.jpg") no-repeat; padding: 3px 6px 4px 10px;
padding: 4px 2px 2px;
height: 16px; height: 16px;
text-decoration: none; text-decoration: none;
} }
.field .onoff .off {
border-color: #666;
padding-left: 40px;
background: #ccc left center;
color: #666;
text-align:right;
}
.field .onoff .on { .field .onoff .on {
border-color:#204a87; background: url("../../../images/onoff.jpg") no-repeat 42px 1px #def;
padding-right:40px; color: #333;
background-position:right center; text-align: left;
background-color:#3465A4; }
color:#fff; .field .onoff .off {
text-align:left; background: url("../../../images/onoff.jpg") no-repeat 2px 1px #ccc;
color: #333;
text-align: right;
} }
.hidden { .hidden {
display:none !important; display:none !important;
} }
.field.radio .field_help { .field.radio .field_help {
margin-left:0; margin-left: 0;
} }

View file

@ -3036,4 +3036,4 @@ ul.menu-popup {
.notify-seen { .notify-seen {
background: #DDDDDD; background: #DDDDDD;
} }

View file

@ -58,6 +58,9 @@
</div> </div>
</nav> </nav>
<ul id="nav-notifications-template" style="display:none;" rel="template"> <ul id="nav-notifications-template" style="display:none;" rel="template">
<li><a href="{0}">{2} <span class="notif-when">{3}</span></a></li> <li class="{4}"><a href="{0}"><img src="{1}" height="24" width="24" alt="" />{2} <span class="notif-when">{3}</span></a></li>
</ul> </ul>

View file

@ -55,7 +55,7 @@ p {
} }
label { label {
font-variant:small-caps; /* font-variant:small-caps; */
} }
li { li {
@ -455,7 +455,7 @@ aside a{
.vcard { .vcard {
font-size: 1em; font-size: 1em;
font-variant:small-caps; /* font-variant:small-caps; */
} }
.vcard dd { .vcard dd {
@ -488,7 +488,7 @@ aside h4 { font-size: 1.3em; }
color: #626262; color: #626262;
text-align: center; text-align: center;
font-weight: bold; font-weight: bold;
font-variant:small-caps; /* font-variant:small-caps; */
font-size: 1.1em; font-size: 1.1em;
} }
.allcontact-link a { .allcontact-link a {
@ -1041,7 +1041,7 @@ profile-jot-banner-wrapper {
font-size: 0.9em; font-size: 0.9em;
margin: 4px 0px 0px 140px; margin: 4px 0px 0px 140px;
padding-left: 10px; padding-left: 10px;
font-variant:small-caps; /* font-variant:small-caps; */
} }
.wall-item-author a { .wall-item-author a {
@ -1063,7 +1063,7 @@ profile-jot-banner-wrapper {
margin-left: 25px; margin-left: 25px;
font-size: 0.9em; font-size: 0.9em;
display: block; display: block;
font-variant:small-caps; /* font-variant:small-caps; */
color: #898989; color: #898989;
} }
@ -1072,7 +1072,7 @@ profile-jot-banner-wrapper {
.wall-item-conv a{ .wall-item-conv a{
font-size: 0.9em; font-size: 0.9em;
color: #898989; color: #898989;
font-variant:small-caps; /* font-variant:small-caps; */
} }
.wallwall .wwto { .wallwall .wwto {
@ -1157,7 +1157,7 @@ profile-jot-banner-wrapper {
font-size: 0.9em; font-size: 0.9em;
color: #898989; color: #898989;
margin-left: 60px; margin-left: 60px;
font-variant:small-caps; /* font-variant:small-caps; */
} }
.wall-item-outside-wrapper.comment { margin-left: 70px; } .wall-item-outside-wrapper.comment { margin-left: 70px; }
@ -1189,7 +1189,7 @@ profile-jot-banner-wrapper {
.icollapse-wrapper { .icollapse-wrapper {
font-size: 0.9em; font-size: 0.9em;
color: #898989; color: #898989;
font-variant:small-caps; /* font-variant:small-caps; */
} }
.comment-wwedit-wrapper, .comment-wwedit-wrapper,
@ -1266,7 +1266,7 @@ profile-jot-banner-wrapper {
margin-bottom: 0px; margin-bottom: 0px;
padding-bottom: 5px; padding-bottom: 5px;
font-size: 18px; font-size: 18px;
font-variant:small-caps; /* font-variant:small-caps; */
} }
div[id$="wrapper"] { height: 100%;} div[id$="wrapper"] { height: 100%;}
@ -1298,7 +1298,7 @@ div[id$="wrapper"] br { clear: left; }
.profile-listing-name { .profile-listing-name {
font-size: 1em; font-size: 1em;
font-variant: small-caps; /* font-variant: small-caps;*/
} }
.profile-listing-name a { .profile-listing-name a {
color: #898989; color: #898989;
@ -1342,7 +1342,7 @@ div[id$="wrapper"] br { clear: left; }
.profile-match-name a{ .profile-match-name a{
color: #999; color: #999;
font-variant: small-caps; /* font-variant: small-caps; */
font-size: 1em; font-size: 1em;
} }
@ -1462,7 +1462,7 @@ div[id$="wrapper"] br { clear: left; }
padding: 0px 5px; padding: 0px 5px;
font-weight: bold; font-weight: bold;
font-stretch:semi-expanded; font-stretch:semi-expanded;
font-variant:small-caps; /* font-variant:small-caps; */
} }
.photo-top-album-name a{ .photo-top-album-name a{
@ -1476,7 +1476,7 @@ div[id$="wrapper"] br { clear: left; }
text-align: center; text-align: center;
color: #6e6e6e; color: #6e6e6e;
font-size: 0.9em; font-size: 0.9em;
font-variant: small-caps; /* font-variant: small-caps; */
} }
#photo-photo{ #photo-photo{
@ -1487,7 +1487,7 @@ div[id$="wrapper"] br { clear: left; }
#photo-caption { #photo-caption {
margin-top: 10px; margin-top: 10px;
color: #6E6E6E; color: #6E6E6E;
font-variant:small-caps; /* font-variant:small-caps; */
font-size: 1.1em; font-size: 1.1em;
} }
@ -1712,18 +1712,18 @@ input#photo_edit_form {
} }
#prvmail-subject-label { #prvmail-subject-label {
font-variant:small-caps; /* font-variant:small-caps; */
} }
#prvmail-to { #prvmail-to {
padding-left: 10px; padding-left: 10px;
} }
#prvmail-to-label { #prvmail-to-label {
font-variant:small-caps; /* font-variant:small-caps; */
} }
#prvmail-message-label { #prvmail-message-label {
font-variant:small-caps; /* font-variant:small-caps; */
font-size: 1em; font-size: 1em;
} }
@ -1769,7 +1769,7 @@ margin-left: 0px;
.mail-list-sender-name { .mail-list-sender-name {
font-size: 1.1em; font-size: 1.1em;
display: inline; display: inline;
font-variant:small-caps; /* font-variant:small-caps; */
} }
.mail-list-date { .mail-list-date {
@ -1779,7 +1779,7 @@ margin-left: 0px;
font-size: 0.9em; font-size: 0.9em;
padding-left: 10px; padding-left: 10px;
font-stretch:ultra-condensed; font-stretch:ultra-condensed;
font-variant:small-caps; /* font-variant:small-caps; */
} }
.mail-list-subject { .mail-list-subject {
@ -1808,8 +1808,8 @@ margin-left: 0px;
height: 64px; height: 64px;
} }
.mail-conv-sender-name { float: left; font-variant:small-caps; font-style: bold; } .mail-conv-sender-name { float: left; font-style: bold; }
.mail-conv-date { float: right; font-variant:small-caps; } .mail-conv-date { float: right; }
.mail-conv-subject { clear: right; font-weight: bold; font-size: 1.2em } .mail-conv-subject { clear: right; font-weight: bold; font-size: 1.2em }
.mail-conv-body { .mail-conv-body {
clear: both; clear: both;
@ -1903,7 +1903,7 @@ margin-left: 0px;
font: #999; font: #999;
font-size: 12px; font-size: 12px;
text-align:center; text-align:center;
font-variant:small-caps; /* font-variant:small-caps; */
font-weight: bold; font-weight: bold;
margin-top:5px; margin-top:5px;
} }
@ -1920,7 +1920,7 @@ margin-left: 0px;
background-color: #ffffff; background-color: #ffffff;
} }
#contact-edit-banner-name { font-size: 1.5em; margin-left: 30px; font-variant: small-caps; } #contact-edit-banner-name { font-size: 1.5em; margin-left: 30px; }
#contact-edit-update-now { #contact-edit-update-now {
@ -2003,7 +2003,7 @@ margin-left: 0px;
} }
.view-contact-name { .view-contact-name {
font-variant: small-caps; /* font-variant: small-caps; */
} }
#div.side-link { #div.side-link {
@ -2540,7 +2540,7 @@ margin-left: 0px;
margin-bottom: 2px; margin-bottom: 2px;
margin-top: 2px; margin-top: 2px;
font-size: 0.9em; font-size: 0.9em;
font-variant: small-caps; /* font-variant: small-caps; */
text-align: left; text-align: left;
} }
@ -2606,7 +2606,7 @@ margin-left: 0px;
.event-list-date { .event-list-date {
color: #626262; color: #626262;
margin-bottom: 10px; margin-bottom: 10px;
font-variant:small-caps; /* font-variant:small-caps; */
font-stretch:condensed; font-stretch:condensed;
} }
@ -2642,7 +2642,7 @@ margin-left: 0px;
color: #ffffff; color: #ffffff;
font-weight: bold; font-weight: bold;
text-align:center; text-align:center;
font-variant:small-caps; /* font-variant:small-caps; */
-moz-box-shadow: 5px 2px 8px #959494; -moz-box-shadow: 5px 2px 8px #959494;
-webkit-box-shadow: 5px 2px 8px #959494; -webkit-box-shadow: 5px 2px 8px #959494;
box-shadow: 5px 2px 8px #959494; box-shadow: 5px 2px 8px #959494;
@ -2720,13 +2720,13 @@ tr {
.directory-details { .directory-details {
font-size: 0.9em; font-size: 0.9em;
font-variant: small-caps; /* font-variant: small-caps; */
width: 160px; width: 160px;
} }
.directory-name { .directory-name {
font-size: 1em; font-size: 1em;
font-variant: small-caps; /* font-variant: small-caps; */
width: 150px; width: 150px;
} }
@ -3277,3 +3277,6 @@ ul.menu-popup {
opacity: 1.0; opacity: 1.0;
filter:alpha(opacity=100); filter:alpha(opacity=100);
} }
.notify-seen {
background: #000;
}