return;
$last = get_config('nodeinfo','last_calucation');
-
+/*
if($last) {
// Calculate every 24 hours
$next = $last + (24 * 60 * 60);
return;
}
}
- logger("cron_start");
+*/ logger("cron_start");
$users = qu("SELECT `user`.`uid`, `user`.`login_date`, `contact`.`last-item`
FROM `user`
set_config('nodeinfo','active_users_monthly', $active_users_monthly);
}
+ $posts = qu("SELECT COUNT(*) AS local_posts FROM `thread` WHERE `thread`.`wall`");
+/*
$posts = qu("SELECT COUNT(*) AS `local_posts` FROM `item`
INNER JOIN `contact` ON `contact`.`id` = `item`.`contact-id`
WHERE `contact`.`self` and `item`.`id` = `item`.`parent` AND left(body, 6) != '[share' AND `item`.`network` IN ('%s', '%s', '%s')",
dbesc(NETWORK_OSTATUS), dbesc(NETWORK_DIASPORA), dbesc(NETWORK_DFRN));
-
+*/
if (!is_array($posts))
$local_posts = -1;
else