mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-11-03 20:45:58 +01:00 
			
		
		
		
	added unique visitor count to admin dashboard
This commit is contained in:
		@@ -30,8 +30,7 @@ var path = require('path'),
 | 
			
		||||
					user.updateLastOnlineTime(req.user.uid);
 | 
			
		||||
				}
 | 
			
		||||
 | 
			
		||||
				// Log IP address
 | 
			
		||||
				db.sortedSetAdd('ip:recent', +new Date(), req.ip || 'Unknown');
 | 
			
		||||
				db.sortedSetAdd('ip:recent', Date.now(), req.ip || 'Unknown');
 | 
			
		||||
 | 
			
		||||
				next();
 | 
			
		||||
			});
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user