Хранилища Subversion ant

Сравнить редакции

Не учитывать пробелы Редакция 355 → Редакция 356

/branches/ant-ng/lib/core.php
175,6 → 175,26
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";
221,4 → 241,4
 
}
 
?>
?>