Хранилища Subversion ant

Редакция

Редакция 554 | Редакция 557 | К новейшей редакции | Весь файл | Не учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS

Редакция 554 Редакция 556
Строка 975... Строка 975...
975
        if ($sInfo == "") {
975
        if ($sInfo == "") {
976
            $sInfo = "Версия дистрибутива";
976
            $sInfo = "Версия дистрибутива";
977
        }
977
        }
978
        if ($sVersionID != 0) {
978
        if ($sVersionID != 0) {
979
            // Режим редактирования
979
            // Режим редактирования
980
            $query = "SELECT * FROM ".$this->prefix."version v JOIN ".$this->prefix."distribution d ON v.dist_id=d.dist_id WHERE v.version_id='".$versionID."'";
980
            $query = "SELECT * FROM ".$this->prefix."version v JOIN ".$this->prefix."distribution d ON v.dist_id=d.dist_id WHERE v.version_id='".$sVersionID."'";
981
            $rq =& $this->db->query($query);
981
            $rq =& $this->db->query($query);
982
            $rq->fetchInto($element);
982
            $rq->fetchInto($element);
983
        }
983
        }
984
 
984
 
985
        $show  = "<fieldset><legend>".$sInfo."</legend>\n";
985
        $show  = "<fieldset><legend>".$sInfo."</legend>\n";
Строка 1121... Строка 1121...
1121
     * @param string $info
1121
     * @param string $info
1122
     * @param string $reptype
1122
     * @param string $reptype
1123
     * @return string
1123
     * @return string
1124
     */
1124
     */
1125
    public function showRepositoriesForm($repID = 0, $info = "", $reptype = "") {
1125
    public function showRepositoriesForm($repID = 0, $info = "", $reptype = "") {
-
 
1126
        $sRepID = $this->secure->checkInt($repID);
-
 
1127
        $sInfo  = $this->secure->checkStr($info, 1);
-
 
1128
        $sRType = $this->secure->checkStr($reptype, 1);
-
 
1129
        if ($sInfo == "") {
-
 
1130
            $sInfo = "Репозиторий";
-
 
1131
        }
-
 
1132
        if ($sRType == "") {
-
 
1133
            $sRType = "deb";
-
 
1134
        }
-
 
1135
        if ($sRepID != 0) {
-
 
1136
            // Режим редактирования
-
 
1137
            $query  = "SELECT * FROM ".$this->prefix."repository r ";
-
 
1138
            $query .= "JOIN ".$this->prefix."rtype rt ON r.rtype_id=rt.rtype_id ";
-
 
1139
            $query .= "JOIN ".$this->prefix."protos p ON r.proto_id=p.proto_id ";
-
 
1140
            $query .= "JOIN ".$this->prefix."rephost h ON r.rhost_id=h.rhost_id ";
-
 
1141
            $query .= "JOIN ".$this->prefix."repfolder f ON r.rfolder_id=f.rfolder_id ";
-
 
1142
            $query .= "JOIN ".$this->prefix."version v ON r.version=v.version_id ";
-
 
1143
            $query .= "JOIN ".$this->prefix."distribution d ON v.dist_id=d.dist_id ";
-
 
1144
            $query .= "JOIN ".$this->prefix."dtype dt ON d.disttype=dt.type_id ";
-
 
1145
            $query .= "WHERE r.rep_id='".$sRepID."'";
-
 
1146
            $rq =& $this->db->query($query);
-
 
1147
            $rq->fetchInto($element);
-
 
1148
            $sRType = $this->secure->checkStr($element["type"],1);
-
 
1149
        }
-
 
1150
-
 
1151
        $show  = "<fieldset><legend>".$sInfo."</legend>\n";
-
 
1152
        $show .= "<div class='inputbox'><label for='rname'>Название репозитория:</label> <input type='text' name='rname' value='".$this->secure->checkStr($element["repname"],1)."'></div>\n";
-
 
1153
        $show .= "<div class='inputbox'><label for='rinfo'>Описание репозитория:</label> <input type='text' name='rinfo' value='".$this->secure->checkStr($element["repinfo"],1)."'></div>\n";
-
 
1154
        $show .= "<div class='inputbox'><label for='rkey'>Ключ подписи репозитория:</label> <input type='text' name='rkey' value='".$this->secure->checkStr($element["repkey"],1)."'></div>\n";
-
 
1155
        $show .= "<div class='inputbox'><label for='rproto'>Протокол доступа:</label> <input type='text' name='rproto' value='".$this->secure->checkStr($element["proto"],1)."'></div>\n";
-
 
1156
        $show .= "<div class='inputbox'><label for='rhost'>Хост репозитория:</label> <input type='text' name='rhost' value='".$this->secure->checkStr($element["rhost"],1)."'></div>\n";
-
 
1157
        $show .= "<div class='inputbox'><label for='rfolder'>Корневая папка:</label> <input type='text' name='rfolder' value='".$this->secure->checkStr($element["rfolder"],1)."'></div>\n";
-
 
1158
        $show .= "<div class='inputbox'><input type='submit' value=' Отправить данные '></div></fieldset>\n";
-
 
1159
-
 
1160
        return $show;
1126
        return $show;
1161
        return $show;
1127
    }
1162
    }
1128
}
1163
}
1129
1164
1130
?>
1165
?>
1131
1166