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/js/landing/connector/disk/src/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/landing/connector/disk/src/disk.js
type OpenDialogOptions = {
	onSelect: () => {},
};

export class Disk
{
	static openDialog({onSelect}: OpenDialogOptions)
	{
		const urlSelect = '/bitrix/tools/disk/uf.php?action=selectFile&dialog2=Y&SITE_ID=' + BX.message('SITE_ID');
		const dialogName = 'LandingDiskFile';

		BX.ajax.get(urlSelect, 'multiselect=N&dialogName=' + dialogName,
			BX.delegate(function() {
				setTimeout(BX.delegate(function() {
					BX.DiskFileDialog.obElementBindPopup[dialogName].overlay = {
						backgroundColor: '#cdcdcd',
						opacity: '.1'
					};
					BX.DiskFileDialog.obCallback[dialogName] = {
						saveButton: function(tab, path, selected)
						{
							const selectedItem = selected[Object.keys(selected)[0]];
							if (!selectedItem)
							{
								return;
							}

							let fileId = selectedItem.id;
							if (fileId[0] === 'n')
							{
								fileId = fileId.substring(1);
							}

							if (onSelect)
							{
								onSelect(fileId);
							}

						}.bind(this)
					};
					BX.DiskFileDialog.openDialog(dialogName);
				}, this), 10);
			}, this)
		);
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit