This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| echo " On Light Gray: On Black:" | |
| echo -e "\033[47m\033[1;37m White \033[0m\ | |
| 1;37m \ | |
| \033[40m\033[1;37m White \033[0m" | |
| echo -e "\033[47m\033[37m Light Gray \033[0m\ | |
| 37m \ | |
| \033[40m\033[37m Light Gray \033[0m" | |
| echo -e "\033[47m\033[1;30m Gray \033[0m\ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $ip = (isset($_SERVER['REMOTE_ADDR'])) ? $_SERVER['REMOTE_ADDR'] : ''; | |
| $allowed_ips = array( | |
| '127.0.0.1', | |
| '192.168.11.*', | |
| ); | |
| $validate = false; | |
| foreach ($allowed_ips as $allowed_ip) { | |
| if (preg_match('/^' . $allowed_ip . '$/', $ip)) { |
NewerOlder