GRAYBYTE WORDPRESS FILE MANAGER7339

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /var/softaculous/wp/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /var/softaculous/wp//install.js
//////////////////////////////////////////////////////////////
// install.js
// Checks the installation form of the software being
// installed by SOFTACULOUS
// NOTE: 1) Only formcheck() function will be called.
//       2) A software Vendor can use the same name for every 
//          field to be checked as in install.xml . It can be
//          called using $('fieldname').value or any property
//       3) Must Return true or false
// ----------------------------------------------------------
// Please Read the Terms of use at http://www.softaculous.com
// ----------------------------------------------------------
// (c)Softaculous Inc.
//////////////////////////////////////////////////////////////

function formcheck(){
	
	//Check the Admin Email
	if(window.check_punycode){
		if(!check_punycode($('admin_email').value)){
			alert('{{err_ademail}}');
			return false;
		}
		
		return true;
	}
	
	return true;
};

jQuery(document).ready(function(){
	
	const loginizerInput = document.getElementById('loginizer');
	const socialCheckbox = document.getElementById('lz-social-login');
	
	if (loginizerInput && socialCheckbox) {
		
		// Get the closest <label> ancestor of the hidden input
		const label = loginizerInput.closest('label');
		
		if (label) {
			
			// Inject new span after the original .sai_exp2
			const saiExp2 = label.querySelector('.sai_exp2');

			// Avoid injecting multiple times
			if (!label.querySelector('.lz-social-status')) {
				
				const socialStatusSpan = document.createElement('span');
				socialStatusSpan.className = 'sai_exp2 lz-social-status';
				socialStatusSpan.style.cssText =
				'overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: 1;-webkit-box-orient: vertical;line-height:1.3;';
				socialStatusSpan.innerHTML =
				'Social Login - <span style="color:green;">Enabled</span> <span style="color:white;background-color:#FF9800;padding: 2px 5px;border-radius:6px;">New</span>';

				// Insert after sai_exp2
				saiExp2.parentNode.insertBefore(socialStatusSpan, saiExp2.nextSibling);
			}
			
			label.onclick = function (e) {
	
				e.preventDefault();
				
				// Ignore clicks on the loginizer or social login checkboxes
				if (
					e.target === loginizerInput ||
					e.target === socialCheckbox
				) {
					return; // Do nothing
				}
				
				loginizer_select_plugin(label);
			};
		}
	}
	
});

var lzClickCounter = 0;

