Your IP : 216.73.216.240
<?php
/**
* Nom du plugin: "ElioproAllVideos Professionel" pour Joomla!1.6 & Joomla!1.7
* Auteur: Félix Dragan Dimitric
* Date: 06 Novembre 2011
* Site Web: www.eliopro.fr - www.eliopro.com
* Copyright: (C) 2011 - 2012 www.eliopro.fr - www.eliopro.com tous droits réservés.
* License: GNU/GPL
* Version du Plugin: 1.4
*/
// Code de sécurité
defined( '_JEXEC' ) or die( 'Restricted access' );
// Importation des routines du plugin
jimport( 'joomla.plugin.plugin');
// Definition de la classe du plugin
class plgContentElioproAllVideos extends JPlugin
{
var $plg_name = "elioproallvideos";
function __construct(&$subject, $config)
{
parent::__construct($subject, $config);
}
// Definition de la fonction et de la préparation des contenus que le plugin devra executer
public function onContentPrepare($context, &$article, &$params)
{
// Chargement des fichier languages
JPlugin::loadLanguage('plg_content_'.$this->plg_name, JPATH_ADMINISTRATOR);
// Section tout publics, définition de la syntaxe des tags
$regex_abrutis = "#{eliobrutis}(.*?){/eliobrutis}#s";
$regex_megavideo = "#{megaelio}(.*?){/megaelio}#s";
$regex_wat = "#{eliowat}(.*?){/eliowat}#s";
$regex_youtube = "#{elioyoutube}(.*?){/elioyoutube}#s";
$regex_dailymotion = "#{eliodailymotion}(.*?){/eliodailymotion}#s";
$regex_vimeo = "#{eliovimeo}(.*?){/eliovimeo}#s";
$regex_metacafe = "#{eliometacafe}(.*?){/eliometacafe}#s";
$regex_myspace = "#{eliomyspace}(.*?){/eliomyspace}#s";
$regex_arteseven = "#{elioarteseven}(.*?){/elioarteseven}#s";
$regex_allocine = "#{elioallocine}(.*?){/elioallocine}#s";
$regex_liveleak = "#{elioliveleak}(.*?){/elioliveleak}#s";
$regex_wideo = "#{eliowideo}(.*?){/eliowideo}#s";
$regex_yahoo = "#{elioyahoo}(.*?){/elioyahoo}#s";
$regex_gamaniak = "#{eliogamaniak}(.*?){/eliogamaniak}#s";
$regex_matvpratique = "#{eliomatvpratique}(.*?){/eliomatvpratique}#s";
$regex_cnn = "#{eliocnn}(.*?){/eliocnn}#s";
$regex_grindtv = "#{eliogrindtv}(.*?){/eliogrindtv}#s";
$regex_stupidvideos = "#{eliostupidvideos}(.*?){/eliostupidvideos}#s";
$regex_sevenload = "#{eliosevenload}(.*?){/eliosevenload}#s";
$regex_myvideo = "#{eliomyvideo}(.*?){/eliomyvideo}#s";
$regex_aniboom = "#{elioaniboom}(.*?){/elioaniboom}#s";
$regex_gametrailers = "#{eliogametrailers}(.*?){/eliogametrailers}#s";
$regex_koreus = "#{eliokoreus}(.*?){/eliokoreus}#s";
$regex_videobb = "#{eliovideobb}(.*?){/eliovideobb}#s";
$regex_videozer = "#{eliovideozer}(.*?){/eliovideozer}#s";
$regex_canalplus = "#{eliocanalplus}(.*?){/eliocanalplus}#s";
$regex_mixturevideo = "#{eliomixturevideo}(.*?){/eliomixturevideo}#s";
// Routine de remplacement des tags prédéfinit par le player des sites web pour tout publics
$article->text = preg_replace_callback($regex_abrutis, array(&$this,'abrutis'), $article->text);
$article->text = preg_replace_callback($regex_megavideo, array(&$this,'megavideo'), $article->text);
$article->text = preg_replace_callback($regex_wat, array(&$this,'wat'), $article->text);
$article->text = preg_replace_callback($regex_youtube, array(&$this,'youtube'), $article->text);
$article->text = preg_replace_callback($regex_dailymotion, array(&$this,'dailymotion'), $article->text);
$article->text = preg_replace_callback($regex_vimeo, array(&$this,'vimeo'), $article->text);
$article->text = preg_replace_callback($regex_metacafe, array(&$this,'metacafe'), $article->text);
$article->text = preg_replace_callback($regex_myspace, array(&$this,'myspace'), $article->text);
$article->text = preg_replace_callback($regex_arteseven, array(&$this,'arteseven'), $article->text);
$article->text = preg_replace_callback($regex_allocine, array(&$this,'allocine'), $article->text);
$article->text = preg_replace_callback($regex_liveleak, array(&$this,'liveleak'), $article->text);
$article->text = preg_replace_callback($regex_wideo, array(&$this,'wideo'), $article->text);
$article->text = preg_replace_callback($regex_yahoo, array(&$this,'yahoo'), $article->text);
$article->text = preg_replace_callback($regex_gamaniak, array(&$this,'gamaniak'), $article->text);
$article->text = preg_replace_callback($regex_matvpratique, array(&$this,'matvpratique'), $article->text);
$article->text = preg_replace_callback($regex_cnn, array(&$this,'cnn'), $article->text);
$article->text = preg_replace_callback($regex_grindtv, array(&$this,'grindtv'), $article->text);
$article->text = preg_replace_callback($regex_stupidvideos, array(&$this,'stupidvideos'), $article->text);
$article->text = preg_replace_callback($regex_sevenload, array(&$this,'sevenload'), $article->text);
$article->text = preg_replace_callback($regex_myvideo, array(&$this,'myvideo'), $article->text);
$article->text = preg_replace_callback($regex_aniboom, array(&$this,'aniboom'), $article->text);
$article->text = preg_replace_callback($regex_gametrailers, array(&$this,'gametrailers'), $article->text);
$article->text = preg_replace_callback($regex_koreus, array(&$this,'koreus'), $article->text);
$article->text = preg_replace_callback($regex_videobb, array(&$this,'videobb'), $article->text);
$article->text = preg_replace_callback($regex_videozer, array(&$this,'videozer'), $article->text);
$article->text = preg_replace_callback($regex_canalplus, array(&$this,'canalplus'), $article->text);
$article->text = preg_replace_callback($regex_mixturevideo, array(&$this,'mixturevideo'), $article->text);
// Section Adultes, définition de la syntaxe des tags
$regex_redtube = "#{elioredtube}(.*?){/elioredtube}#s";
$regex_xnxx = "#{elioxnxx}(.*?){/elioxnxx}#s";
$regex_madthumbs = "#{eliomadthumbs}(.*?){/eliomadthumbs}#s";
$regex_pornhub = "#{eliopornhub}(.*?){/eliopornhub}#s";
$regex_xvideos = "#{elioxvideos}(.*?){/elioxvideos}#s";
$regex_tnaflix = "#{eliotnaflix}(.*?){/eliotnaflix}#s";
$regex_keezmovies = "#{eliokeezmovies}(.*?){/eliokeezmovies}#s";
$regex_xxxymovies = "#{elioxxxymovies}(.*?){/elioxxxymovies}#s";
$regex_pornzapp = "#{eliopornzapp}(.*?){/eliopornzapp}#s";
$regex_hardsextube = "#{eliohardsextube}(.*?){/eliohardsextube}#s";
$regex_yobt = "#{elioyobt}(.*?){/elioyobt}#s";
$regex_pornrabbit = "#{eliopornrabbit}(.*?){/eliopornrabbit}#s";
$regex_xhamster = "#{elioxhamster}(.*?){/elioxhamster}#s";
$regex_mofosex = "#{eliomofosex}(.*?){/eliomofosex}#s";
// Routine de remplacement des tags prédéfinit par le player des sites web pour adultes
$article->text = preg_replace_callback($regex_redtube, array(&$this,'redtube'), $article->text);
$article->text = preg_replace_callback($regex_xnxx, array(&$this,'xnxx'), $article->text);
$article->text = preg_replace_callback($regex_madthumbs, array(&$this,'madthumbs'), $article->text);
$article->text = preg_replace_callback($regex_pornhub, array(&$this,'pornhub'), $article->text);
$article->text = preg_replace_callback($regex_xvideos, array(&$this,'xvideos'), $article->text);
$article->text = preg_replace_callback($regex_tnaflix, array(&$this,'tnaflix'), $article->text);
$article->text = preg_replace_callback($regex_keezmovies, array(&$this,'keezmovies'), $article->text);
$article->text = preg_replace_callback($regex_xxxymovies, array(&$this,'xxxymovies'), $article->text);
$article->text = preg_replace_callback($regex_pornzapp, array(&$this,'pornzapp'), $article->text);
$article->text = preg_replace_callback($regex_hardsextube, array(&$this,'hardsextube'), $article->text);
$article->text = preg_replace_callback($regex_yobt, array(&$this,'yobt'), $article->text);
$article->text = preg_replace_callback($regex_pornrabbit, array(&$this,'pornrabbit'), $article->text);
$article->text = preg_replace_callback($regex_xhamster, array(&$this,'xhamster'), $article->text);
$article->text = preg_replace_callback($regex_mofosex, array(&$this,'mofosex'), $article->text);
return true;
}
//*******************************
//* PLAYERS VIDEOS *
//*******************************
// L'ID video est le chiffre de l'URL principal
function abrutis (&$matches)
{
$id= $matches[1];
$width = $this->params->get('width');
$height = $this->params->get('height');
// Paramètres propres et variables au lecteur MegaVideo
$html = '<embed src="http://www.abrutis.com/flash/player.swf"
width="'.$width.'"
height="'.$height.'"
allowscriptaccess="always"
allowfullscreen="true"
flashvars="config=http://www.abrutis.com/config-'.$id.'.xml"/>' ;
return $html;
}
// L'ID video est le chiffre de l'URL principal
function megavideo (&$matches)
{
$width = $this->params->get('width');
$height = $this->params->get('height');
$id= $matches[1];
$html = '<object width="'.$width.'" height="'.$height.'">
<param name="movie" value="http://www.megavideo.com/v/'.$id.'">
</param><param name="allowFullScreen" value="true">
</param><embed src="http://www.megavideo.com/v/'.$id.'"
type="application/x-shockwave-flash"
allowfullscreen="true" width="'.$width.'"
height="'.$height.'">
</embed></object>' ;
return $html;
}
//L'ID video est le long chiffre du lecteur exportable
function wat (&$matches)
{
$id= $matches[1];
$width = $this->params->get('width');
$height = $this->params->get('height');
$html = '
<object width="'.$width.'"
height="'.$height.'"
id="'.$id.'">
<param name="movie"
value="http://www.wat.tv/swf2/'.$id.'">
</param><param name="allowFullScreen" value="true">
</param><param name="allowScriptAccess" value="always">
</param><embed src="http://www.wat.tv/swf2/'.$id.'"
type="application/x-shockwave-flash"
allowscriptaccess="always"
allowfullscreen="true"
width="'.$width.'"
height="'.$height.'">
</embed></object>' ;
return $html;
}
// L'ID video est le chiffre de l'URL principal
function youtube (&$matches)
{
$id= $matches[1];
$width = $this->params->get('width');
$height = $this->params->get('height');
$html = '<iframe title="YouTube video player"
width="'.$width.'"
height="'.$height.'"
src="http://www.youtube.com/embed/'.$id.'"
frameborder="0"
allowfullscreen>
</iframe>' ;
return $html;
}
// L'ID video est la denière partie du lien URL apres le slash / du mot vidéo
function dailymotion (&$matches)
{
$id= $matches[1];
$width = $this->params->get('width');
$height = $this->params->get('height');
$html = '<object
width="'.$width.'"
height="'.$height.'">
<param name="movie"
value="http://www.dailymotion.com/swf/video/'.$id.'"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowScriptAccess" value="always">
</param><param name="wmode" value="transparent"></param>
<embed type="application/x-shockwave-flash"
src="http://www.dailymotion.com/swf/video/'.$id.'"
width="'.$width.'"
height="'.$height.'"
wmode="transparent"
allowfullscreen="true"
allowscriptaccess="always"></embed>
</object>' ;
return $html;
}
// L'ID video est le chiffre de fin d'URL normal
function vimeo (&$matches)
{
$id= $matches[1];
$width = $this->params->get('width');
$height = $this->params->get('height');
$html = '<iframe
src="http://player.vimeo.com/video/'.$id.'"
width="'.$width.'"
height="'.$height.'"
frameborder="0">
</iframe>' ;
return $html;
}
// L'ID video est tout le lien URL à partir du slash / qui suit le mot watch ATTENTION de ne pas prendre d'URL des plays liste finnissant à la fin par ?source=playlist
function metacafe (&$matches)
{
$id= $matches[1];
$width = $this->params->get('width');
$height = $this->params->get('height');
$html = '<embed flashVars="playerVars=autoPlay=no"
src="http://www.metacafe.com/fplayer/'.$id.'.swf"
width="'.$width.'" height="'.$height.'"
wmode="transparent"
allowFullScreen="true"
allowScriptAccess="always"
name="Metacafe_'.$id.'"
pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>' ;
return $html;
}
//L'ID vidéo à insérer dans le TAG est le chiffre de l'URL du navigateur
function myspace (&$matches)
{
$id= $matches[1];
$width = $this->params->get('width');
$height = $this->params->get('height');
$html = '<object
width="'.$width.'px"
height="'.$height.'px" >
<param name="allowFullScreen" value="true"/>
<param name="wmode" value="transparent"/>
<param name="movie" value="http://mediaservices.myspace.com/services/media/embed.aspx/m='.$id.',t=1,mt=video"/>
<embed src="http://mediaservices.myspace.com/services/media/embed.aspx/m='.$id.',t=1,mt=video"
width="'.$width.'"
height="'.$height.'"
allowFullScreen="true"
type="application/x-shockwave-flash" wmode="transparent"></embed></object>' ;
return $html;
}
// L'ID video est le nombre de l'URL du navigateur.
function arteseven (&$matches)
{
$id= $matches[1];
$width = $this->params->get('width');
$height = $this->params->get('height');
$html = '<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0"
id="playerArte" allowScriptAccess="always" width="'.$width.'" height="'.$height.'" ><param name="allowFullScreen"
value="true" /><param name="allowScriptAccess" value="always" /><param name="quality" value="high"><param
name="movie" value="http://videos.arte.tv/videoplayer.swf?lang=fr&mode=prod&videorefFileUrl=http%3A%2F%2Fvideos%2Earte%2Etv%2Ffr%2Fdo%5Fdelegate%2Fvideos%2Fla%5Fvie%5Fet%5Frien%5Fd%5Fautre%2D'.$id.'%2Cview%2CasPlayerXml%2Exml&admin=false&autoPlay=true&localizedPathUrl=http%3A%2F%2Fvideos%2Earte%2Etv%2Fcae%2Fstatic%2Fflash%2Fplayer%2F&configFileUrl=http%3A%2F%2Fvideos%2Earte%2Etv%2Fcae%2Fstatic%2Fflash%2Fplayer%2Fconfig%2Exml&videoId='.$id.'&embed=true&autoPlay=false">
<embed src="http://videos.arte.tv/videoplayer.swf?lang=fr&mode=prod&videorefFileUrl=http%3A%2F%2Fvideos%2Earte%2Etv%2Ffr%2Fdo%5Fdelegate%2Fvideos%2Fla%5Fvie%5Fet%5Frien%5Fd%5Fautre%2D'.$id.'%2Cview%2CasPlayerXml%2Exml&admin=false&autoPlay=true&localizedPathUrl=http%3A%2F%2Fvideos%2Earte%2Etv%2Fcae%2Fstatic%2Fflash%2Fplayer%2F&configFileUrl=http%3A%2F%2Fvideos%2Earte%2Etv%2Fcae%2Fstatic%2Fflash%2Fplayer%2Fconfig%2Exml&videoId='.$id.'&embed=true&autoPlay=false"
width="'.$width.'"
height="'.$height.'"
allowFullScreen="true"
name="playerArte" quality="high" allowScriptAccess="always"
pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
</object>' ;
return $html;
}
// L'ID video est le 1er nombres du lien URL. (Pas le dernier !)
function allocine (&$matches)
{
$id= $matches[1];
$width = $this->params->get('width');
$height = $this->params->get('height');
$html = '<div id="allocine_blog" style="width:'.$width.'px; height:'.$height.'px">
<object height="'.$height.'" width="'.$width.'">
<param name="movie" value="http://www.allocine.fr/blogvision/'.$id.'"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowScriptAccess" value="always"></param>
<embed src="http://www.allocine.fr/blogvision/'.$id.'" type="application/x-shockwave-flash"
width="'.$width.'"
height="'.$height.'"
allowFullScreen="true"
allowScriptAccess="always">
</embed></object></div>' ;
return $html;
}
// l'ID video est le chiffre de l'URL principal.
function liveleak (&$matches)
{
$id= $matches[1];
$width = $this->params->get('width');
$height = $this->params->get('height');
$html = '<object
width="'.$width.'"
height="'.$height.'">
<param name="movie" value="http://www.liveleak.com/e/'.$id.'"></param>
<param name="wmode" value="transparent"></param><param name="allowscriptaccess" value="always"></param>
<embed src="http://www.liveleak.com/e/'.$id.'"
type="application/x-shockwave-flash" wmode="transparent"
allowscriptaccess="always"
width="'.$width.'"
height="'.$height.'">
</embed></object>' ;
return $html;
}
// l'ID video est le chiffre de l'URL principal.
function wideo (&$matches)
{
$id= $matches[1];
$width = $this->params->get('width');
$height = $this->params->get('height');
$html = '
<object id="'.$id.'" type="application/x-shockwave-flash" data="http://sll.kewego.com/swf/p3/epix.swf" width="'.$width.'" height="'.$height.'">
<param name="flashVars" value="language_code=fr&playerKey=0df9b773a15b&skinKey=7109c4112f57&sig='.$id.'&advertise=1" />
<param name="movie" value="http://sll.kewego.com/swf/p3/epix.swf" />
<param name="allowFullScreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="wmode" value="Opaque" />
<video id="kewego_HTML5_'.$id.'" poster="http://api.kewego.com/video/getHTML5Thumbnail/?playerKey=0df9b773a15b&sig='.$id.'" controls="true" autoplay="true" height="'.$height.'" width="'.$width.'" preload="none" >
<source src="http://api.kewego.com/video/getHTML5Stream/?playerKey=0df9b773a15b&sig='.$id.'" type="video/mp4" width="'.$width.'" height="'.$height.'" />
</video></object>' ;
return $html;
}
// l'ID video est le tout dernier nombre de fin d'URL Principal.
function yahoo (&$matches)
{
$id= $matches[1];
$width = $this->params->get('width');
$height = $this->params->get('height');
$html = '<object width="'.$width.'" height="'.$height.'">
<param name="movie" value="http://d.yimg.com/nl/vyc/site/player.swf"></param><param name="wmode" value="opaque"></param>
<param node="allowFullScreen" value="true"></param>
<param name="flashVars" value="vid='.$id.'&lang=fr-FR"></param>
<embed width="'.$width.'" height="'.$height.'" src="http://d.yimg.com/nl/vyc/site/player.swf" type="application/x-shockwave-flash" flashvars="vid='.$id.'&autoPlay=true&volume=100&enableFullScreen=1&lang=fr-FR"></embed>
</object>' ;
return $html;
}
// l'ID video est le nombre du lien URL principal.
function gamaniak (&$matches)
{
$id= $matches[1];
$width = $this->params->get('width');
$height = $this->params->get('height');
$html = '
<object data="http://www.gamaniak.com/video/'.$id.'" type="application/x-shockwave-flash" id="jwplayer1"
name="jwplayer1" width="'.$width.'" height="'.$height.'">
<param name="movie" value="http://www.gamaniak.com/video/'.$id.'">
<param name="allowscriptaccess" value="always" />
<embed src="http://www.gamaniak.com/video/'.$id.'" type="application/x-shockwave-flash" width="'.$width.'" height="'.$height.'"></embed>
</object>' ;
return $html;
}
// l'ID est le nombre du lien URL principal.
function matvpratique (&$matches)
{
$id= $matches[1];
$width = $this->params->get('width');
$height = $this->params->get('height');
$html = '
<object type="application/x-shockwave-flash" data="http://www.matvpratique.com/player/player.swf?v=3.2.6unlimited"
height="'.$height.'"
width="'.$width.'">
<param name="flashvars" value="config=http://www.matvpratique.com/video/player-config/id/'.$id.'/w/'.$width.'">
<param name="src" value="http://www.matvpratique.com/player/player.swf?v=3.2.6unlimited">
<param name="allowfullscreen" value="true"> <param name="wmode" value="opaque">
<param name="allowscriptaccess" value="always">
<embed flashvars="config=http://www.matvpratique.com/video/player-config/id/'.$id.'/w/'.$width.'"
quality="high"
wmode="opaque"
allowscriptaccess="always"
allowfullscreen="true"
src="http://www.matvpratique.com/player/player.swf?v=3.2.6unlimited"
bgcolor="#FFFFFF" pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" name="maTVpratique lecteur exportable"
height="'.$height.'"
width="'.$width.'"></object>' ;
return $html;
}
// l'ID est le lien URL de partage dans les options d'exportation à partir du mot video.
function cnn (&$matches)
{
$id= $matches[1];
$width = $this->params->get('width');
$height = $this->params->get('height');
$html = '<object width="'.$width.'" height="'.$height.'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="ep">
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="wmode" value="transparent" />
<param name="movie" value="http://i.cdn.turner.com/cnn/.element/apps/cvp/3.0/swf/cnn_416x234_embed.swf?context=embed_edition&videoId='.$id.'" />
<param name="bgcolor" value="#000000" />
<embed src="http://i.cdn.turner.com/cnn/.element/apps/cvp/3.0/swf/cnn_416x234_embed.swf?context=embed_edition&videoId='.$id.'"
type="application/x-shockwave-flash"
bgcolor="#000000" allowfullscreen="true"
allowscriptaccess="always"
width="'.$width.'"
wmode="transparent"
height="'.$height.'"></embed>
</object>' ;
return $html;
}
// l'ID est le nombre de l'URL principal
function grindtv (&$matches)
{
$id= $matches[1];
$width = $this->params->get('width');
$height = $this->params->get('height');
$html = '<object width="'.$width.'" height="'.$height.'">
<param name="movie" value="http://static.grindtv.com/player/optics.swf?sa=1&si=1&i='.$id.'&sct=snow"></param>
<param name="wmode" value="transparent"></param>
<embed src="http://static.grindtv.com/player/optics.swf?sa=1&si=1&i='.$id.'" type="application/x-shockwave-flash" wmode="transparent" width="'.$width.'" height="'.$height.'">
</embed></object>' ;
return $html;
}
// l'ID est le numero dans le lien principal.
function stupidvideos (&$matches)
{
$id= $matches[1];
$width = $this->params->get('width');
$height = $this->params->get('height');
$html = '<object width="'.$width.'" height="'.$height.'">
<param name="movie" value="http://images.stupidvideos.com/2.0.2/swf/video.swf?sa=1&sk=7&si=2&i='.$id.'"></param>
<embed src="http://images.stupidvideos.com/2.0.2/swf/video.swf?sa=1&sk=7&si=2&i='.$id.'" type="application/x-shockwave-flash" width="'.$width.'" height="'.$height.'">
</embed></object>' ;
return $html;
}
// l'ID est le numero dans le lien principal.
function sevenload (&$matches)
{
$id= $matches[1];
$width = $this->params->get('width');
$height = $this->params->get('height');
$html = '<script type="text/javascript" src="http://fr.sevenload.com/pl/'.$id.'/'.$width.'x'.$height.'"></script>' ;
return $html;
}
// l'ID est le nombre principal du lien URL
function myvideo (&$matches)
{
$id= $matches[1];
$width = $this->params->get('width');
$height = $this->params->get('height');
$html = '<object style=\'width:'.$width.'px;height:'.$height.'px;\' width=\''.$width.'\' height=\''.$height.'\'>
<param name=\'movie\' value=\'http://www.myvideo.de/movie/'.$id.'\'>
</param><param name=\'AllowFullscreen\' value=\'true\'>
</param><param name=\'AllowScriptAccess\' value=\'always\'></param>
<embed src=\'http://www.myvideo.de/movie/'.$id.'\' width=\''.$width.'\' height=\''.$height.'\' type=\'application/x-shockwave-flash\' allowscriptaccess=\'always\' allowfullscreen=\'true\'></embed></object>' ;
return $html;
}
// l'ID est le nombre principal du lien URL
function aniboom (&$matches)
{
$id= $matches[1];
$width = $this->params->get('width');
$height = $this->params->get('height');
$html = '<object width="'.$width.'" height="'.$height.'"><param name="movie" value="http://api.aniboom.com/e/'.$id.'" />
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowfullscreen" value="true" />
<param name="quality" value="high" />
<embed src="http://api.aniboom.com/e/'.$id.'" quality="high" width="'.$width.'" height="'.$height.'" allowscriptaccess="sameDomain" allowfullscreen="true" type="application/x-shockwave-flash"></embed>
</object>' ;
return $html;
}
// l'ID est le nombre de l'url principal.
function gametrailers (&$matches)
{
$id= $matches[1];
$width = $this->params->get('width');
$height = $this->params->get('height');
$html = '
<embed src="http://media.mtvnservices.com/mgid:moses:video:gametrailers.com:'.$id.'"
width="'.$width.'"
height="'.$height.'"
type="application/x-shockwave-flash"
allowFullScreen="true" allowScriptAccess="always" base="." flashVars=""></embed>' ;
return $html;
}
// l'ID est le nonm de la video dans le lien principal san le .html de fin
function koreus (&$matches)
{
$id= $matches[1];
$width = $this->params->get('width');
$height = $this->params->get('height');
$html = '<object type="application/x-shockwave-flash"
data="http://www.koreus.com/video/'.$id.'"
height="'.$height.'"
width="'.$width.'">
<param name="movie" value="http://www.koreus.com/video/'.$id.'">
<embed src="http://www.koreus.com/video/'.$id.'" type="application/x-shockwave-flash" width="'.$width.'" height="'.$height.'"></embed></object>' ;
return $html;
}
// l'ID est le chiffre de l'url principal.
function videobb (&$matches)
{
$id= $matches[1];
$width = $this->params->get('width');
$height = $this->params->get('height');
$html = '<object id="player" width="'.$width.'" height="'.$height.'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" >
<param name="movie" value="http://www.videobb.com/e/'.$id.'" ></param>
<param name="allowFullScreen" value="true" ></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www.videobb.com/e/'.$id.'"
type="application/x-shockwave-flash"
allowscriptaccess="always"
allowfullscreen="true"
width="'.$width.'" height="'.$height.'"></embed></object>' ;
return $html;
}
// l'ID est le chiffre de l'url principal.
function videozer (&$matches)
{
$id= $matches[1];
$width = $this->params->get('width');
$height = $this->params->get('height');
$html = '<object id="player" width="'.$width.'" height="'.$height.'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" >
<param name="movie" value="http://www.videozer.com/embed/'.$id.'" ></param>
<param name="allowFullScreen" value="true" >
</param><param name="allowscriptaccess" value="always"></param>
<embed src="http://www.videozer.com/embed/'.$id.'"
type="application/x-shockwave-flash"
allowscriptaccess="always"
allowfullscreen="true"
width="'.$width.'" height="'.$height.'"></embed></object>' ;
return $html;
}
// l'ID est le chiffre de l'url principal
function canalplus (&$matches)
{
$id= $matches[1];
$width = $this->params->get('width');
$height = $this->params->get('height');
$html = '<object type="application/x-shockwave-flash"
width="'.$width.'"
height="'.$height.'"
id="canal'.$id.'"
name="canal'.$id.'"
data="http://player.canalplus.fr/embed/flash/player.swf">
<param name="movie" value="http://player.canalplus.fr/embed/flash/player.swf">
<param name="flashvars" value="param=cplus&videoId='.$id.'">
<param name="allowScriptAccess" value="always"/>
<param name="allowFullScreen" value="true"/>
<embed width="'.$width.'"
height="'.$height.'"
src="http://player.canalplus.fr/embed/flash/player.swf"
id="canal'.$id.'" name="canal'.$id.'"
flashVars="param=cplus&videoId='.$id.'"
allowscriptaccess="always"
allowfullscreen="true" >
<noembed>Veuillez installer Flash Player pour lire la vidéo</noembed></embed></object>' ;
return $html;
}
// l'ID est
function mixturevideo (&$matches)
{
$id= $matches[1];
$width = $this->params->get('width');
$height = $this->params->get('height');
$html = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
width="'.$width.'"
height="'.$height.'"
id="R9Tv" name="R9Tv">
<param name="movie" value="http://player.mixturecloud.com/video/'.$id.'.swf" />
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="wmode" value="transparent" />
<embed type="application/x-shockwave-flash"
id="Z1f8" name="Z1f8" src="http://player.mixturecloud.com/video/'.$id.'.swf"
width="'.$width.'"
height="'.$height.'"
allowscriptaccess="always"
allowfullscreen="true"
wmode="transparent"/></object>' ;
return $html;
}
//*******************************
//* Section Adulte *
//*******************************
// L'ID est le nombre du lien URL
function redtube (&$matches)
{
$confirm = $this->params->get('confirm');
$majeur = $this->params->get('majeur');
$width = $this->params->get('width');
$height = $this->params->get('height');
if (($this->params->get('confirm') == 'YES' ) && ( $this->params->get('majeur') >= 18)) {
$id= $matches[1];
$html = '<object
height="'.$height.'"
width="'.$width.'">
<param name="allowfullscreen" value="false">
<param name="movie" value="http://embed.redtube.com/player/">
<param name="FlashVars" value="id='.$id.'&style=redtube&autostart=false">
<embed src="http://embed.redtube.com/player/?id='.$id.'&style=redtube"
allowfullscreen="false"
flashvars="autostart=false"
pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
type="application/x-shockwave-flash"
height="'.$height.'"
width="'.$width.'" /></object>' ;
return $html;
}
else {
$message= (JText::_('ELIOPROALLVIDEOS_DESC_ALERTE'));
echo '<script type="text/javascript">window.alert("'.$message.'");</script>';
}
}
// L'ID est le 1er nombre du lien URL et non le dernier de ce même lien
function xnxx (&$matches)
{
$confirm = $this->params->get('confirm');
$majeur = $this->params->get('majeur');
$width = $this->params->get('width');
$height = $this->params->get('height');
if (($this->params->get('confirm') == 'YES' ) && ( $this->params->get('majeur') >= 18)) {
$id= $matches[1];
$html = '<object
width="'.$width.'"
height="'.$height.'"
classid="clsid:d27cdb6e-ae6d-11cf-96b8-4445535'.$width.'00"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" >
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
<param name="allowScriptAccess" value="always" />
<param name="movie" value="http://static.xvideos.com/swf/flv_player_site_v4.swf" />
<param name="allowFullScreen" value="true" />
<param name="flashvars" value="id_video='.$id.'" />
<embed src="http://static.xvideos.com/swf/flv_player_site_v4.swf"
allowscriptaccess="always"
width="'.$width.'"
height="'.$height.'"
menu="false"
quality="high"
bgcolor="#000000"
allowfullscreen="true"
flashvars="id_video='.$id.'"
type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>' ;
return $html;
}
else {
$message= (JText::_('ELIOPROALLVIDEOS_DESC_ALERTE'));
echo '<script type="text/javascript">window.alert("'.$message.'");</script>';
}
}
// L'ID est le 1er nombre du lien URL et non le dernier de ce même lien
function madthumbs (&$matches)
{
$confirm = $this->params->get('confirm');
$majeur = $this->params->get('majeur');
$width = $this->params->get('width');
$height = $this->params->get('height');
if (($this->params->get('confirm') == 'YES' ) && ( $this->params->get('majeur') >= 18)) {
$id= $matches[1];
$html = '<object
id="MadThumbs_Player_M2oAkUwn"
type="application/x-shockwave-flash" data="http://cache.tgpsitecentral.com/madthumbs/js/flowplayer/flowplayer.embed-3.2.6-dev.swf"
width="'.$width.'"
height="'.$height.'">
<param name="movie" value="http://cache.tgpsitecentral.com/madthumbs/js/flowplayer/flowplayer.embed-3.2.6-dev.swf" />
<param value="true" name="allowfullscreen"/>
<param value="always" name="allowscriptaccess"/>
<param value="high" name="quality"/>
<param value="#000000" name="bgcolor"/>
<param value="config=http%3A%2F%2Fwww.madthumbs.com%2Fvideos%2Fembed_config%3Fid%3D'.$id.'" name="flashvars"/></object>' ;
return $html;
}
else {
$message= (JText::_('ELIOPROALLVIDEOS_DESC_ALERTE'));
echo '<script type="text/javascript">window.alert("'.$message.'");</script>';
}
}
// L'ID est celui de l'embed et non celui de l'URL
function pornhub (&$matches)
{
$confirm = $this->params->get('confirm');
$majeur = $this->params->get('majeur');
$width = $this->params->get('width');
$height = $this->params->get('height');
if (($this->params->get('confirm') == 'YES' ) && ( $this->params->get('majeur') >= 18)) {
$id= $matches[1];
$html = '<object
type="application/x-shockwave-flash" data="http://ph-static.phncdn.com/flash/embed_player_v1.3.swf"
width="'.$width.'"
height="'.$height.'">
<param name="movie" value="http://ph-static.phncdn.com/flash/embed_player_v1.3.swf" /><param name="bgColor" value="#000000" />
<param name="allowfullscreen" value="true" />
<param name="allowScriptAccess" value="always" />
<param name="FlashVars" value="options=http://www.pornhub.com/embed_player.php?id='.$id.'"/></object>' ;
return $html;
}
else {
$message= (JText::_('ELIOPROALLVIDEOS_DESC_ALERTE'));
echo '<script type="text/javascript">window.alert("'.$message.'");</script>';
}
}
// L'ID est le 1er nombre du lien URL et non le dernier de ce même lien
function xvideos (&$matches)
{
$confirm = $this->params->get('confirm');
$majeur = $this->params->get('majeur');
$width = $this->params->get('width');
$height = $this->params->get('height');
if (($this->params->get('confirm') == 'YES' ) && ( $this->params->get('majeur') >= 18)) {
$id= $matches[1];
$html = '<object
width="'.$width.'"
height="'.$height.'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" >
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
<param name="allowScriptAccess" value="always" />
<param name="movie" value="http://static.xvideos.com/swf/flv_player_site_v4.swf" />
<param name="allowFullScreen" value="true" />
<param name="flashvars" value="id_video='.$id.'" />
<embed src="http://static.xvideos.com/swf/flv_player_site_v4.swf"
allowscriptaccess="always"
width="'.$width.'"
height="'.$height.'"
menu="false"
quality="high"
bgcolor="#000000"
allowfullscreen="true"
flashvars="id_video='.$id.'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>' ;
return $html;
}
else {
$message= (JText::_('ELIOPROALLVIDEOS_DESC_ALERTE'));
echo '<script type="text/javascript">window.alert("'.$message.'");</script>';
}
}
// L'id est le chiffre du lien url
function tnaflix (&$matches)
{
$confirm = $this->params->get('confirm');
$majeur = $this->params->get('majeur');
$width = $this->params->get('width');
$height = $this->params->get('height');
if (($this->params->get('confirm') == 'YES' ) && ( $this->params->get('majeur') >= 18)) {
$id= $matches[1];
$html = '<iframe src="http://player.tnaflix.com/video/'.$id.'"
width="'.$width.'"
height="'.$height.'"
frameborder="0"></iframe>' ;
return $html;
}
else {
$message= (JText::_('ELIOPROALLVIDEOS_DESC_ALERTE'));
echo '<script type="text/javascript">window.alert("'.$message.'");</script>';
}
}
// L'ID est le chiffre du lien url
function keezmovies (&$matches)
{
$confirm = $this->params->get('confirm');
$majeur = $this->params->get('majeur');
$width = $this->params->get('width');
$height = $this->params->get('height');
if (($this->params->get('confirm') == 'YES' ) && ( $this->params->get('majeur') >= 18)) {
$id= $matches[1];
$html = '<object type="application/x-shockwave-flash" data="http://cdn1.static.keezmovies.phncdn.com/flash/player_embed.swf?cache=005" width="'.$width.'" height="'.$height.'">
<param name="bgColor" value="#000000" />
<param name="allowfullscreen" value="true" />
<param name="allowScriptAccess" value="always" />
<param name="FlashVars" value="options=http://www.keezmovies.com/embed_player.php?vid='.$id.'"/>
<param name="movie" value="http://cdn1.static.keezmovies.phncdn.com/flash/player_embed.swf?cache=005" /></object>' ;
return $html;
}
else {
$message= (JText::_('ELIOPROALLVIDEOS_DESC_ALERTE'));
echo '<script type="text/javascript">window.alert("'.$message.'");</script>';
}
}
// l'ID videos est le long chiffre de l'embed.
function xxxymovies (&$matches)
{
$confirm = $this->params->get('confirm');
$majeur = $this->params->get('majeur');
$width = $this->params->get('width');
$height = $this->params->get('height');
if (($this->params->get('confirm') == 'YES' ) && ( $this->params->get('majeur') >= 18)) {
$id= $matches[1];
$html = '<embed src="http://www.xxxymovies.com/embed/'.$id.'/"
loop="false"
width="'.$width.'"
height="'.$height.'"
allowfullscreen="true"
allowScriptAccess="always"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />' ;
return $html;
}
else {
$message= (JText::_('ELIOPROALLVIDEOS_DESC_ALERTE'));
echo '<script type="text/javascript">window.alert("'.$message.'");</script>';
}
}
// l'ID videos est le chiffre de l'URL principal
function pornzapp (&$matches)
{
$confirm = $this->params->get('confirm');
$majeur = $this->params->get('majeur');
if (($this->params->get('confirm') == 'YES' ) && ( $this->params->get('majeur') >= 18)) {
$id= $matches[1];
$html = '<script type="text/javascript" src="http://www.pornzapp.com/video.php?id='.$id.'"></script>
<noscript><a href="http://www.pornzapp.com">Go to pornzapp.com</a></noscript>' ;
return $html;
}
else {
$message= (JText::_('ELIOPROALLVIDEOS_DESC_ALERTE'));
echo '<script type="text/javascript">window.alert("'.$message.'");</script>';
}
}
// l'ID videos est le chiffre de l'URL principal
function hardsextube (&$matches)
{
$confirm = $this->params->get('confirm');
$majeur = $this->params->get('majeur');
$width = $this->params->get('width');
$height = $this->params->get('height');
if (($this->params->get('confirm') == 'YES' ) && ( $this->params->get('majeur') >= 18)) {
$id= $matches[1];
$html = '<object width="'.$width.'" height="'.$height.'">
<param name="movie" value="http://www.hardsextube.com/embed/'.$id.'/"></param>
<param name="allowFullScreen" value="true"></param>
<param name="AllowScriptAccess" value="always"></param>
<param name="wmode" value="transparent"></param>
<embed src="http://www.hardsextube.com/embed/'.$id.'/"
type="application/x-shockwave-flash"
wmode="transparent"
AllowScriptAccess="always"
allowFullScreen="true"
width="'.$width.'"
height="'.$height.'"></embed></object>' ;
return $html;
}
else {
$message= (JText::_('ELIOPROALLVIDEOS_DESC_ALERTE'));
echo '<script type="text/javascript">window.alert("'.$message.'");</script>';
}
}
// l'ID videos de yobt.tv est le chiffre de l'url principal
function yobt (&$matches)
{
$confirm = $this->params->get('confirm');
$majeur = $this->params->get('majeur');
$width = $this->params->get('width');
$height = $this->params->get('height');
if (($this->params->get('confirm') == 'YES' ) && ( $this->params->get('majeur') >= 18)) {
$id= $matches[1];
$html = '<object type="application/x-shockwave-flash"
data="http://www.yobt.tv/player/playeremb2.swf"
width="'.$width.'"
height="'.$height.'">
<param name="movie" value="http://www.yobt.tv/player/playeremb2.swf" />
<param name="allowfullscreen" value="true" />
<param value="always" name="allowScriptAccess" />
<param name="FlashVars" value="xmlfile=http://www.yobt.tv/freeporn/'.$id.'.xml?embed=true" /></object><br />' ;
return $html;
}
else {
$message= (JText::_('ELIOPROALLVIDEOS_DESC_ALERTE'));
echo '<script type="text/javascript">window.alert("'.$message.'");</script>';
}
}
// l'ID videos est le chiffre de l'url principal
function pornrabbit (&$matches)
{
$confirm = $this->params->get('confirm');
$majeur = $this->params->get('majeur');
$width = $this->params->get('width');
$height = $this->params->get('height');
if (($this->params->get('confirm') == 'YES' ) && ( $this->params->get('majeur') >= 18)) {
$id= $matches[1];
$html = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
height="'.$height.'px"
width="'.$width.'px"
id="embedpornrabbit">
<param name="movie" value="http://embed.pornrabbit.com/player.swf">
<param name="FlashVars" value="movie_id='.$id.'">
<param name="AllowScriptAccess" value="always">
<embed src="http://embed.pornrabbit.com/player.swf?movie_id='.$id.'"
pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
type="application/x-shockwave-flash"
height="'.$height.'px"
width="'.$width.'px"
AllowScriptAccess="always"></object>' ;
return $html;
}
else {
$message= (JText::_('ELIOPROALLVIDEOS_DESC_ALERTE'));
echo '<script type="text/javascript">window.alert("'.$message.'");</script>';
}
}
// l'ID videos est le chiffre de l'url principal
function xhamster (&$matches)
{
$confirm = $this->params->get('confirm');
$majeur = $this->params->get('majeur');
$width = $this->params->get('width');
$height = $this->params->get('height');
if (($this->params->get('confirm') == 'YES' ) && ( $this->params->get('majeur') >= 18)) {
$id= $matches[1];
$html = '<iframe width="'.$width.'" height="'.$height.'" src="http://xhamster.com/xembed.php?video='.$id.'" frameborder="0" scrolling="no"></iframe>' ;
return $html;
}
else {
$message= (JText::_('ELIOPROALLVIDEOS_DESC_ALERTE'));
echo '<script type="text/javascript">window.alert("'.$message.'");</script>';
}
}
// l'ID videos est le chiffre de l'url principal
function mofosex (&$matches)
{
$confirm = $this->params->get('confirm');
$majeur = $this->params->get('majeur');
$width = $this->params->get('width');
$height = $this->params->get('height');
if (($this->params->get('confirm') == 'YES' ) && ( $this->params->get('majeur') >= 18)) {
$id= $matches[1];
$html = '<object type="application/x-shockwave-flash" data="http://www.mofosex.com/resources/flash/player_embed.swf"
width="'.$width.'"
height="'.$height.'">
<param name="movie" value="http://www.mofosex.com/resources/flash/player_embed.swf" />
<param name="bgColor" value="#000000" /><param name="allowfullscreen" value="true" />
<param name="allowScriptAccess" value="always" />
<param name="FlashVars" value="options=http://www.mofosex.com/embed_player.php?id='.$id.'"/></object>' ;
return $html;
}
else {
$message= (JText::_('ELIOPROALLVIDEOS_DESC_ALERTE'));
echo '<script type="text/javascript">window.alert("'.$message.'");</script>';
}
}
}?>