154,6 → 154,27 |
return $show; |
} |
|
// Добавление поддержки нового apt-дистрибутива |
function addDistribution($distname, $disttype, $distua = 1, $distlogo = 0) { |
$result = array(); |
$sDName = $this->secure->checkStr($distname); |
$sDType = $this->secure->checkInt($disttype); |
$sDUAgt = $this->secure->checkStr($distua); |
$sDLogo = $this->secure->checkInt($distname); |
|
$query = "INSERT INTO ".$this->prefix."distribution SET distname='".$sDName."', distua='".$sDUAgt."', disttype='".$sDType."', distlogo='".$sDLogo."'"; |
$rq =& $this->db->query($query); |
if (PEAR::isError($this->db)) { |
$result["ERR"] = 1; |
$result["ERRINFO"] = $this->db->getMessage(); |
} else { |
$rq->fetchInto($element); |
$result["ERR"] = 0; |
} |
|
return $result; |
} |
|
} |
|
?> |