function loginizer_select_plugin(e) {
	
	var inputElement = e.querySelector("input[type=\"checkbox\"]");
	inputElement.style.display = "none";
	
	var check_icon = e.querySelector("i.fas.fa-check-square");

	// Increase click count
	lzClickCounter++;

	// Get checkboxes
	const loginizer = document.getElementById('loginizer');
	const social = document.getElementById('lz-social-login');
	const statusText = document.getElementById('social-status');
	const statusSpan = e.querySelector('.lz-social-status span');

	// Determine toggle state using modulo
	const state = lzClickCounter % 3;

	if (state === 1) {
		
		// 1st click: uncheck social, keep loginizer checked
		social.checked = false;
		loginizer.checked = true;
		statusSpan.textContent = 'Disabled';
		statusSpan.style.color = 'red';
		
		e.style.backgroundColor = "#edfffd";
		e.style.border = "1px solid green";
		check_icon.style.display = "block";
	} else if (state === 2) {
		
		// 2nd click: uncheck both
		social.checked = false;
		loginizer.checked = false;
		statusSpan.textContent = 'Disabled';
		statusSpan.style.color = 'red';
		
		e.style.backgroundColor = "";
		e.style.border = "1px solid #9d989878";
		check_icon.style.display = "none";
	} else {
		
		// 3rd click (reset): check both
		social.checked = true;
		loginizer.checked = true;
		statusSpan.textContent = 'Enabled';
        statusSpan.style.color = 'green';
		
		e.style.backgroundColor = "#edfffd";
		e.style.border = "1px solid green";
		check_icon.style.display = "block";
		
		lzClickCounter = 0;
	}

	// Optional: toggle .sai_checkbox_tick visibility if you're visually showing tick
	const tickIcon = e.querySelector('.sai_checkbox_tick');
	if (loginizer.checked) {
		tickIcon.style.display = 'block';
	} else {
		tickIcon.style.display = 'none';
	}
	
	if(inputElement.disabled){
		e.style.backgroundColor = "#f0f0f0";
		e.style.color = "#6c757d";
	}
	
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 13 2025 08:30:22
root / root
0755
images
--
July 01 2025 08:31:15
root / root
0755
languages
--
July 01 2025 08:31:15
root / root
0755
php53
--
July 01 2025 08:31:15
root / root
0755
php56
--
July 01 2025 08:31:15
root / root
0755
php71
--
July 01 2025 08:31:15
root / root
0755
php81
--
July 01 2025 08:31:15
root / root
0755
php82
--
July 01 2025 08:31:15
root / root
0755
plugins
--
July 01 2025 08:31:15
root / root
0755
.htaccess
0.471 KB
December 16 2021 09:02:18
root / root
0644
_htaccess
0.54 KB
December 16 2021 09:02:18
root / root
0644
_index.php
0.058 KB
December 16 2021 09:02:18
root / root
0644
_wp-config.php
3.368 KB
April 16 2025 06:47:40
root / root
0644
add_user.php
0.45 KB
December 16 2021 09:02:18
root / root
0644
backup.php
3.026 KB
June 30 2025 11:57:48
root / root
0644
check_charset.php
2.019 KB
December 16 2021 09:02:18
root / root
0644
clone.php
32.19 KB
June 30 2025 11:57:48
root / root
0644
clone.xml
0.485 KB
December 16 2021 09:02:18
root / root
0644
edit.php
9.434 KB
June 30 2025 11:57:48
root / root
0644
edit.xml
1.759 KB
October 03 2023 08:03:52
root / root
0644
extend.php
101.714 KB
June 30 2025 11:57:48
root / root
0644
fileindex.php
0.284 KB
December 16 2021 09:02:18
root / root
0644
import.php
6.509 KB
June 30 2025 11:57:48
root / root
0644
info.xml
15.66 KB
June 30 2025 11:57:10
root / root
0644
install.js
4.203 KB
June 30 2025 11:57:10
root / root
0644
install.php
32.06 KB
June 30 2025 11:57:48
root / root
0644
install.xml
9.705 KB
April 07 2025 07:21:42
root / root
0644
md5
4.508 KB
June 30 2025 11:57:48
root / root
0644
multisite.sql
37.462 KB
July 01 2025 08:31:15
root / root
0644
notes.txt
6.076 KB
May 02 2025 08:21:10
root / root
0644
plugin_activate.php
0.582 KB
December 16 2021 09:02:18
root / root
0644
plugin_deactivate.php
0.599 KB
December 16 2021 09:02:18
root / root
0644
post_download.json
0.07 KB
May 25 2022 11:00:14
root / root
0644
sign_on.php
3.28 KB
January 28 2025 09:04:22
root / root
0644
soft.htaccess
0.124 KB
December 16 2021 09:02:18
root / root
0644
update_pass.php
0.588 KB
April 16 2025 06:47:40
root / root
0644
upgrade.php
14.227 KB
June 30 2025 11:57:48
root / root
0644
upgrade.xml
1.615 KB
November 13 2024 09:30:38
root / root
0644
wp-cli
6.19 MB
July 15 2022 05:49:14
root / root
0755
wp-config.php
3.082 KB
November 13 2024 09:30:38
root / root
0644
wp.sql
30.17 KB
July 01 2025 08:31:15
root / root
0644
wp.zip
27.01 MB
July 01 2025 08:31:15
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF