%PDF- %PDF- 403WebShell
403Webshell
Server IP : 37.220.80.31  /  Your IP : 3.144.104.98
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux 3051455-guretool.twc1.net 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64
User : www-root ( 1010)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,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,
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/www-root/data/www/dev.artlot24.ru/bitrix/modules/forum/install/components/bitrix/forum.pm.list/templates/.default/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/modules/forum/install/components/bitrix/forum.pm.list/templates/.default//script.js
if (typeof oForum != "object" || !oForum)
	var oForum = {};
if (typeof oForum["selectors"] != "object" || !oForum["selectors"])
	oForum["selectors"] = {};
	

function FSelectAll(oObj, name)
{
	if (!oObj || oObj == null || !name)
		return false;
	var selector_name = name.replace(/[^a-z0-9]/ig, "_");
	if (oObj.name.length <= 0)
		oObj.name = 'all_' + selector_name;
	
	var items = oObj.form.getElementsByTagName('input');
	if (items && items != null)
	{
		if (!items.length || (typeof(items.length) == 'undefined'))
		{
			items = [items];
		}
		
		window.oForum["selectors"][selector_name] = {
					"count" : 0,
					"current" : 0};
		for (ii=0; ii < items.length; ii++)
		{
			if (!(items[ii].type == "checkbox" && items[ii].name == name))
				continue;
			window.oForum["selectors"][selector_name]["count"]++;
			OnRowClick(items[ii].value, false, (oObj.checked ? "Y" : "N"));
		}
		if (oObj.checked)
			window.oForum["selectors"][selector_name]["current"] = window.oForum["selectors"][selector_name]["count"];
		else
			window.oForum["selectors"][selector_name]["current"] = 0;
	}
	return;
}

function ChangeAction(action, oObj)
{
	action = ((action == 'delete' || action == 'copy' || action == 'move') ? action : false);
	if (!action)
		return false;
	else if (!oObj || oObj == null)
		return false;
	else if (!oObj.form.action)
		return false;
	oObj.form.action.value = action;
	if 	(action != 'delete')
	{
		oObj.form['folder_id'].value = oObj.form['folder_id_' + action].value;
	}
	
	var items = document.getElementsByName('message[]');
	var data = [];
	if (items && items != null)
	{
		if (!items.length || (typeof(items.length) == 'undefined'))
		{
			items = [items];
		}
		
		for (ii=0; ii < items.length; ii++)
		{
			if (items[ii].type == "checkbox" && items[ii].checked == true)
			{
				data.push(items[ii].value);
			}
		}
	}
	if (data.length <=0)
	{
		alert(oText['no_data']);
		return false;
	}
	else if (oObj.form.FID.value == 4 && action == 'delete' && !confirm(oText['del_message']))
	{
		return false;
	}

	if (oObj.form.submit)
		oObj.form.submit();
}

function OnRowClick(id, oRow, bChecked)
{
	id = parseInt(id);
	if (!(id > 0))
		return false;
	if (!oRow)
		oRow = document.getElementById('message_row_' + id);
	if (!oRow)
		return false;
	var oCheckBox = document.getElementById('message_id_' + id);
	if (!oCheckBox)
		return false;
	bChecked = ((bChecked == "Y" || bChecked == "N") ? bChecked : "U");
	if (bChecked == "U")
		bChecked = (oCheckBox.checked ? "N" : "Y");
	var selector_name = oCheckBox.name.replace(/[^a-z0-9]/ig, "_");
	if (!window.oForum["selectors"][selector_name])
		FSelectAll(oCheckBox.form['all_' + selector_name], oCheckBox.name);

	if (bChecked == "N")
	{
		window.oForum["selectors"][selector_name]["current"]--;
		oCheckBox.checked = false;
		oRow.className = oRow.className.replace(/checked/, '');
	}
	else
	{
		window.oForum["selectors"][selector_name]["current"]++;
		oCheckBox.checked = true;
		oRow.className += " checked ";
	}
	if (oCheckBox.form['all_' + selector_name])
	{
		if (window.oForum["selectors"][selector_name]["current"] == window.oForum["selectors"][selector_name]["count"])
			oCheckBox.form['all_' + selector_name].checked = true;
		else
			oCheckBox.form['all_' + selector_name].checked = false;
	}
}

function OnInputClick(oObj)
{
	if (!oObj)
		return false;
	oObj.checked = (!oObj.checked);
	return;
}

Youez - 2016 - github.com/yon3zu
LinuXploit