403Webshell
Server IP : 209.209.40.120  /  Your IP : 216.73.217.112
Web Server : Microsoft-IIS/10.0
System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586
User : NEWWWW$ ( 0)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /HostingSpaces/admin/tickwaves.co.uk/wwwroot/wp-content/themes/sydney/tests/utils/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /HostingSpaces/admin/tickwaves.co.uk/wwwroot/wp-content/themes/sydney/tests/utils/plugins.js
export async function activatePlugin( slug, page ) {

	await page.goto('http://tests.local/wp-admin/plugins.php');
	
	const disableLink = await page.$(
		`tr[data-slug="${ slug }"] .deactivate a`
	);
	if ( disableLink ) {
		return;
	}
	await page.click( `tr[data-slug="${ slug }"] .activate a` );
	await page.waitForSelector( `tr[data-slug="${ slug }"] .deactivate a` );
}

export async function deactivatePlugin( slug, page ) {

	await page.goto('http://tests.local/wp-admin/plugins.php');

	const deleteLink = await page.$( `tr[data-slug="${ slug }"] .delete a` );
	if ( deleteLink ) {
		return;
	}
	await page.click( `tr[data-slug="${ slug }"] .deactivate a` );
	
	if ( slug === 'elementor' ) {
		await page.click( `.dialog-lightbox-skip` );
		await page.waitForSelector( `tr[data-slug="${ slug }"] .delete a` );
	} else {
		await page.waitForSelector( `tr[data-slug="${ slug }"] .delete a` );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit