Current Path :
/
home
/
develito
/
www
/
modules
/
mod_extrawatch_agent
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/develito/www/modules/mod_extrawatch_agent/mod_extrawatch_agent.php
<?php /** * @file * ExtraWatch - A real-time ajax monitor and live stats * @package ExtraWatch * @version 2.3 * @revision 2587 * @license http://www.gnu.org/licenses/gpl-3.0.txt GNU General Public License v3 * @copyright (C) 2015 by CodeGravity.com - All rights reserved! * @website http://www.extrawatch.com */ if (defined("EW_STANDALONE")) { define("JPATH_BASE",realpath("extrawatch")); define("ENV",1); define("_JEXEC",1); } defined('_JEXEC') or die('Restricted access'); /** ensure this file is being included by a parent file */ defined('_JEXEC') or die('Restricted access'); if (!defined("JPATH_BASE2")) { define("JPATH_BASE2", JPATH_BASE); } if (!defined("DS")) { define("DS", DIRECTORY_SEPARATOR); } require_once JPATH_BASE . DS . "components" . DS . "com_extrawatch" . DS . "includes.php"; $env = ExtraWatchEnvFactory::getEnvironment(); if (@!function_exists("renderExtraWatchAgent")) { //prevent multiple declaration of agent - some SEF tools could load it more times function renderExtraWatchAgent() { $output = ""; $extraWatch = new ExtraWatchMain(); require_once JPATH_BASE . DS . "components" . DS . "com_extrawatch" . DS . "lang" . DS . $extraWatch->config->getLanguage() . ".php"; if (EXTRAWATCH_DEBUG) { $output .= ("<span style='color: #ff3333'>" . _EW_DESC_DEBUG . "</span><br/>"); } $extraWatch->block->checkPostRequestForSpam(ExtraWatchHelper::requestGet()); /// $extraWatch->block->checkPostRequestForSpam(ExtraWatchHelper::requestPost());/// try { $extraWatch->visit->insertVisit(); } catch (ExtraWatchIPBlockedException $e) { die($this->config->getConfigValue('EXTRAWATCH_BLOCKING_MESSAGE')); } /* * The following piece of code identifies the userAgent and inserts the backlink to extrawatch.com * I would really appreciate, that you would keep the this unchanged. * It took me some time to create and maintain this component and to share it with everyone. * This is the least you could kindly do. Thank you. * * CodeGravity.com */ $output = ""; // reset output; $title = ""; if (!_EW_CLOUD_MODE) { $title = "Heatmap, Real-time analytics, Conversion tracking and anti-spam for Joomla, Wordpress, Drupal, Magento and Prestashop"; } $output .= $extraWatch->helper->renderHTMLCodeSnippet(_EW_PROJECT_ID); return $output; } } try { if (!defined('ENV') | $env->getEnvironmentName() == "nocms") echo renderExtraWatchAgent(); } catch (ExtraWatchInputException $e) { ExtraWatchLog::error($e->getMessage()); }