403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /home/bitrix/ext_www/ilovecveti.ru/bitrix/modules/translate/lib/controller/index/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/ilovecveti.ru/bitrix/modules/translate/lib/controller/index/collector.php
<?php
namespace Bitrix\Translate\Controller\Index;

use Bitrix\Translate;


class Collector extends Translate\Controller\Controller
{
	const SETTING_ID = 'TRANSLATE_INDEX';

	const ACTION_COLLECT_LANG_PATH = 'collectLangPath';
	const ACTION_COLLECT_PATH = 'collectPath';
	const ACTION_COLLECT_FILE = 'collectFile';
	const ACTION_COLLECT_PHRASE = 'collectPhrase';
	const ACTION_PURGE = 'purge';
	const ACTION_CANCEL = 'cancel';

	/**
	 * Configures actions.
	 *
	 * @return array
	 */
	public function configureActions()
	{
		$configureActions = parent::configureActions();
		$permission = new Translate\Controller\CheckPermission(Translate\Permission::READ);

		$configureActions[self::ACTION_COLLECT_LANG_PATH] = [
			'class' => Translate\Controller\Index\CollectLangPath::class,
			'+prefilters' => [
				$permission
			],
		];

		$configureActions[self::ACTION_COLLECT_PATH] = [
			'class' => Translate\Controller\Index\CollectPathIndex::class,
			'+prefilters' => [
				$permission
			],
		];

		$configureActions[self::ACTION_COLLECT_FILE] = [
			'class' => Translate\Controller\Index\CollectFileIndex::class,
			'+prefilters' => [
				$permission
			],
		];

		$configureActions[self::ACTION_COLLECT_PHRASE] = [
			'class' => Translate\Controller\Index\CollectPhraseIndex::class,
			'+prefilters' => [
				$permission
			],
		];

		$configureActions[self::ACTION_PURGE] = [
			'class' => Translate\Controller\Index\Purge::class,
			'+prefilters' => [
				$permission
			],
		];

		$configureActions[self::ACTION_CANCEL] = [
			'+prefilters' => [
				$permission
			],
		];

		return $configureActions;
	}

	/**
	 * @return array
	 */
	public function cancelAction(): array
	{
		$settingId = static::SETTING_ID;

		unset($_SESSION[$settingId]);

		return [
			'STATUS' => Translate\Controller\STATUS_COMPLETED
		];
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit