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/rospirotorg.ru/bitrix/modules/sale/admin/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/sale/admin/location_import.php
<?php

use Bitrix\Main\Localization\Loc;
use Bitrix\Sale\Location\Admin\Helper;
use Bitrix\Sale\Location\Import\ImportProcess;

/** @global CMain $APPLICATION */

const NO_AGENT_CHECK = true;
const NO_KEEP_STATISTIC = true;

$initialTime = time();
require_once $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/prolog_admin_before.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/sale/prolog.php';

/** @global CAdminPage $adminPage */
global $adminPage;
/** @global CAdminSidePanelHelper $adminSidePanelHelper */
global $adminSidePanelHelper;

$APPLICATION->SetTitle(Loc::getMessage('SALE_LOCATION_IMPORT_TITLE'));

require $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/prolog_admin_after.php';

// check for indexes
$indexes = ImportProcess::getIndexMap();
$absent = [];
if (!empty($indexes) && is_array($indexes))
{
	foreach ($indexes as $name => $params)
	{
		if ((string)$params['TABLE'] !== '' && !($params['DROP_ONLY'] ?? false))
		{
			if (!\Bitrix\Sale\Location\DB\Helper::checkIndexNameExists($name, $params['TABLE']))
			{
				$absent[] =
					'create index ' . $name . ' on ' . $params['TABLE']
					. ' (' . implode(', ', $params['COLUMNS']) . ')'
					. \Bitrix\Sale\Location\DB\Helper::getQuerySeparatorSql()
				;
			}
		}
	}
}

if (!empty($absent) && !$adminSidePanelHelper->isPublicSidePanel())
{
	?>
	<span style="color: #ff0000">
		<?= Loc::getMessage(
			'SALE_LOCATION_IMPORT_NO_INDEXES_WARNING',
			[
				'#ANCHOR_SQL_CONSOLE#' => '<a href="/bitrix/admin/sql.php" target="_blank">',
				'#ANCHOR_END#' => '</a>',
			]
		); ?>
	</span>
	<br />
	<br />
	<pre>
<?= (implode("\n", $absent));?>
	</pre>
	<?php
}
else
{
	$APPLICATION->IncludeComponent(
		'bitrix:sale.location.import',
		'admin',
		[
			'PATH_TO_IMPORT' => Helper::getImportUrl(),
			'INITIAL_TIME' => time(),
		],
		false,
		['HIDE_ICONS' => 'Y']
	);
}

require $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/epilog_admin.php';

Youez - 2016 - github.com/yon3zu
LinuXploit