| Server IP : 198.38.94.67 / Your IP : 216.73.217.178 Web Server : LiteSpeed System : Linux d6054.dxb1.stableserver.net 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64 User : azfilmst ( 1070) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/local/lsws/admin/html.6.3.3/classes/ |
Upload File : |
<?php
class CVal
{
private $_v = null; //value
private $_e = null; //err
public function __construct($v, $e=null)
{
$this->_v = $v;
$this->_e = $e;
}
public function GetVal()
{
return $this->_v;
}
public function SetVal($v)
{
$this->_v = $v;
}
public function HasVal()
{
// 0 is valid
return ($this->_v !== null && $this->_v !== '');
}
public function GetErr()
{
return $this->_e;
}
public function SetErr($e)
{
$this->_e = $e;
}
public function HasErr()
{
return $this->_e != null;
}
}
class ConfData
{
public $_data;
public $_path;
public $_type; //{'serv','admin','vh','tp'}
public $_id;
public function __construct($type, $path, $id=null)
{
$this->_data = [];
$this->_type = $type;
$this->_path = $path;
$this->_id = $id;
}
public function setId($id)
{
$this->_id = $id;
}
}