This is a sample plagin, tracks user(s) login and Store IP address, timestamp, username & user ID in database and also send email to admin. Gets IP address in better a way. You can enable or disable sending email(enabled by default). You can enable Or disable tracking supper user's login(disabled by default). *This plugin has been created for Joomla version 2.5 but also supporte in version 3.0 or higher (tested on 2.5.11 & 3.2.2).