Хранилища Subversion ant

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

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

/branches/ant/0.9.x/lib/core.php
299,14 → 299,14
* @return string
*/
public function showRepList($version, $reptype, $format = 'html') {
// $query = "SELECT rtype FROM ".$this->prefix."rtype WHERE rtype_id='".$this->secure->checkInt($reptype)."'";
// $rq =& $this->db->query($query);
// $rq->fetchInto($types);
$query = "SELECT rtype FROM ".$this->prefix."rtype WHERE rtype_id='".$this->secure->checkInt($reptype)."'";
$rq =& $this->db->query($query);
$rq->fetchInto($types);
$query = "SELECT * FROM ".$this->prefix."repository WHERE version='".$this->secure->checkInt($version)."' AND rtype_id='".$this->secure->checkInt($reptype)."'";
$rq =& $this->db->query($query);
switch ($format) {
case 'html':
$show = "<fieldset><legend>".$this->secure->checkStr($types["rtype"],1)."</legend>\n";
$show = $version.":".$reptype."<fieldset><legend>".$this->secure->checkStr($types["rtype"],1)."</legend>\n";
while ($rq->fetchInto($types)) {
$show .= "<div class='repository'><input type='checkbox' name='repository[]' value='".$element["rep_id"]."'> ".$this->secure->checkStr($element["repname"],1)." &mdash; ".$this->secure->checkStr($element["repinfo"],1)."</div>\n";
}