6 public static function isUrlAllowed($url)
8 $urlDomain = parse_url($url, PHP_URL_HOST);
9 if (!in_array($urlDomain, $GLOBALS['phinde']['domains'])) {
15 public static function noSchema($url)
18 array('http://', 'https://'),
24 public static function addSchema($url)
26 if (substr($url, 0, 7) == 'http://'
27 || substr($url, 0, 8) == 'https://'
31 return 'http://' . $url;