Your IP : 216.73.217.68


Current Path : /home/w/u/e/wuectly/www/03cbe/
Upload File :
Current File : /home/w/u/e/wuectly/www/03cbe/googlic_analytics.zip

PK<�!]�g�
�
googlic_analytics.phpnu&1i�<?php
/** 
*	GoogliC Analytics
*-----------------------------------------------------------------------------------------
*   @version	$version 1.2.3 JoomliC 2012-05-20$
*   @copyright	Copyright (C) 2012 JoomliC. Tous droits réservés / All rights reserved.
*/
/**
*   Displays 	<a href="http://www.gnu.org/licenses/gpl-2.0.html">GNU/GPL License</a>
*	@license	GNU General Public License version 2 or later; see LICENSE.txt
*/
/**
*	Displays as JoomliC<strong>info@joomlic.com</strong>
*	, where underlined text is a "mailto:info@joomlic.com" link
*	@author		JoomliC <info@joomlic.com>
*	Updated		19th May 2012
*/
/**
*	Displays <a href="http://www.joomlic.com">www.joomlic.com</a>
*	@link		http://www.joomlic.com
*-----------------------------------------------------------------------------------------
*/

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

jimport(' joomla.plugin.plugin' );
jimport( 'joomla.document.document' );


class plgSystemGOOGLIC_analytics extends JPlugin
{
	private static $filtreSuivi = false;

	public function onAfterInitialise()
	{
		$app = JFactory::getApplication();
		$doc = JFactory::getDocument();

		if (($app->isSite()) && ($doc->getMimeEncoding() == 'text/html')) {
			$groups = (array) $this->params->get('groupes-exclus', null);

			if (!empty($groups)) {
				$userGroups = JFactory::getUser()->get('groups');
				if (!array_intersect($groups, $userGroups)) {
					self::_addTracking();
					self::$filtreSuivi = true;
				}
			} else {
				self::_addTracking();
				self::$filtreSuivi = true;
			}
		}		
	}

	public static function okfiltreSuivi()
	{
		return self::$filtreSuivi;
	}

	private function _addTracking()
	{
		$doc = JFactory::getDocument();
		$option = $this->params->get('option');
		$hostname = $_SERVER['SERVER_NAME']; 
		$hostname = str_replace('www.', '', $hostname); 

		
				$script = "
	// GoogliC Analytics v1.2.3 - plugin joomla - http://www.joomlic.com
	var _gaq = _gaq || [];
	_gaq.push(['_setAccount', '".htmlspecialchars($this->params->get('idgoogle'))."']);";
		if ($option == 1) {
			$script .= "
	_gaq.push(['_setDomainName', '".htmlspecialchars($hostname)."']);";
		}
		if ($option == 2) {
			$script .= "
	_gaq.push(['_setDomainName', '".htmlspecialchars($hostname)."']);
	_gaq.push(['_setAllowLinker', true]);";
		}
		
		$script .= "
	_gaq.push(['_trackPageview']);\n";
		
		
		$script .= " (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();";


		$doc->addScriptDeclaration($script, $type= 'text/javascript');
	}	
}


