Хранилища Subversion ant

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

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

/branches/ant/0.9.x/lib/core.php
977,7 → 977,7
}
if ($sVersionID != 0) {
// Режим редактирования
$query = "SELECT * FROM ".$this->prefix."version v JOIN ".$this->prefix."distribution d ON v.dist_id=d.dist_id WHERE v.version_id='".$versionID."'";
$query = "SELECT * FROM ".$this->prefix."version v JOIN ".$this->prefix."distribution d ON v.dist_id=d.dist_id WHERE v.version_id='".$sVersionID."'";
$rq =& $this->db->query($query);
$rq->fetchInto($element);
}
1123,7 → 1123,42
* @return string
*/
public function showRepositoriesForm($repID = 0, $info = "", $reptype = "") {
$sRepID = $this->secure->checkInt($repID);
$sInfo = $this->secure->checkStr($info, 1);
$sRType = $this->secure->checkStr($reptype, 1);
if ($sInfo == "") {
$sInfo = "Репозиторий";
}
if ($sRType == "") {
$sRType = "deb";
}
if ($sRepID != 0) {
// Режим редактирования
$query = "SELECT * FROM ".$this->prefix."repository r ";
$query .= "JOIN ".$this->prefix."rtype rt ON r.rtype_id=rt.rtype_id ";
$query .= "JOIN ".$this->prefix."protos p ON r.proto_id=p.proto_id ";
$query .= "JOIN ".$this->prefix."rephost h ON r.rhost_id=h.rhost_id ";
$query .= "JOIN ".$this->prefix."repfolder f ON r.rfolder_id=f.rfolder_id ";
$query .= "JOIN ".$this->prefix."version v ON r.version=v.version_id ";
$query .= "JOIN ".$this->prefix."distribution d ON v.dist_id=d.dist_id ";
$query .= "JOIN ".$this->prefix."dtype dt ON d.disttype=dt.type_id ";
$query .= "WHERE r.rep_id='".$sRepID."'";
$rq =& $this->db->query($query);
$rq->fetchInto($element);
$sRType = $this->secure->checkStr($element["type"],1);
}
 
$show = "<fieldset><legend>".$sInfo."</legend>\n";
$show .= "<div class='inputbox'><label for='rname'>Название репозитория:</label> <input type='text' name='rname' value='".$this->secure->checkStr($element["repname"],1)."'></div>\n";
$show .= "<div class='inputbox'><label for='rinfo'>Описание репозитория:</label> <input type='text' name='rinfo' value='".$this->secure->checkStr($element["repinfo"],1)."'></div>\n";
$show .= "<div class='inputbox'><label for='rkey'>Ключ подписи репозитория:</label> <input type='text' name='rkey' value='".$this->secure->checkStr($element["repkey"],1)."'></div>\n";
$show .= "<div class='inputbox'><label for='rproto'>Протокол доступа:</label> <input type='text' name='rproto' value='".$this->secure->checkStr($element["proto"],1)."'></div>\n";
$show .= "<div class='inputbox'><label for='rhost'>Хост репозитория:</label> <input type='text' name='rhost' value='".$this->secure->checkStr($element["rhost"],1)."'></div>\n";
$show .= "<div class='inputbox'><label for='rfolder'>Корневая папка:</label> <input type='text' name='rfolder' value='".$this->secure->checkStr($element["rfolder"],1)."'></div>\n";
$show .= "<div class='inputbox'><input type='submit' value=' Отправить данные '></div></fieldset>\n";
 
return $show;
return $show;
}
}