erreur de syntaxe mod_vpabcchromeless/helper.php

Réduire
X
 
  • Filtrer
  • Heure
  • Afficher
Tout effacer
nouveaux messages

  • [Problème] erreur de syntaxe mod_vpabcchromeless/helper.php

    Bonjour,

    Suite à une installation de sauvegarde, j'ai une erreur : Parse error: syntax error, unexpected $end in /homez.65/karatesh/www/modules/mod_vpabcchromeless/helper.php on line 1

    voici une copie du fichier en question :

    Code:
    <?php	/*----------------------------------------------------------------------	* Author: 	ABC - [url]http://www.abc-joomla.fr[/url]	* author Email [email]abc@abc-joomla.fr[/email]		* Copyright Copyright (C) 2010- Alain Bertrand Chabernaud. (ABC)	* license GNU/GPL [url]http://www.gnu.org/copyleft/gpl.html[/url]  	* type commerciale	* Pack: 	mod_vpabcchromeless	* File: 	helper.php	*----------------------------------------------------------------------*/ defined( '_JEXEC' ) or die( 'Restricted access' );jimport( 'joomla.document.document' );class modPlayerYT {   function CreationSwObject(&$params) } {	//JHTML::_('behavior.preventmootools');	//JHtml::_('behavior.framework',true); }   //JHTML::_( 'behavior.tooltip' );    JHTML::_( 'behavior.mootools' );			$moduleclass_sfx			= $params->get( 'moduleclass_sfx', '' );	$background_type			= $params->get( 'background_type', 'color' );	$width						= (int)$params->get( 'width', 500 );	$height						= (int)$params->get( 'height', 350 );	$plheight					= (int)$params->get( 'plheight', 180 );	$orderOrIdPl				= (int)$params->get( 'orderOrIdPl', 0 );	$lWidthCol					=  (int)$params->get( 'lWidthCol', 95 );	$lHeightCol					=  (int)$params->get( 'lHeightCol', 80 );		$Title						= $params->get( 'Title','Video Player Youtube ABC');	$Title2						= $params->get( 'Title2','PlayList Youtube');	$sSearch					= (int)$params->get( 'sSearch',1);	$autostart					= (int)$params->get( 'autostart',1);	$swfobject					= (int)$params->get( 'swfobject', 1 );		JRequest::setVar( 'Itemid',JRequest::getVar( 'Itemid'));	$vmode	=	$background_type == 'color'?'opaque':'transparent';	$width = (strrpos($width, "%")==strlen($width)-1)?$width:intval($width);	$height = (strrpos($height, "%")==strlen($height)-1)?$height:intval($height);	$plheight = (strrpos($plheight, "%")==strlen($plheight)-1)?$plheight:intval($plheight);	$document	= JFactory::getDocument();		$module_folder	= JURI::root().'modules/mod_vpabcchromeless';	if($swfobject==1){		$document->addScript( JURI::root().'modules/mod_vpabcchromeless/html-template/swfobject.js' );	}	$sectionid = JRequest::getVar('view');		$user =& JFactory::getUser();	$paramsUrl = urlencode(JURI::root().'index.php?option='.JRequest::getVar( 'option', '' ).'&view='. $sectionid.'&id='.JRequest::getVar('id').'&Itemid='. JRequest::getVar('Itemid'));	//$paramsUrl = JURI::root().'index.php?option='.JRequest::getVar( 'option', '' ).'&view='. $sectionid.'&id='.JRequest::getVar('id').'&Itemid='. JRequest::getVar('Itemid');	//Detect mobil	if (stristr($_SERVER['HTTP_USER_AGENT'], "Android")	  || strpos($_SERVER['HTTP_USER_AGENT'], "BlackBerry")	  || strpos($_SERVER['HTTP_USER_AGENT'], "webOS")	  || strpos($_SERVER['HTTP_USER_AGENT'], "iPod")	  || strpos($_SERVER['HTTP_USER_AGENT'], "iPhone")){		  $mobil = 1;	   }else{		  $mobil = 0;	 }		 $list = JRequest::getVar( 'sVideo_id'); 	 if(isset($list)){	   $autostart = 1;	}	$htotale=$height+$plheight+2;	$createSWo	=	'		var flashvars = {};'."\n";						$createSWo	.=	'		flashvars.width = '.$width.';'."\n";	$createSWo	.=	'		flashvars.height = '.$height.';'."\n";	$createSWo	.=	'		flashvars.plheight = '.$plheight.';'."\n";	$createSWo	.=	'		flashvars.lWidthCol = '.$lWidthCol.';'."\n";	$createSWo	.=	'		flashvars.lHeightCol = '.$lHeightCol.';'."\n";	$createSWo	.=	'		flashvars.Title = "'.$Title.'";'."\n";	$createSWo	.=	'		flashvars.Title2 = "'.$Title2.'";'."\n";	$createSWo	.=	'		flashvars.mobil = '.$mobil.';'."\n";	$createSWo	.=	'		flashvars.autostart = '.$autostart.';'."\n";		$createSWo	.=	'		flashvars.user = "'.$user->username.'";'."\n";	$createSWo	.=	'		flashvars.Itemid = "'.JRequest::getVar( 'Itemid').'";'."\n";	$createSWo	.=	'		flashvars.sVideo_id = '.JRequest::getVar( 'sVideo_id',0).';'."\n";	$createSWo	.=	'		flashvars.sPlayList_Id = '.JRequest::getVar( 'sPlayList_Id',0).';'."\n";	$createSWo	.=	'		flashvars.orderOrIdPl = '.$orderOrIdPl.';'."\n";	$createSWo	.=	'		flashvars.proxyUrl = "'.JURI::root().'amfphp/gateway.php'.'";'."\n";	$createSWo	.=	'		flashvars.appUrl = "'.$paramsUrl.'";'."\n";	$createSWo	.=	'		var params = {};'."\n";	$createSWo	.=	'		params.wmode="'.$vmode.'";'."\n";	$createSWo	.=	'		params.quality ="high";'."\n";	$createSWo	.=	'		params.allowscriptaccess ="sameDomain";'."\n";	$createSWo	.=	'		params.allowFullScreen ="true";'."\n";		$createSWo	.=	'		params.type ="paramslication/x-shockwave-flash";'."\n";	$createSWo	.=	'		params.pluginspage="http://www.adobe.com/go/getflashplayer";'."\n";			$createSWo	.=	'		var attributes = {};'."\n";	$createSWo	.=	'		attributes.id = "vpabcchromeless";'."\n";	$createSWo	.=	'	swfobject.embedSWF("'.$module_folder.'/swf/vpabcchromeless.swf", "vpabcchromeless", "'.$width.'", "'.$htotale.'", "10.0.22", "'.$module_folder.'/html-template/expressInstall.swf", flashvars, params, attributes);'."\n";	$document->addScriptDeclaration( $createSWo);	$createSWob	=	'<div id="vpabcchromeless"><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player"/></a></div>'."\n";	   return $createSWob;  }}?>
    ---------------
    Je vous remercie quant à votre aide.
    Dernière édition par zepelin57 à 15/09/2012, 20h47
    Koana
    ---------------------------------------------------
    "Il ne faut pas donner des années à la vie mais de la vie aux années..."

Annonce

Réduire
Aucune annonce pour le moment.

Partenaire de l'association

Réduire

Hébergeur Web PlanetHoster
Travaille ...
X