| Current Path : /proc/self/root/proc/self/root/tmp/ |
| Current File : //proc/self/root/proc/self/root/tmp/php2eO3xz |
<component name="ProjectCodeStyleConfiguration">
<code_scheme name="Project" version="173">
<XML>
<option name="XML_LEGACY_SETTINGS_IMPORTED" value="true" />
</XML>
</code_scheme>
</component><component name="ProjectCodeStyleConfiguration">
<state>
<option name="PREFERRED_PROJECT_CODE_STYLE" value="Nextendweb" />
</state>
</component><component name="InspectionProjectProfileManager">
<profile version="1.0" is_locked="false">
<option name="myName" value="Project Default" />
</profile>
</component><?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module><?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="PublishConfigData" serverName="wpfree">
<serverData>
<paths name="j">
<serverdata>
<mappings>
<mapping local="$PROJECT_DIR$" web="/" />
</mappings>
</serverdata>
</paths>
<paths name="local joomla">
<serverdata>
<mappings>
<mapping local="$PROJECT_DIR$" web="/" />
</mappings>
</serverdata>
</paths>
<paths name="local.nextendweb.com">
<serverdata>
<mappings>
<mapping local="$PROJECT_DIR$" web="/" />
</mappings>
</serverdata>
</paths>
<paths name="wpfree">
<serverdata>
<mappings>
<mapping local="$PROJECT_DIR$" web="/" />
</mappings>
</serverdata>
</paths>
</serverData>
</component>
</project><?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding">
<file url="PROJECT" charset="UTF-8" />
</component>
</project><?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/Nextend.iml" filepath="$PROJECT_DIR$/.idea/Nextend.iml" />
</modules>
</component>
</project><?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
</component>
</project><?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="6ba32d09-2177-4f3c-9f5d-8e55354e4e20" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/SmartSlider3/Platform/Joomla/AdministratorComponent.php" beforeDir="false" afterPath="$PROJECT_DIR$/SmartSlider3/Platform/Joomla/AdministratorComponent.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/SmartSlider3/Platform/Joomla/Plugin/PluginInstallerSmartSlider3.php" beforeDir="false" afterPath="$PROJECT_DIR$/SmartSlider3/Platform/Joomla/Plugin/PluginInstallerSmartSlider3.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/SmartSlider3/Platform/WordPress/HelperInstall.php" beforeDir="false" afterPath="$PROJECT_DIR$/SmartSlider3/Platform/WordPress/HelperInstall.php" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="ComposerSettings">
<execution />
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/.." />
</component>
<component name="ProjectId" id="1xGAgUEe4KZ4fhTaQawWnqH6R6O" />
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
<component name="ProjectViewState">
<option name="autoscrollFromSource" value="true" />
<option name="autoscrollToSource" value="true" />
<option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent">
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
<property name="WebServerToolWindowFactoryState" value="true" />
<property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
<property name="nodejs_npm_path_reset_for_default_project" value="true" />
<property name="options.lastSelected" value="preferences.sourceCode.HTML" />
<property name="options.splitter.details.proportions" value="0.2" />
<property name="options.splitter.main.proportions" value="0.3" />
<property name="settings.editor.selected.configurable" value="Errors" />
<property name="settings.editor.splitter.proportion" value="0.19159772" />
<property name="vue.rearranger.settings.migration" value="true" />
</component>
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="6ba32d09-2177-4f3c-9f5d-8e55354e4e20" name="Default Changelist" comment="" />
<created>1629971162269</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1629971162269</updated>
<workItem from="1629971163425" duration="235000" />
<workItem from="1674739477821" duration="87000" />
<workItem from="1674739622189" duration="602000" />
</task>
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
<option name="version" value="3" />
</component>
<component name="WindowStateProjectService">
<state x="580" y="108" width="1200" height="858" key="find.popup" timestamp="1674740012016">
<screen x="0" y="0" width="1920" height="1040" />
</state>
<state x="580" y="108" width="1200" height="858" key="find.popup/0.0.1920.1040@0.0.1920.1040" timestamp="1674740012016" />
</component>
</project><?php
namespace Nextend\Framework\Acl\Joomla;
use Joomla\CMS\Factory;
use Nextend\Framework\Acl\AbstractPlatformAcl;
class JoomlaAcl extends AbstractPlatformAcl {
private $user = null;
public function __construct() {
$this->user = Factory::getUser();
}
public function authorise($action, $MVCHelper) {
return $this->user->authorise(str_replace('_', '.', $action), 'com_smartslider3');
}
}<?php
namespace Nextend\Framework\Acl;
use Nextend\Framework\Pattern\MVCHelperTrait;
abstract class AbstractPlatformAcl {
/**
* @param $action
* @param MVCHelperTrait $MVCHelper
*
* @return bool
*/
abstract public function authorise($action, $MVCHelper);
}<?php
namespace Nextend\Framework\Acl;
use Nextend\Framework\Acl\Joomla\JoomlaAcl;
use Nextend\Framework\Acl\WordPress\WordPressAcl;
use Nextend\Framework\Pattern\MVCHelperTrait;
class Acl {
/**
* @var AbstractPlatformAcl
*/
private static $instance;
public function __construct() {
self::$instance = new JoomlaAcl();
}
/**
* @param $action
* @param MVCHelperTrait $MVCHelper
*
* @return bool
*/
public static function canDo($action, $MVCHelper) {
return self::$instance->authorise($action, $MVCHelper);
}
}
new Acl();<?php
namespace Nextend\Framework\Application;
use Nextend\Framework\Pattern\SingletonTrait;
use Nextend\Framework\Plugin;
abstract class AbstractApplication {
use SingletonTrait;
protected $key = '';
protected function init() {
//PluggableApplication\Nextend\SmartSlider3\Application\ApplicationSmartSlider3
Plugin::doAction('PluggableApplication\\' . get_class($this), array($this));
}
public function getKey() {
return $this->key;
}
public function enqueueAssets() {
}
}<?php
namespace Nextend\Framework\Application;
use Exception;
use Nextend\Framework\Controller\AbstractController;
use Nextend\Framework\Pattern\GetAssetsPathTrait;
use Nextend\Framework\Pattern\MVCHelperTrait;
use Nextend\Framework\Plugin;
use Nextend\Framework\Request\Request;
use Nextend\Framework\ResourceTranslator\ResourceTranslator;
use Nextend\Framework\Router\Router;
use Nextend\Framework\View\AbstractLayout;
abstract class AbstractApplicationType {
use GetAssetsPathTrait, MVCHelperTrait;
/** @var AbstractApplication */
protected $application;
/** @var Router */
protected $router;
protected $key = '';
/** @var AbstractLayout */
protected $layout;
protected $externalControllers = array();
/**
* AbstractApplicationType constructor.
*
* @param AbstractApplication $application
*
* @throws Exception
*/
public function __construct($application) {
$this->setMVCHelper($this);
$this->application = $application;
ResourceTranslator::createResource('$' . $this->getKey() . '$', self::getAssetsPath(), self::getAssetsUri());
$this->createRouter();
//PluggableApplicationType\Nextend\SmartSlider3\Application\Admin\ApplicationTypeAdmin
Plugin::doAction('PluggableApplicationType\\' . get_class($this), array($this));
}
public function getKey() {
return $this->application->getKey() . '-' . $this->key;
}
protected function createRouter() {
}
public function processRequest($defaultControllerName, $defaultActionName, $ajax = false, $args = array()) {
$controllerName = trim(Request::$REQUEST->getCmd("nextendcontroller"));
if (empty($controllerName)) {
$controllerName = $defaultControllerName;
}
$actionName = trim(Request::$REQUEST->getCmd("nextendaction"));
if (empty($actionName)) {
$actionName = $defaultActionName;
}
$this->process($controllerName, $actionName, $ajax, $args);
}
public function process($controllerName, $actionName, $ajax = false, $args = array()) {
if ($ajax) {
Request::$isAjax = true;
}
/** @var AbstractController $controller */
$controller = $this->getController($controllerName, $ajax);
$controller->doAction($actionName, $args);
}
/**
* @param $controllerName
* @param bool $ajax
*
* @return AbstractController
*/
protected function getController($controllerName, $ajax = false) {
$methodName = 'getController' . ($ajax ? 'Ajax' : '') . $controllerName;
if (method_exists($this, $methodName)) {
return call_user_func(array(
$this,
$methodName
));
} else if (isset($this->externalControllers[$controllerName])) {
return call_user_func(array(
$this->externalControllers[$controllerName],
$methodName
));
}
return $this->getDefaultController($controllerName, $ajax);
}
protected abstract function getDefaultController($controllerName, $ajax = false);
public function getApplication() {
return $this->application;
}
public function getApplicationType() {
return $this;
}
/**
* @return Router
*/
public function getRouter() {
return $this->router;
}
public function enqueueAssets() {
$this->application->enqueueAssets();
}
/**
* @param AbstractLayout $layout
*/
public function setLayout($layout) {
$this->layout = $layout;
}
public function addExternalController($name, $source) {
$this->externalControllers[$name] = $source;
}
public function getLogo() {
return file_get_contents(self::getAssetsPath() . '/images/logo.svg');
}
}<?php
namespace Nextend\Framework\Asset\Css\Less\Formatter;
#[\AllowDynamicProperties]
class Classic {
public $indentChar = " ";
public $break = "\n";
public $open = " {";
public $close = "}";
public $selectorSeparator = ", ";
public $assignSeparator = ":";
public $openSingle = " { ";
public $closeSingle = " }";
public $disableSingle = false;
public $breakSelectors = false;
public $compressColors = false;
public function __construct() {
$this->indentLevel = 0;
}
public function indentStr($n = 0) {
return str_repeat($this->indentChar, max($this->indentLevel + $n, 0));
}
public function property($name, $value) {
return $name . $this->assignSeparator . $value . ";";
}
protected function isEmpty($block) {
if (empty($block->lines)) {
foreach ($block->children as $child) {
if (!$this->isEmpty($child)) return false;
}
return true;
}
return false;
}
public function block($block) {
$ret = '';
if ($this->isEmpty($block)) return $ret;
$inner = $pre = $this->indentStr();
$isSingle = !$this->disableSingle && is_null($block->type) && count($block->lines) == 1;
if (!empty($block->selectors)) {
$this->indentLevel++;
if ($this->breakSelectors) {
$selectorSeparator = $this->selectorSeparator . $this->break . $pre;
} else {
$selectorSeparator = $this->selectorSeparator;
}
$ret .= $pre . implode($selectorSeparator, $block->selectors);
if ($isSingle) {
$ret .= $this->openSingle;
$inner = "";
} else {
$ret .= $this->open . $this->break;
$inner = $this->indentStr();
}
}
if (!empty($block->lines)) {
$glue = $this->break . $inner;
$ret .= $inner . implode($glue, $block->lines);
if (!$isSingle && !empty($block->children)) {
$ret .= $this->break;
}
}
foreach ($block->children as $child) {
$ret .= $this->block($child);
}
if (!empty($block->selectors)) {
if (!$isSingle && empty($block->children)) $ret .= $this->break;
if ($isSingle) {
$ret .= $this->closeSingle . $this->break;
} else {
$ret .= $pre . $this->close . $this->break;
}
$this->indentLevel--;
}
return $ret;
}
}