<?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; } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
CLIENT.php | File | 9.1 KB | 0644 |
|
ConfCenter.php | File | 32.13 KB | 0644 |
|
ConfValidation.php | File | 994 B | 0644 |
|
DATTR_HELP_inc.php | File | 237.63 KB | 0644 |
|
DAttr.php | File | 2.17 KB | 0644 |
|
DPageDef.php | File | 13.6 KB | 0644 |
|
DTblDef.php | File | 118.34 KB | 0644 |
|
GUI.php | File | 2.35 KB | 0644 |
|
PRODUCT.php | File | 2.27 KB | 0644 |
|
ReqProbe.php | File | 5.21 KB | 0644 |
|
STATS.php | File | 8.56 KB | 0644 |
|
Service.php | File | 16.76 KB | 0644 |
|