uawdijnntqw1x1x1
IP : 216.73.216.168
Hostname : server.fattispazio.it
Kernel : Linux server.fattispazio.it 3.10.0-1160.144.1.el7.tuxcare.els4.x86_64 #1 SMP Tue Apr 7 08:40:40 UTC 2026 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
poliximo
/
public_html
/
4690b
/
..
/
home_
/
cache
/
..
/
plugins
/
system
/
rsfpgoogle.php
/
/
<?php /** * @version 1.2.0 * @package RSform!Pro 1.2.0 * @copyright (C) 2007-2009 www.rsjoomla.com * @license GPL License, http://www.gnu.org/licenses/gpl-2.0.html */ // no direct access defined( '_JEXEC' ) or die( 'Restricted access' ); jimport( 'joomla.plugin.plugin' ); /** * RSForm! Pro system plugin */ class plgSystemrsfpgoogle extends JPlugin { /** * Constructor * * For php4 compatibility we must not use the __constructor as a constructor for plugins * because func_get_args ( void ) returns a copy of all passed arguments NOT references. * This causes problems with cross-referencing necessary for the observer design pattern. * * @access protected * @param object $subject The object to observe * @param array $config An array that holds the plugin configuration * @since 1.0 */ function plgSystemrsfpgoogle( &$subject, $config ) { parent::__construct( $subject, $config ); $this->loadLanguage( 'plg_system_rsfpgoogle' ); } /* Event Triggered Functions */ function rsfp_bk_onAfterShowConfigurationTabs() { global $RSadapter; $formId = intval(JRequest::getVar('formId')); $RSadapter->startTab(JText::_('RSFP_GOOGLE_LABEL'),"google"); $this->googleConfigurationScreen($formId); $RSadapter->endTab(); } function rsfp_f_onBeforeFormDisplay($args) { global $RSadapter; if($RSadapter->config['google.code'] != '') $args['formLayout'] .= "\n".'<script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src=\'" + gaJsHost + "google-analytics.com/ga.js\' type=\'text/javascript\'%3E%3C/script%3E")); </script> <script type="text/javascript"> try { var pageTracker = _gat._getTracker("'.$RSadapter->config['google.code'].'"); pageTracker._trackPageview(); } catch(err) {}</script>'; } function rsfp_f_onAfterShowThankyouMessage($args) { global $RSadapter; $db =& JFactory::getDBO(); $db->setQuery("SELECT FormName FROM #__rsform_forms WHERE FormId = '".$args['formId']."'"); $formName = $db->loadResult(); if($RSadapter->config['google.code'] != '') $args['output'] .= "\n".'<script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src=\'" + gaJsHost + "google-analytics.com/ga.js\' type=\'text/javascript\'%3E%3C/script%3E")); </script> <script type="text/javascript"> try { var pageTracker = _gat._getTracker("'.$RSadapter->config['google.code'].'"); pageTracker._trackPageview(\''.$formName.'\'); } catch(err) {}</script>'; } /* Additional Functions */ function googleConfigurationScreen() { global $RSadapter; ?> <div id="page-google"> <table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <td valign="top"> <table class="adminform"> <tr> <td width="170"> <label for="code"> <?php echo JText::_( 'RSFP_GOOGLE_CODE' ).':'; ?> </label> </td> <td> <input type="text" name="rsformConfig[google.code]" value="<?php echo $RSadapter->config['google.code']; ?>" /> </td> </tr> </table> </td> </tr> </table> </div> <?php } }
/home/poliximo/public_html/4690b/../home_/cache/../plugins/system/rsfpgoogle.php