aboutsummaryrefslogtreecommitdiffstats
path: root/tools/init.php
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2019-05-24 22:20:12 -0500
committerJesús <heckyel@hyperbola.info>2019-05-24 22:20:12 -0500
commit56720b89a7fe28ee143dc9f36b4cc29a5ad63acb (patch)
treeafc7d665354debcd814147e6e88b2434b024d327 /tools/init.php
parentc3b9696db75054ac02a9da4447836215e19b6232 (diff)
downloadytlibre-56720b89a7fe28ee143dc9f36b4cc29a5ad63acb.tar.lz
ytlibre-56720b89a7fe28ee143dc9f36b4cc29a5ad63acb.tar.xz
ytlibre-56720b89a7fe28ee143dc9f36b4cc29a5ad63acb.zip
refactoring extractor and validator URL
Diffstat (limited to 'tools/init.php')
-rw-r--r--tools/init.php10
1 files changed, 0 insertions, 10 deletions
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;
- }
-}