aboutsummaryrefslogtreecommitdiffstats
path: root/tools/init.php
diff options
context:
space:
mode:
Diffstat (limited to 'tools/init.php')
-rw-r--r--tools/init.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/init.php b/tools/init.php
index f3c39ce..c23d5c9 100644
--- a/tools/init.php
+++ b/tools/init.php
@@ -49,3 +49,13 @@ 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;
+ }
+}