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_
/
libraries
/
..
/
plugins
/
system
/
rsform.php
/
/
<?php /** * @version 1.2.0 * @package RSform!Pro 1.2.0 * @copyright (C) 2007-2009 www.rsjoomla.com * @license Commercial License, http://www.rsjoomla.com/terms-and-conditions.html */ // no direct access defined( '_JEXEC' ) or die( 'Restricted access' ); jimport( 'joomla.plugin.plugin' ); /** * RSForm! Pro system plugin */ class plgSystemRSForm 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 plgSystemRSForm( &$subject, $config ) { parent::__construct( $subject, $config ); $document =& JFactory::getDocument(); $document->addStyleSheet(JURI::root().'components/com_rsform/front.css','text/css','screen'); $document->addStyleSheet(JURI::root().'components/com_rsform/calendar/calendar.css','text/css','screen'); $document->addScript(JURI::root().'components/com_rsform/controller/functions.js','text/javascript'); } function onAfterRender() { global $mainframe, $RSadapter; if ($mainframe->isAdmin()) return; // Load RSForm! Pro files require_once(JPATH_SITE.'/components/com_rsform/controller/adapter.php'); require_once(JPATH_SITE.'/components/com_rsform/controller/functions.php'); require_once(JPATH_SITE.'/components/com_rsform/controller/validation.php'); // Initialize RSForm! Pro adapter $RSadapter = new RSadapter(); // Require backend language file require_once(_RSFORM_FRONTEND_ABS_PATH.'/languages/'._RSFORM_FRONTEND_LANGUAGE.'.php'); $find = array(); $replace = array(); $pattern = '#\{rsform ([0-9]+)\}#i'; $content =& JResponse::getBody(); preg_match_all($pattern, $content, $matches); foreach ($matches[1] as $i => $formId) { $find[] = $matches[0][$i]; $replace[] = $this->getForm($formId); } $content = str_replace($find,$replace,$content); JResponse::setBody($content); } function getForm($formId) { global $RSadapter; $RSadapter = new RSadapter(); $output = ''; if(isset($_SESSION['form'][$formId]['thankYouMessage']) && !empty($_SESSION['form'][$formId]['thankYouMessage'])) { $output .= RSshowThankyouMessage($formId); } else { if(!empty($_POST['form']['formId']) && $_POST['form']['formId'] == $formId) { $invalid = RSprocessForm($formId); if($invalid) { //the invalid variable is returned $output .= RSshowForm($formId, $_POST['form'], $invalid); } } else { if(isset($_SESSION['form'][$formId]['thankYouMessage']) && empty($_SESSION['form'][$formId]['thankYouMessage'])) { unset($_SESSION['form'][$formId]['thankYouMessage']); //is there a return url? $query = mysql_query("SELECT ReturnUrl FROM `{$RSadapter->tbl_rsform_forms}` WHERE `formId` = '$formId'"); $returnUrl = mysql_fetch_assoc($query); if(!empty($returnUrl['ReturnUrl'])) { if(!isset($_SESSION['form'][$formId]['submissionId']))$_SESSION['form'][$formId]['submissionId'] = ''; $returnUrl['ReturnUrl'] = RSprocessField($returnUrl['ReturnUrl'],$_SESSION['form'][$formId]['submissionId']); unset($_SESSION['form'][$formId]['submissionId']); $RSadapter->redirect($returnUrl['ReturnUrl']); } $output .= _RSFORM_FRONTEND_THANKYOU; } $output .= RSshowForm($formId); } } return $output; } }
/home/poliximo/public_html/4690b/../home_/libraries/../plugins/system/rsform.php