]> git.mxchange.org Git - friendica.git/blobdiff - mod/parse_url.php
The Diaspora class is now productive
[friendica.git] / mod / parse_url.php
index 481cb89361b6f70be3b104891f923af8661499ef..a1ca5a3db5e2e1c831d35bada4b52a3502b54183 100644 (file)
@@ -1,14 +1,14 @@
 <?php
-/**
+/** 
  * @file mod/parse_url.php
- *
+ * 
  * @todo https://developers.google.com/+/plugins/snippet/
- *
+ * 
  * @verbatim
  * <meta itemprop="name" content="Toller Titel">
  * <meta itemprop="description" content="Eine tolle Beschreibung">
  * <meta itemprop="image" content="http://maple.libertreeproject.org/images/tree-icon.png">
- *
+ * 
  * <body itemscope itemtype="http://schema.org/Product">
  *   <h1 itemprop="name">Shiny Trinket</h1>
  *   <img itemprop="image" src="{image-url}" />
@@ -27,7 +27,6 @@ if(!function_exists('deletenode')) {
        }
 }
 
-if(! function_exists('completeurl')) {
 function completeurl($url, $scheme) {
        $urlarr = parse_url($url);
 
@@ -54,9 +53,7 @@ function completeurl($url, $scheme) {
 
        return($complete);
 }
-}
 
-if(! function_exists('parseurl_getsiteinfo_cached')) {
 function parseurl_getsiteinfo_cached($url, $no_guessing = false, $do_oembed = true) {
 
        if ($url == "")
@@ -80,9 +77,7 @@ function parseurl_getsiteinfo_cached($url, $no_guessing = false, $do_oembed = tr
 
        return $data;
 }
-}
 
-if(! function_exists('parseurl_getsiteinfo')) {
 function parseurl_getsiteinfo($url, $no_guessing = false, $do_oembed = true, $count = 1) {
        require_once("include/network.php");
        require_once("include/Photo.php");
@@ -405,15 +400,11 @@ function parseurl_getsiteinfo($url, $no_guessing = false, $do_oembed = true, $co
 
        return($siteinfo);
 }
-}
 
-if(! function_exists('arr_add_hashes')) {
 function arr_add_hashes(&$item,$k) {
        $item = '#' . $item;
 }
-}
 
-if(! function_exists('parse_url_content')) {
 function parse_url_content(&$a) {
 
        $text = null;
@@ -567,5 +558,4 @@ function parse_url_content(&$a) {
 
        killme();
 }
-}
 ?>