Skip to end of metadata
Go to start of metadata
You are viewing an old version of this page. View the current version. Compare with Current  |   View Page History

<?php

/**

  • Zend Framework
    *
  • LICENSE
    *
  • This source file is subject to the new BSD license that is bundled
  • with this package in the file LICENSE.txt.
  • It is also available through the world-wide-webat this URL:
  • http://framework.zend.com/license/new-bsd
  • If you did not receive a copy of the license and are unable to
  • obtain it through the world-wide-web, please send an email
  • to license@zend.com so we can send you a copy immediately.
    *
  • @category Zend
  • @package Zend_Service_ZendTube
  • @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
  • @license http://framework.zend.com/license/new-bsd New BSD License
  • @author Angelos Staboulis
    */
    class Zend_Service_ZendTube {

/*YouTube Video Player*/
public function YouTubePlayer($left,$top,$width,$height,$url)
{
$urlvideo=null;
$createurl=null;
if(!empty($url)){
$first=strpos($url,'=');
$last=strpos($url,'&');
if($last!=false)

Unknown macro: { $createurl=substr($url,$first+1,$last-($first+1)); }

else

Unknown macro: { $createurl=substr($url,$first+1,strlen($url)-($first+1)); }

$src="http://www.youtube.com/v/".$createurl;
$style="'position:fixed;margin-left:$left"."px".";margin-top:$top"."px;"."margin-right:$width"."px;"."margin-bottom:$height"."px;"."'";
$urlvideo="<object>".
"<embed style=$style src=$src type=application/x-shockwave-flash></embed>".
"</object>";
}
return $urlvideo;
}
/*Metacafe Video Player*/
public function MetaCafePlayer($left,$top,$width,$height,$url){
$urlvideo=null;
$createurl=null;
if(!empty($url))

Unknown macro: { $newurl=strstr($url,"watch"); $first=strpos($newurl,"/"); $last=strrpos($newurl,"/"); $createurl=substr($newurl,$first+1,$last-($first+1)).".swf"; $src="http}

return $urlvideo;
}
/*DailyMotion Video Player*/
public function DailyMotionPlayer($left,$top,$width,$height,$url)
{
$urlvideo=null;
$createurl=null;
if(!emtpy($url)){
$first=strrpos($url,'/');
$last=strpos($url,'#');
if($last!=false)

Unknown macro: { $createurl=substr($url,$first+1,$last-($first+1)); }

else

Unknown macro: { $createurl=substr($url,$first+1,strlen($url)-($first+1)); }

$src="http://www.dailymotion.com/swf/".$createurl;
$style="'position:fixed;margin-left:$left"."px".";margin-top:$top"."px;"."margin-right:$width"."px;"."margin-bottom:$height"."px;"."'";
$urlvideo="<object>".
"<embed style=$style src=$src type=application/x-shockwave-flash></embed>".
"</object>";
}
return $urlvideo;
}

/*Vimeo Video Player*/

public function VimeoPlayer($left,$top,$width,$height,$url){
$urlvideo=null;
$createurl=null;
if(!empty($url))

Unknown macro: { $last=strrpos($url,"/"); $createurl=substr($url,$last+1,strlen($url)-($last+1)); $src="http}

return $urlvideo;
}
}

?>

<?php

/**

  • Zend Framework
    *
  • LICENSE
    *
  • This source file is subject to the new BSD license that is bundled
  • with this package in the file LICENSE.txt.
  • It is also available through the world-wide-webat this URL:
  • http://framework.zend.com/license/new-bsd
  • If you did not receive a copy of the license and are unable to
  • obtain it through the world-wide-web, please send an email
  • to license@zend.com so we can send you a copy immediately.
    *
  • @category Zend
  • @package Zend_Service_ZendTube
  • @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
  • @license http://framework.zend.com/license/new-bsd New BSD License
  • @author Angelos Staboulis
    */
    class Zend_Service_ZendTube {

/*YouTube Video Player*/
public function YouTubePlayer($left,$top,$width,$height,$url)
{
$urlvideo=null;
$createurl=null;
if(!empty($url)){
$first=strpos($url,'=');
$last=strpos($url,'&');
if($last!=false)

else

Unknown macro: { $createurl=substr($url,$first+1,strlen($url)-($first+1)); }

$src="http://www.youtube.com/v/".$createurl;
$style="'position:fixed;margin-left:$left"."px".";margin-top:$top"."px;"."margin-right:$width"."px;"."margin-bottom:$height"."px;"."'";
$urlvideo="<object>".
"<embed style=$style src=$src type=application/x-shockwave-flash></embed>".
"</object>";
}
return $urlvideo;
}
/*Metacafe Video Player*/
public function MetaCafePlayer($left,$top,$width,$height,$url){
$urlvideo=null;
$createurl=null;
if(!empty($url))

Unknown macro: { $newurl=strstr($url,"watch"); $first=strpos($newurl,"/"); $last=strrpos($newurl,"/"); $createurl=substr($newurl,$first+1,$last-($first+1)).".swf"; $src="http}

return $urlvideo;
}
/*DailyMotion Video Player*/
public function DailyMotionPlayer($left,$top,$width,$height,$url)
{
$urlvideo=null;
$createurl=null;
if(!emtpy($url)){
$first=strrpos($url,'/');
$last=strpos($url,'#');
if($last!=false)

Unknown macro: { $createurl=substr($url,$first+1,$last-($first+1)); }

else

Unknown macro: { $createurl=substr($url,$first+1,strlen($url)-($first+1)); }

$src="http://www.dailymotion.com/swf/".$createurl;
$style="'position:fixed;margin-left:$left"."px".";margin-top:$top"."px;"."margin-right:$width"."px;"."margin-bottom:$height"."px;"."'";
$urlvideo="<object>".
"<embed style=$style src=$src type=application/x-shockwave-flash></embed>".
"</object>";
}
return $urlvideo;
}

/*Vimeo Video Player*/

public function VimeoPlayer($left,$top,$width,$height,$url){
$urlvideo=null;
$createurl=null;
if(!empty($url))

Unknown macro: { $last=strrpos($url,"/"); $createurl=substr($url,$last+1,strlen($url)-($last+1)); $src="http}

return $urlvideo;
}
}

?>

zone-template-instance: Missing zone template reference
Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.