OEmbed removed test files from plugin (they are not needed)
This commit is contained in:
parent
14206d95f1
commit
460f74ce1f
|
@ -1,24 +0,0 @@
|
|||
<?
|
||||
/*
|
||||
* PHP OEmbed provider/proxy - for details, visit
|
||||
*
|
||||
* http://code.google.com/p/php-oembed/
|
||||
*
|
||||
* Copyright(C) by Adam Nemeth. Licensed under New BSD license.
|
||||
*
|
||||
* I would love to hear every feedback on aadaam at googlesmailservice
|
||||
*
|
||||
*/
|
||||
require_once(dirname(__FILE__) . '/../' . "config.php");
|
||||
$xml = simplexml_load_file(dirname(__FILE__) . '/../' . "providers.xml");
|
||||
foreach($xml->provider as $provider){
|
||||
// $x = new OEmbedProvider("http://*.flickr.com/*","http://www.flickr.com/services/oembed/");
|
||||
$x = new OEmbedProvider($provider->url,$provider->endpoint);
|
||||
echo $x->url.":\n";
|
||||
if ($x->match("http://www.flickr.com/photos/bees/2341623661/")){
|
||||
print_r($x->provide("http://www.flickr.com/photos/bees/2341623661/","object"));
|
||||
}
|
||||
echo " ".$x->getUrlRegExp()."\n";
|
||||
echo " ".$x->getJsonEndpoint()."\n";
|
||||
echo " ".$x->getXmlEndpoint()."\n";
|
||||
}
|
|
@ -1,24 +0,0 @@
|
|||
<?
|
||||
/** Testfile für die Provider Konfiguration
|
||||
* @author: Grischa Brockhaus
|
||||
*/
|
||||
|
||||
require_once(dirname(__FILE__) . '/../' . "config.php");
|
||||
|
||||
function test($manager, $url) {
|
||||
$obj=$manager->provide($url,"object");
|
||||
if (!empty($obj)) print_r($obj);
|
||||
}
|
||||
|
||||
$manager = ProviderManager::getInstance();
|
||||
// Youtube long link
|
||||
//test($manager,"http://www.youtube.com/watch?v=8UVNT4wvIGY");
|
||||
// Youtube Kurze URL
|
||||
//test($manager,"http://youtu.be/8UVNT4wvIGY");
|
||||
// Twitter
|
||||
//test($manager,"https://twitter.com/#!/tagesschau/status/146562892454572032");
|
||||
// flickr
|
||||
test($manager,"http://www.flickr.com/photos/gbrockhaus/2052855443/in/set-72157603214268227/");
|
||||
// vimeo
|
||||
//test($manager,"http://vimeo.com/33510073");
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
<?php
|
||||
$xml = simplexml_load_file(dirname(__FILE__) . '/../' . "providers.xml");
|
||||
|
||||
foreach($xml->provider as $provider){
|
||||
echo $provider->url;
|
||||
echo $provider->endpoint;
|
||||
}
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
<?
|
||||
require_once(dirname(__FILE__) . '/../' . "config.php");
|
||||
|
||||
function testYoutubeProvider() {
|
||||
$x = new YouTubeProvider('');
|
||||
$obj = $x->provide("","object");
|
||||
//print_r($obj);
|
||||
print_r($obj->html);
|
||||
}
|
||||
|
||||
testYoutubeProvider();
|
||||
|
Loading…
Reference in a new issue