175,26 → 175,6 |
return $result; |
} |
|
// Добавление поддержки новой версии apt-дистрибутива |
function addDistVersion($distID, $version, $vname = "", $vcodename = "") { |
$result = array(); |
$sDistID = $this->secure->checkStr($distID); |
$sDVersion = $this->secure->checkStr($version); |
$sDVName = $this->secure->checkStr($vname); |
$sDVCName = $this->secure->checkInt($vcodename); |
|
$query = "INSERT INTO ".$this->prefix."version SET dist_id='".$sDistID."', vname='".$sDVName."', version='".$sDVersion."', vcodename='".$sDVCName."'"; |
$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; |
} |
// Отображение типа дистрибутива |
function showDistTypeForm($name = "dtype",$type = 0) { |
$query = "SELECT * FROM ".$this->prefix."dtype"; |
241,4 → 221,4 |
|
} |
|
?> |
?> |