* @see ParseUrl::getSiteinfo() for more information about scraping embeddable content
*/
-use \Friendica\ParseUrl;
+use Friendica\App;
+use Friendica\ParseUrl;
require_once("include/items.php");
$redirects = 0;
// Fetch the header of the URL
$result = z_fetch_url($url, false, $redirects, array("novalidate" => true, "nobody" => true));
- if ($result["success"]) {
+ if($result["success"]) {
// Convert the header fields into an array
$hdrs = array();
$h = explode("\n", $result["header"]);
$type = $hdrs["Content-Type"];
}
if ($type) {
- if (stripos($type, "image/") !== false) {
+ if(stripos($type, "image/") !== false) {
echo $br . "[img]" . $url . "[/img]" . $br;
killme();
}