| Recommend this page to a friend! |
| All class groups | > | All authors | > | Packages of Murat Atay (2) | > | Mission progress status | > | Reputation |
|
||||||||||||||||||||||||||||||
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z |
| ||||
| This class can be used to protect a site against an abusive number of accesses. It determines the IP address of each user accessing the site PHP scripts and keeps the access counts stored in distinct files per each IP address. When the number of accesses from an IP address exceeds a configurable limit, the class exits the current script and the user from the banned address is not served. The class is able to determine the current user IP address from environments and also attempts to determine the IP address of users behind proxies. The class may automatically deny access to users when it is not possible to determine their IP addresses. |
| ||||
| This class implements a Web based version of the classic minesweeper game. The class generates the game area layout of mines that is stored in bidimensional array. That array should be stored in a session variable so it can be reloaded after each game play turn. The class can process each game play turn given the coordinates of next position of the board that the player wants to move. At any moment the class can automatically check if the player has won by determining if all positions without mines were discovered. |
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z |