Wouldn't be very difficult to do, but if each site has its own databse then its likly to be very costly time wise. Basicly you need to create a new instance of the database class and then run the query thats in index.php on each database to gather the total number of users online and then add them up.