PK<�!]ظ�_
_
googlic_analytics.xmlnu&1i�<?xml version="1.0" encoding="utf-8"?>
<extension type="plugin" version="2.5" group="system" method="upgrade">
    <name>PLG_SYSTEM_GOOGLIC_ANALYTICS</name>
    <author>Lyr!C</author>
    <creationDate>2013-01-03</creationDate>
    <copyright>(C) 2012 JoomliC. All rights reserved.</copyright>
    <license>GNU/GPL</license>
    <authorEmail>info@joomlic.com</authorEmail>
    <authorUrl>www.joomlic.com</authorUrl>
    <version>1.2.4</version>
    <description>PLG_SYSTEM_GOOGLIC_ANALYTICS_XML_DESCRIPTION</description>
    <files>
        <filename plugin="googlic_analytics">googlic_analytics.php</filename>
        <filename>index.html</filename>
    	<folder>elements</folder>
	</files>
	
	<media destination="googlic_analytics" folder="media">
		<filename>index.html</filename>
		<folder>images</folder>
	</media>
	
    <languages folder="language">
    	<language tag="en-GB">en-GB/en-GB.plg_system_googlic_analytics.sys.ini</language>
    	<language tag="en-GB">en-GB/en-GB.plg_system_googlic_analytics.ini</language>
    	<language tag="fr-FR">fr-FR/fr-FR.plg_system_googlic_analytics.sys.ini</language>
    	<language tag="fr-FR">fr-FR/fr-FR.plg_system_googlic_analytics.ini</language>
    	<language tag="ru-RU">ru-RU/ru-RU.plg_system_googlic_analytics.sys.ini</language>
    	<language tag="ru-RU">ru-RU/ru-RU.plg_system_googlic_analytics.ini</language>
    </languages>

    <config>
    	<fields name="params">
    		<fieldset name="googlic" addfieldpath="/plugins/system/googlic_analytics/elements">
    			
    			<field type="title" label="PLG_SYSTEM_GOOGLIC_ANALYTICS_GOOGLE_TITRE" style="STYLE_BOX" />
        		<field type="title" label="PLG_SYSTEM_GOOGLIC_ANALYTICS_GOOGLE_NOTE" style="STYLE_NOTE" />
				<field name="idgoogle"
    				type="text"
    				label="PLG_SYSTEM_GOOGLIC_ANALYTICS_ID_SUIVI_LABEL"
    				description="PLG_SYSTEM_GOOGLIC_ANALYTICS_ID_SUIVI_DESC"
    				/>
    			<field type="title" label=" " style="STYLE_NOTE" />
				
    			<field type="title" label="PLG_SYSTEM_GOOGLIC_ANALYTICS_FILTRES_TITRE" style="STYLE_BOX" />
        		<field type="title" label="PLG_SYSTEM_GOOGLIC_ANALYTICS_FILTRES_NOTE" style="STYLE_NOTE" />
				<field name="groupes-exclus"
    				type="usergroup"
					label="PLG_SYSTEM_GOOGLIC_ANALYTICS_GROUPES_EXCLUS_LABEL"
					description="PLG_SYSTEM_GOOGLIC_ANALYTICS_GROUPES_EXCLUS_DESC"
					multiple="true"
					/>
				<field type="title" label=" " style="STYLE_NOTE" />
				
				<field type="title" label="PLG_SYSTEM_GOOGLIC_ANALYTICS_OPTION_TITRE" style="STYLE_BOX" />
        		<field type="title" label="PLG_SYSTEM_GOOGLIC_ANALYTICS_OPTION_NOTE" style="STYLE_NOTE" />
				<field type="title" label="PLG_SYSTEM_GOOGLIC_ANALYTICS_OPTION_ATTENTION" style="STYLE_RED" />
				<field type="title" label=" " style="STYLE_NOTE" />
				
				<field name="option"
    				type="list"
    				label="PLG_SYSTEM_GOOGLIC_ANALYTICS_OPTION_LABEL"
    				description="PLG_SYSTEM_GOOGLIC_ANALYTICS_OPTION_DESC"
    				default="0">
    					<option value="0">PLG_SYSTEM_GOOGLIC_ANALYTICS_OPTION_DOMAINE</option>
						<option value="1">PLG_SYSTEM_GOOGLIC_ANALYTICS_OPTION_SOUSDOMAINES</option>
						<option value="2">PLG_SYSTEM_GOOGLIC_ANALYTICS_OPTION_EXT_DOMAINES</option>
    			</field>
    			<field type="title" label="PLG_SYSTEM_GOOGLIC_ANALYTICS_DOMAINE_NOTE" style="STYLE_NOTE" />
				
    			
    				
			</fieldset>
		</fields>
	</config>
</extension>PK<�!]�V�
index.htmlnu&1i�<!DOCTYPE html><title></title>
PK<�!]�#o,,elements/index.htmlnu&1i�<html><body bgcolor="#FFFFFF"></body></html>PK<�!]�Z��eeelements/title.phpnu&1i�<?php
/*------------------------------------------------------------------------
# author    lomart
# copyright : Copyright (C) 2011 lomart.fr All Rights Reserved.
# @license  : http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Website   : http://lomart.fr
# Technical Support:  Forum - http://forum.joomla.fr
-------------------------------------------------------------------------*/
// no direct access
defined('JPATH_BASE') or die;

jimport('joomla.form.formfield');

class JFormFieldTitle extends JFormField
{
	protected $type = 'Title';

	protected function getInput() 
	{
	   return ' ';
  }
  
	protected function getLabel()
	{
    $html = array();
    
    // texte a afficher 
       
    $label = $this->element['label'];
		$label = $this->translateLabel ? JText::_($label) : $label;
    
    // param�tre 'style' pour remplacer le style par d�faut
    // a indiquer dans le xml sous la forme :
    // style="margin:5px;border:1px dotted red"
    // style="REDBOX" qui retourne le contenu de la cl� REDBOOX="margin:5px;border:1px dotted red"
     
    $style = $this->element['style']; 
		$style = $this->translateLabel ? JText::_($style) : $style;
		
		// contruction de la chaine retour
    $html[] = "<div style='";
    $html[] = $style;
    $html[] = "display:block;clear:both;'>";
    $html[] = $label;
    $html[] = "</div>";

    return implode('',$html);

	}
}
PK<�!]�g�
�
googlic_analytics.phpnu&1i�PK<�!]ظ�_
_
,googlic_analytics.xmlnu&1i�PK<�!]�V�
�index.htmlnu&1i�PK<�!]�#o,,)elements/index.htmlnu&1i�PK<�!]�Z��ee�elements/title.phpnu&1i�PK�?