aboutsummaryrefslogtreecommitdiff
path: root/src/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/functions.php')
-rw-r--r--src/functions.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/functions.php b/src/functions.php
new file mode 100644
index 0000000..fd91360
--- /dev/null
+++ b/src/functions.php
@@ -0,0 +1,11 @@
+<?php
+function isUrlAllowed($url)
+{
+ $urlDomain = parse_url($url, PHP_URL_HOST);
+ if (!in_array($urlDomain, $GLOBALS['phinde']['domains'])) {
+ return false;
+ }
+ return true;
+}
+
+?>