define ( 'NETWORK_GPLUS', 'goog'); // Google+
define ( 'NETWORK_PUMPIO', 'pump'); // pump.io
define ( 'NETWORK_TWITTER', 'twit'); // Twitter
+define ( 'NETWORK_DIASPORA2', 'dspc'); // Diaspora connector
define ( 'NETWORK_PHANTOM', 'unkn'); // Place holder
NETWORK_GPLUS => (-12),
NETWORK_PUMPIO => (-13),
NETWORK_TWITTER => (-14),
+ NETWORK_DIASPORA2 => (-15),
NETWORK_PHANTOM => (-127),
);
$sparkle = " sparkle";
$url = $a->get_baseurl() . '/redir/' . $rr['cid'];
}
-
+
$rr['link'] = $url;
$rr['title'] = $rr['name'];
$rr['date'] = day_translate(datetime_convert('UTC', $a->timezone, $rr['start'], $rr['adjust'] ? $bd_format : $bd_short)) . (($today) ? ' ' . t('[today]') : '');
$o .= '</div>';
$o .= '</div>' . "\r\n";
$o .= '<div id="acl-wrapper-end"></div>' . "\r\n";*/
-
+
$tpl = get_markup_template("acl_selector.tpl");
$o = replace_macros($tpl, array(
'$showall'=> t("Visible to everybody"),
"aclautomention"=>(feature_enabled($user['uid'],"aclautomention")?"true":"false")
),
));
-
-
+
+
return $o;
}
if (($duration > $a->config["system"]["db_loglimit"])) {
$duration = round($duration, 3);
$backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
- @file_put_contents($a->config["system"]["db_log"], $duration."\t".
+ @file_put_contents($a->config["system"]["db_log"], datetime_convert()."\t".$duration."\t".
basename($backtrace[1]["file"])."\t".
$backtrace[1]["line"]."\t".$backtrace[2]["function"]."\t".
substr($sql, 0, 2000)."\n", FILE_APPEND);
$message = html_entity_decode($message, ENT_QUOTES, 'UTF-8');
- if (!$compact) {
+ if (!$compact AND ($message != "")) {
$counter = 1;
foreach ($urls as $id=>$url)
if (strpos($message, $url) === false)
// Check OStatus conversations
check_conversations();
+ // To-Do: Regenerate usage statistics
+ // q("ANALYZE TABLE `item`");
+
// once daily run birthday_updates and then expire in background
$d1 = get_config('system','last_expire_day');