Your IP : 172.28.240.42


Current Path : /var/www/html/clients/kampol.e-nk.ru/modules/mod_photogalleryfx/
Upload File :
Current File : /var/www/html/clients/kampol.e-nk.ru/modules/mod_photogalleryfx/mod_photogalleryfx.php

<?php
/**
 * @package Module Photo Gallery FX for Joomla! 1.5
 * @version $Id: mod_photogalleryfx.php 28 April 2011 $
 * @author FlashXML.net
 * @copyright (C) FlashXML.net 2010
 * @license GNU/GPL v2 http://www.gnu.org/licenses/gpl-2.0.html
**/

defined('_JEXEC') or die('Restricted access');

$photogalleryfx_path = $params->get('photogalleryfx_path');
if (strpos($photogalleryfx_path, '/') !== 0) {
	$photogalleryfx_path = '/'.$photogalleryfx_path;
	$params->def('photogalleryfx_path', $photogalleryfx_path);

}

$photogalleryfx_wmode = $params->get('photogalleryfx_wmode');
if (empty($photogalleryfx_wmode)) {
	$photogalleryfx_wmode = 'transparent';
	$params->def('photogalleryfx_wmode', $photogalleryfx_wmode);
}

$photogalleryfx_width = (int)$params->get('photogalleryfx_width');
$photogalleryfx_height = (int)$params->get('photogalleryfx_height');

if ($photogalleryfx_width > 0 && $photogalleryfx_height > 0) {
	$joomla_install_dir_in_url = rtrim(JURI::root(true), '/');
	if (!empty($joomla_install_dir_in_url) && strpos($joomla_install_dir_in_url, '/') !== 0) {
		$joomla_install_dir_in_url = '/' . $joomla_install_dir_in_url;
	}

	global $mainframe;
	$mainframe->addCustomHeadTag('<script type="text/javascript" src="http'.(!empty($_SERVER['HTTPS']) ? 's' : '').'://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>');
	echo '<div id="flashxmlphotogallery"><a href="http://www.webmasters.by/articles/joomla/347-photo-gallery-for-joomla.html">download here</a></div><script type="text/javascript">'."swfobject.embedSWF('{$joomla_install_dir_in_url}{$photogalleryfx_path}PhotoGalleryFX.swf', 'flashxmlphotogallery', '{$photogalleryfx_width}', '{$photogalleryfx_height}', '9.0.0.0', '', { folderPath: '{$joomla_install_dir_in_url}{$photogalleryfx_path}' }, { scale: 'noscale', salign: 'tl', wmode: '{$photogalleryfx_wmode}', allowScriptAccess: 'sameDomain', allowFullScreen: true }, {});</script>";
}