1: | <?php |
2: | |
3: | /** |
4: | * Class protector_precommon_bwlimit_errorlog |
5: | */ |
6: | class Protector_precommon_bwlimit_errorlog extends ProtectorFilterAbstract |
7: | { |
8: | public function execute() |
9: | { |
10: | header('HTTP/1.0 503 Service unavailable'); |
11: | header('Retry-After: 600'); |
12: | |
13: | echo _MD_PROTECTOR_BANDWIDTHLIMITED; |
14: | if (isset($_SERVER['REMOTE_ADDR'])) { |
15: | error_log('Protector: bwlimit ' . $_SERVER['REMOTE_ADDR'], 0); |
16: | } |
17: | |
18: | exit; |
19: | } |
20: | } |
21: |