| Recommend this page to a friend! |
| Classes of Lee Johnstone | > | Ads and content limit | > | Download .tar.gz .zip | > | > | > | |||||
|
| ||||||||||||||||||||||||||||||||||||||||||||
| Detailed description | ||
| This class can be used to keeps track of visitors to show limited number of ads or content a day. It checks the current user IP address in a MySQL database table to determine whether the user has already visited the site. The class stores the current date and time in the database table if the user has not accessed the site today. Otherwise the class increments the number of accesses of the user. It returns a condition to determine whether an ad can be displayed if the number of accesses did not exceed a given limit. Now also blocks via ip list and has much more accurate timing for release of the block. |
| Groups | ||
| Databases | Database management, accessing and searching | View top rated classes | |
| User Management | User records, authentication and session handling | View top rated classes | |
| Content management | Components and tools to manage content | View top rated classes |
| Freshmeat project | Applications | Related links | ||||||||
No application links were specified for this class.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||