| Conditions | 3 |
| Paths | 3 |
| Total Lines | 5 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | protected static function telegramVerify(string $ip = null) {
|
||
| 13 | if (settings::$telegram_verify) {
|
||
| 14 | if (!tools::isTelegram($ip ?? $_SERVER['REMOTE_ADDR'] ?? '')) {
|
||
| 15 | logger::write('not authorized access denied. IP : '. $ip ?? $_SERVER['REMOTE_ADDR'] ?? 'unknown','error');
|
||
| 16 | BPT::exit(); |
||
| 17 | } |
||
| 46 | } |