Хранилища Subversion ant

Редакция

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

Редакция 286 Редакция 287
Строка 301... Строка 301...
301
                case '1':
301
                case '1':
302
                        // Новый репозиторий
302
                        // Новый репозиторий
303
                        $mirr =& $db->query("SELECT * FROM mirror");
303
                        $mirr =& $db->query("SELECT * FROM mirror");
304
                        $mirror = "";
304
                        $mirror = "";
305
                        while($mirr->fetchInto($gm, DB_FETCHMODE_ASSOC)) {
305
                        while($mirr->fetchInto($gm, DB_FETCHMODE_ASSOC)) {
306
                                $mirror .= "<input type='checkbox' name='repMirror' value='".$gm["mirror_id"]."'> ".$secure->stripStr($gm["mname"])."<br>\n";
306
                                $mirror .= "<input type='checkbox' name='repMirror' value='".$gm["mirror_id"]."'> ".$secure->stripStr($gm["mname"])." ";
307
                        }
307
                        }
308
                        $rep =& $db->query("SELECT * FROM distribution d JOIN version v ON v.dist_id=d.dist_id WHERE v.version_id='$uid'");
308
                        $rep =& $db->query("SELECT * FROM distribution d JOIN version v ON v.dist_id=d.dist_id WHERE v.version_id='$uid'");
309
                        $rep->fetchInto($dist, DB_FETCHMODE_ASSOC);
309
                        $rep->fetchInto($dist, DB_FETCHMODE_ASSOC);
310
                        $dist_id = $dist["dist_id"];
310
                        $dist_id = $dist["dist_id"];
311
                        $dist_vname = $secure->stripStr($dist["distname"])." ".$secure->stripStr($dist["version"])." &#8220;".$secure->stripStr($dist["vname"])."&#8221;";
311
                        $dist_vname = $secure->stripStr($dist["distname"])." ".$secure->stripStr($dist["version"])." &#8220;".$secure->stripStr($dist["vname"])."&#8221;";
Строка 339... Строка 339...
339
                        $display .= "<input type='hidden' name='act' value='".$act."'>\n";
339
                        $display .= "<input type='hidden' name='act' value='".$act."'>\n";
340
                        $display .= "<input type='hidden' name='vers' value='$uid'>\n";
340
                        $display .= "<input type='hidden' name='vers' value='$uid'>\n";
341
                        $display .= "Название репозитория (codename): <input type='text' name='repName'><br>\n";
341
                        $display .= "Название репозитория (codename): <input type='text' name='repName'><br>\n";
342
                        $display .= "Описание репозитория:<br> <textarea name='repInfo'></textarea><br>\n";
342
                        $display .= "Описание репозитория:<br> <textarea name='repInfo'></textarea><br>\n";
343
                        $display .= "Схема репозитория: ".$rscheme."<br>";
343
                        $display .= "Схема репозитория: ".$rscheme."<br>";
344
                        $display .= _("Mirror").": ".$mirror."<br>";
344
                        $display .= _("Mirrors").": ".$mirror."<br>";
345
                        $display .= "Источник репозитория: ".$origin."<br>";
345
                        $display .= "Источник репозитория: ".$origin."<br>";
346
                        $display .= "Корневая папка репозитория: ".$rootfolder."<br>";
346
                        $display .= "Корневая папка репозитория: ".$rootfolder."<br>";
347
                        $display .= "Секции: ".$list."<br>";
347
                        $display .= "Секции: ".$list."<br>";
348
                        $display .= "По умолчанию: <input type='checkbox' name='default' value='1'>";
348
                        $display .= "По умолчанию: <input type='checkbox' name='default' value='1'>";
349
                        $display .= "<br><input type='submit' value='Создать'></form>\n";
349
                        $display .= "<br><input type='submit' value='Создать'></form>\n";
Строка 365... Строка 365...
365
                        $tlist .= "</select>";
365
                        $tlist .= "</select>";
366
                        $mlist = "";
366
                        $mlist = "";
367
                        $mq =& $db->query("SELECT * FROM mirror m JOIN mirr2rep r ON m.mirror_id=r.mirror_id WHERE r.rep_id='$uid'");
367
                        $mq =& $db->query("SELECT * FROM mirror m JOIN mirr2rep r ON m.mirror_id=r.mirror_id WHERE r.rep_id='$uid'");
368
                        if ($mq->numRows()>0) {
368
                        if ($mq->numRows()>0) {
369
                                while ($mq->fetchInto($mget, DB_FETCHMODE_ASSOC)) {
369
                                while ($mq->fetchInto($mget, DB_FETCHMODE_ASSOC)) {
370
                                        $mlist .= "<input type='checkbox' name='repMirror' value='".$mget["mirror_id"]."' checked> ".$secure->stripStr($mget["mname"])."<br>\n";
370
                                        $mlist .= "<input type='checkbox' name='repMirror' value='".$mget["mirror_id"]."' checked> ".$secure->stripStr($mget["mname"])." ";
371
                                }
371
                                }
372
                        }
372
                        }
373
                        $mq =& $db->query("SELECT m.* FROM mirror m WHERE m.mirror_id NOT IN (SELECT mirror_id FROM mirr2rep WHERE rep_id='$uid')");
373
                        $mq =& $db->query("SELECT m.* FROM mirror m WHERE m.mirror_id NOT IN (SELECT mirror_id FROM mirr2rep WHERE rep_id='$uid')");
374
                        if ($mq->numRows()>0) {
374
                        if ($mq->numRows()>0) {
375
                                while ($mq->fetchInto($mget, DB_FETCHMODE_ASSOC)) {
375
                                while ($mq->fetchInto($mget, DB_FETCHMODE_ASSOC)) {