mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-20 00:30:50 +08:00
attendance retroactive increment total_days
This commit is contained in:
@@ -2553,12 +2553,12 @@ else {
|
||||
//// check every 60 seconds //////////////////
|
||||
$activeseed = $Cache->get_value('user_'.$CURUSER["id"].'_active_seed_count');
|
||||
if ($activeseed == ""){
|
||||
$activeseed = get_row_count("peers","WHERE userid=" . sqlesc($CURUSER["id"]) . " AND seeder='yes'");
|
||||
$activeseed = count_peer(sprintf("userid = %s and seeder = 'yes'", $CURUSER['id']));
|
||||
$Cache->cache_value('user_'.$CURUSER["id"].'_active_seed_count', $activeseed, 60);
|
||||
}
|
||||
$activeleech = $Cache->get_value('user_'.$CURUSER["id"].'_active_leech_count');
|
||||
if ($activeleech == ""){
|
||||
$activeleech = get_row_count("peers","WHERE userid=" . sqlesc($CURUSER["id"]) . " AND seeder='no'");
|
||||
$activeleech = count_peer(sprintf("userid = %s and seeder = 'no'", $CURUSER['id']));
|
||||
$Cache->cache_value('user_'.$CURUSER["id"].'_active_leech_count', $activeleech, 60);
|
||||
}
|
||||
$unread = $Cache->get_value('user_'.$CURUSER["id"].'_unread_message_count');
|
||||
|
||||
Reference in New Issue
Block a user