uawdijnntqw1x1x1
IP : 216.73.216.163
Hostname : yjpwxulqtt
Kernel : Linux yjpwxulqtt 5.15.0-126-generic #136-Ubuntu SMP Wed Nov 6 10:38:22 UTC 2024 x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,exec,system,passthru,shell_exec,proc_open,popen
OS : Linux
PATH:
/
home
/
user
/
web
/
pansionat-v-yaroslavle.ru
/
public_html
/
bitrix
/
admin
/
..
/
js
/
security
/
admin
/
page
/
otp.js
/
/
(function initialize(BX) { function initOtpAdminPage() { var settings = BX('settings'); if (!settings) return; settings = JSON.parse(settings.innerHTML); BX.Access.Init({ other: {disabled:true} }); BX.Access.SetSelected(settings['rights']); BX.bind( BX('otp_mandatory_using'), 'click', onSwitchMandatory.bind(BX('otp_mandatory_using')) ); BX.bind( BX('add_access'), 'click', BX.Access.ShowForm.bind(null, { callback: function(obSelected) { insertAccess(obSelected) } }) ); [].map.call( window.document.querySelectorAll('a[data-role="delete-access"]'), function bindDeleteClick(el) { BX.bind( el, 'click', onDeleteAccess.bind(el) ); } ); } function onSwitchMandatory() { var isActive = this.checked; var hiddenElements = document.body.querySelectorAll('[data-hide-by-mandatory="yes"]'); [].forEach.call( hiddenElements, function switchHidden(element) { if (isActive) element.style.display = ''; else element.style.display = 'none'; } ) } function insertAccess(rights) { var div = BX('bx_access_div'); for(var provider in rights) { if (!rights.hasOwnProperty(provider)) continue; for(var id in rights[provider]) { if (!rights[provider].hasOwnProperty(id)) continue; var pr = BX.Access.GetProviderPrefix(provider, id); var newDiv = BX.create('div', { 'style': { 'marginBottom': '4px' }, 'children': [ BX.create('input', { 'props': { 'type': 'hidden', 'name': 'otp_mandatory_rights[]', 'value': id } }), BX.create('span', { 'text': (pr? pr+': ':'') + rights[provider][id].name + ' ' }) ] }); var newA = BX.create('a', { 'props': { 'href': 'javascript:void(0);', 'className': 'access-delete' } }); BX.bind( newA, 'click', onDeleteAccess.bind(newA, id) ); newDiv.appendChild(newA); div.appendChild(newDiv); } } } function onDeleteAccess(code) { var div = BX.findParent(this, {'tag':'div'}); div.parentNode.removeChild(div); if (code) BX.Access.DeleteSelected(code); else BX.Access.DeleteSelected(this.getAttribute('data-code')); } BX.ready(initOtpAdminPage); })(BX);
/home/user/web/pansionat-v-yaroslavle.ru/public_html/bitrix/admin/../js/security/admin/page/otp.js