diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2016-02-01 20:18:59 +0100 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2016-02-01 20:18:59 +0100 |
| commit | 7b4425b096fa8c18d0db9fd9b1ae96d63ee8af55 (patch) | |
| tree | 2dc5d998a1fd0238592b451ff88b5c4cec064f9b /src/functions.php | |
| download | phinde-7b4425b096fa8c18d0db9fd9b1ae96d63ee8af55.tar.gz phinde-7b4425b096fa8c18d0db9fd9b1ae96d63ee8af55.zip | |
first kinda working version
Diffstat (limited to 'src/functions.php')
| -rw-r--r-- | src/functions.php | 11 |
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; +} + +?> |
