403Webshell
Server IP : 66.29.132.122  /  Your IP : 3.148.115.16
Web Server : LiteSpeed
System : Linux business142.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : admazpex ( 531)
PHP Version : 7.2.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/self/root/proc/thread-self/root/usr/local/lsws/admin/html/classes/ws/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/proc/thread-self/root/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;
	}

	
}

Youez - 2016 - github.com/yon3zu
LinuXploit