AnonSec Shell
Server IP : 54.36.91.62  /  Your IP : 216.73.217.112
Web Server : Apache
System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : coopiak ( 151928)
PHP Version : 8.3.23
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/coopiak/amisdesseniors-fr/nice2/components/com_djclassifieds/views/registration/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/amisdesseniors-fr/nice2/components/com_djclassifieds/views/registration/view.html.php
<?php
/**
 * @package DJ-Classifieds
 * @copyright Copyright (C) DJ-Extensions.com, All rights reserved.
 * @license http://www.gnu.org/licenses GNU/GPL
 * @author url: http://dj-extensions.com
 * @author email contact@dj-extensions.com
 */

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

class DJClassifiedsViewRegistration extends JViewLegacy
{
	private static $_viewname = 'registration';

	public function __construct($config = array())
	{
		parent::__construct($config);
		$par = JFactory::getApplication()->getParams('com_djclassifieds');
		
		$this->_addPath('template', JPATH_ROOT.'/components/com_djclassifieds/themes/'.$par->get('theme','default').'/views/'.self::$_viewname);
	}
	
	function display($tpl = NULL)
	{
		$app = JFactory::getApplication();
		$user = JFactory::getUser();
		$par = $app->getParams('com_djclassifieds');

		if($user->id){
			$app->redirect(JRoute::_(DJClassifiedsSEO::getViewUri('profileedit')), false);
		}

		$userparams = JComponentHelper::getParams('com_users');
		if($userparams->get('allowUserRegistration')=='0'){
			$app->enqueueMessage(JText::_('COM_DJCLASSIFIEDS_USER_REGISTRATION_NOT_ALLOWED'), 'warning');
			$app->redirect(JRoute::_('index.php?option=com_users&view=login', false));
		}

		$model = $this->getModel();
		$menus = $app->getMenu('site');
		$m_active = $menus->getActive();

		DJClassifiedsTheme::loadLanguage('com_users', null);

		DJClassifiedsTheme::includeDJImageAssets();
		DJClassifiedsTheme::includeCalendarScripts();
		DJClassifiedsTheme::includeMapsScript($par);
		JHTML::_('bootstrap.tooltip');
		\Joomla\CMS\HTML\HTMLHelper::_('bootstrap.modal'); // show_in_modal fields

		$this->reg_data = array_merge($app->getUserState('com_users.registration.data', array()), $app->getUserState('djcf.registration.data', array()));

		$regions = $model->getRegions($par->get('reg_ordering', 'ordering,name'));
		$this->reg_path_arr = !empty($this->reg_data['regions']) ? $model->getTreePathArray(DJClassifiedsTheme::getIdFromTree($this->reg_data['regions']), $regions) : null;
		
		$custom_contact_fields = $model->getCustomContactFields(); // backward view compatibility
		$custom_fields_groups = DJClassifiedsField::getProfileFieldGroups();
		$extra_rows = $app->triggerEvent('onUserRegistrationForm', array(&$par));
		foreach($extra_rows as $key => $plugin_row){
			if(strpos('id="terms_and_conditions"', $plugin_row) !== false){ // backward compatibility - terms param moved to global
				unset($extra_rows[$key]);
			}
		}

		$this->extra_rows_profile = $app->triggerEvent('onDJClassifiedsDisplayUserRegistrationProfile', array());
		$this->plugin_sections = $app->triggerEvent('onRegistrationEditFormSections', array(&$custom_fields_groups, &$par));

		$terms_link = '';
		if($par->get('terms',1)>0 && $par->get('terms_article_id',0)>0){
			$terms_link = $model->getTermsLink($par->get('terms_article_id',0), $par->get('terms',0)==2);	
		}
		
		$privacy_policy_link = '';
		if($par->get('privacy_policy',0)>0 && $par->get('privacy_policy_article_id',0)>0){
			$privacy_policy_link = $model->getTermsLink($par->get('privacy_policy_article_id',0), $par->get('privacy_policy',0)==2);
		}

		$this->group_id = !empty($m_active) && !empty($m_active->getParams()) ? $m_active->getParams()->get('registration_gid', 0) : 0;

		DJClassifiedsSEO::setMeta();
		DJClassifiedsSEO::setSiteNameInPageTitle();
		$this->page_heading = DJClassifiedsSEO::getPageHeading($par);

		if($app->input->cookie->get('djcf_latlon')){
			$lat_lon = explode('_', $app->input->cookie->get('djcf_latlon'));
			$this->lat = $lat_lon[0];
			$this->lon = $lat_lon[1];
		}else{
			$loc_coord = DJClassifiedsGeocode::getLocation($par->get('map_lat_lng_address','England, London'));
			$this->lat = !empty($loc_coord) ? $loc_coord['lat'] : '';
			$this->lon = !empty($loc_coord) ? $loc_coord['lng'] : '';
		}

		$this->form = $model->getForm($this->reg_data);
		$this->custom_contact_fields = $custom_contact_fields; // view backward compatibility
		$this->custom_fields_groups = $custom_fields_groups;
		$this->extra_rows = $extra_rows;
		$this->m_active = $m_active; // view backward compatibility
		$this->terms_link = $terms_link;
		$this->privacy_policy_link = $privacy_policy_link;
		$this->regions = $regions;
		$this->par = $par;
		
		parent::display();
	}
}

Anon7 - 2022
AnonSec Team