$tmpconf=$this->db->queryOneRecord("SELECT `value` FROM `sys_config` WHERE `group` = '".$this->db->quote($plugin)."' AND `name` = '".$this->db->quote($key)."'");
if($tmpconf)return$tmpconf['value'];
elsereturnnull;
}else{
if($value===false){
$this->db->query("DELETE FROM `sys_config` WHERE `group` = '".$this->db->quote($plugin)."' AND `name` = '".$this->db->quote($key)."'");
returnnull;
}else{
$this->db->query("REPLACE INTO `sys_config` (`group`, `name`, `value`) VALUES ('".$this->db->quote($plugin)."', '".$this->db->quote($key)."', '".$this->db->quote($value)."')");