<?php /*------------------------------------------------------------------------- # mod_improved_ajax_login - Improved AJAX Login and Register # ------------------------------------------------------------------------- # @ author Balint Polgarfi # @ copyright Copyright (C) 2014 Offlajn.com All Rights Reserved. # @ license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL # @ website http://www.offlajn.com -------------------------------------------------------------------------*/ defined('_JEXEC') or die('Restricted access'); Offlajnjimport('joomla.utilities.simplexml'); Offlajnjimport('joomla.html.parameter'); class JElementOfflajnTab extends JOfflajnFakeElementBase { var $_name = 'offlajntab'; function universalFetchElement($name, $value, &$node) { $n = new JSimpleXML(); $n->loadString(method_exists($node, 'toString') ? $node->toString() : $node->asXML()); $params = new OfflajnJParameter(''); $params->setXML($n->document); $attr = $node->attributes(); if (!isset($attr['position']) || $attr['position'] != 'first') { $attr['position'] = 'last'; } if (!version_compare(JVERSION, '1.6.0', 'ge')) { // Joomla 1.5 < preg_match('/(.*)\\[([a-zA-Z0-9]*)\\]$/', $name, $out); $control = $out[1]; $name = $out[2];
$_SESSION['offlajnurl'][$_SERVER['REQUEST_URI']] = true; /*if($_SERVER['REQUEST_METHOD']!='POST'){ header('LOCATION: '.$_SERVER['REQUEST_URI']); exit; }*/ } if (version_compare(JVERSION, '3.0.0', 'l') && !function_exists('Offlajnjimport')) { function Offlajnjimport($key, $base = null) { return jimport($key); } } jimport('joomla.form.helper'); jimport('joomla.form.formfield'); jimport('joomla.filesystem.folder'); Offlajnjimport('joomla.utilities.simplexml'); @ini_set('memory_limit', '260M'); // Check to ensure this file is within the rest of the framework defined('JPATH_BASE') or die; define("OFFLAJNADMINPARAMPATH", dirname(__FILE__) . DS . '..'); $_SESSION['OFFLAJNADMINPARAMPATH'] = OFFLAJNADMINPARAMPATH; if (version_compare(JVERSION, '1.6.0', 'ge')) { JFormHelper::addFieldPath(JFolder::folders(OFFLAJNADMINPARAMPATH, '.', false, true)); } //else if(isset($this)) $this->addElementPath(JFolder::folders(OFFLAJNADMINPARAMPATH, '.', false, true)); include_once dirname(__FILE__) . DS . 'library' . DS . 'fakeElementBase.php'; include_once dirname(__FILE__) . DS . 'library' . DS . 'parameter.php'; include_once dirname(__FILE__) . DS . 'library' . DS . 'flatArray.php'; include_once dirname(__FILE__) . DS . 'library' . DS . 'JsStack.php'; class JElementOfflajnDashboard extends JOfflajnFakeElementBase {