X7ROOT File Manager
Current Path:
/usr/local/lsws/admin/html.6.2.1/classes/ws
usr
/
local
/
lsws
/
admin
/
html.6.2.1
/
classes
/
ws
/
📁
..
📄
CLIENT.php
(9.1 KB)
📄
ConfCenter.php
(32.13 KB)
📄
ConfValidation.php
(994 B)
📄
DATTR_HELP_inc.php
(239.09 KB)
📄
DAttr.php
(2.17 KB)
📄
DPageDef.php
(13.6 KB)
📄
DTblDef.php
(115.71 KB)
📄
GUI.php
(2.35 KB)
📄
PRODUCT.php
(2.27 KB)
📄
ReqProbe.php
(5.21 KB)
📄
STATS.php
(8.55 KB)
📄
Service.php
(16.76 KB)
Editing: 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; } }
Upload File
Create Folder