diff options
Diffstat (limited to 'src/phinde/Helper.php')
| -rw-r--r-- | src/phinde/Helper.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/phinde/Helper.php b/src/phinde/Helper.php new file mode 100644 index 0000000..4863961 --- /dev/null +++ b/src/phinde/Helper.php @@ -0,0 +1,15 @@ +<?php +namespace phinde; + +class Helper +{ + public static function isUrlAllowed($url) + { + $urlDomain = parse_url($url, PHP_URL_HOST); + if (!in_array($urlDomain, $GLOBALS['phinde']['domains'])) { + return false; + } + return true; + } +} +?> |
