⚝
One Hat Cyber Team
⚝
Your IP:
160.79.111.147
Server IP:
162.254.39.145
Server:
Linux premium289.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
Server Software:
LiteSpeed
PHP Version:
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
local
/
lsws
/
admin
/
html.6.3.2
/
classes
/
ws
/
View File Name :
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; } }