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;
}
}

?>

<ac:macro ac:name="unmigrated-inline-wiki-markup"><ac:plain-text-body><![CDATA[

Zend Framework:
zone: Missing {zone-data:component-name}
Component Proposal

Proposed Component Name
zone: Missing {zone-data:component-name}
Developer Notes zone: Missing {zone-data:component-name} " class="external-link">http://framework.zend.com/wiki/display/ZFDEV/
zone: Missing {zone-data:component-name}
Proposers
zone: Missing {zone-data:proposer-list}
Zend Liaison
zone: Missing {zone-data:liaison}
Revision
zone: Missing {zone-data:revision}

(wiki revision: 22)

Table of Contents

1. Overview

zone: Missing {zone-data:overview}

2. References

zone: Missing {zone-data:references}

3. Component Requirements, Constraints, and Acceptance Criteria

zone: Missing {zone-data:requirements}

4. Dependencies on Other Framework Components

zone: Missing {zone-data:dependencies}

5. Theory of Operation

zone: Missing {zone-data:operation}

6. Milestones / Tasks

zone: Missing {zone-data:milestones}

7. Class Index

zone: Missing {zone-data:class-list}

8. Use Cases

zone: Missing {zone-data:use-cases}

9. Class Skeletons

zone: Missing {zone-data:skeletons}
]]></ac:plain-text-body></ac:macro>

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.