From 56720b89a7fe28ee143dc9f36b4cc29a5ad63acb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Fri, 24 May 2019 22:20:12 -0500 Subject: refactoring extractor and validator URL --- tools/init.php | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'tools/init.php') diff --git a/tools/init.php b/tools/init.php index c23d5c9..f3c39ce 100644 --- a/tools/init.php +++ b/tools/init.php @@ -49,13 +49,3 @@ function bytes($a) { } return number_format($a,($c ? 2 : 0),",",".")." ".$unim[$c]; } - -// Check, if there is not content into URL return 'false' -function breakdrm($url) { - @$headers = get_headers($url); - if (preg_match('/^HTTP\/\d\.\d\s+(403)/', $headers[0])){ - return false; - } else { - return true; - } -} -- cgit v1.2.3