Хранилища Subversion ant

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

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

/trunk/process.php
69,8 → 69,9
$repname = mysql_real_escape_string($_POST["repName"]);
$repinfo = mysql_real_escape_string($_POST["repInfo"]);
$repsche = abs(intval($_POST["scheme"]));
$reptype = abs(intval($_POST["rtype"]));
 
$res =& $db->query("INSERT INTO repository SET repname='$repname', repdescribe='$repinfo', scheme_id='$repsche'");
$res =& $db->query("INSERT INTO repository SET repname='$repname', repdescribe='$repinfo', scheme_id='$repsche', rtype_id='$reptype'");
$res =& $db->query("SELECT rep_id FROM repository ORDER BY rep_id DESC LIMIT 1");
$res->fetchInto($rep, DB_FETCHMODE_ASSOC);
$rep_id = $rep["rep_id"];
87,8 → 88,9
$repname = mysql_real_escape_string($_POST["repName"]);
$repinfo = mysql_real_escape_string($_POST["repInfo"]);
$repsche = abs(intval($_POST["scheme"]));
$reptype = abs(intval($_POST["rtype"]));
$res =& $db->query("UPDATE repository SET repname='$repname', repdescribe='$repinfo', scheme_id='$repsche' WHERE rep_id='$repID'");
$res =& $db->query("UPDATE repository SET repname='$repname', repdescribe='$repinfo', scheme_id='$repsche', rtype_id='$reptype' WHERE rep_id='$repID'");
$res =& $db->query("DELETE FROM sect2rep WHERE rep_id='$repID'");
for ($i=0;$i<count($_POST["sect"]);$i++) {
$res =& $db->query("INSERT INTO sect2rep SET sect_id='".$_POST["sect"][$i]."', rep_id='$repID'");
186,6 → 188,28
$req =& $db->query("DELETE FROM settings WHERE opt_id='$optID'");
break;
case '19':
// Добавление нового типа репозитория
$rtype = mysql_real_escape_string($_POST["rtype"]);
$req =& $db->query("INSERT INTO rtype SET rtype='$rtype'");
 
break;
case '20':
// Правка существующего типа репозитория
$rtypeID = abs(intval($_POST["rtypeID"]));
$rtype = mysql_real_escape_string($_POST["rtype"]);
$req =& $db->query("UPDATE rtype SET rtype='$rtype' WHERE rtype_id='$rtypeID'");
break;
case '18':
// Удаление типа репозитория
$rtypeID = abs(intval($_POST["rtypeID"]));
 
$req =& $db->query("DELETE FROM rtype WHERE rtype_id='$rtypeID'");
break;
}
 
header("Location: $go\n\n");
/trunk/css/ant.css
Новый файл
0,0 → 1,38
#ant {
font: 12pt/20pt Georgia;
}
 
#ant input {
margin: 0 5px 0 15px;
font: 12pt Georgia;
}
 
#ant p {
margin: 0;
}
 
#footer {
margin: 5px 0;
padding: 5px 0;
border-top: 1px solid #a9a9a9;
font: 10pt Georgia;
color: #a9a9a9;
}
 
#footer a {
color: #a9a9a9;
text-decoration: none;
}
 
pre {
font: 12pt Arial;
border: 1px solid #000;
margin: 10px 0;
padding: 10px;
background-color: #dcdcdc;
}
 
#sourceslist {
font-family: Arial;
padding: 1px 3px;
}
/trunk/index.php
5,9 → 5,13
$dist = abs(intval($_GET["d"]));
$vers = abs(intval($_GET["v"]));
 
$query =& $db->query("SELECT * FROM settings WHERE opt LIKE 'version'");
$query->fetchInto($antv, DB_FETCHMODE_ASSOC);
$antversion = $antv["optvalue"];
 
$query =& $db->query("SELECT * FROM distribution");
while ($query->fetchInto($data, DB_FETCHMODE_ASSOC)) {
$linux .= "<input type='radio' name='d' value='".$data["dist_id"]."'>".stripslashes($data["distname"])."<br>\n";
$linux .= "<p><input type='radio' name='d' value='".$data["dist_id"]."'>".stripslashes($data["distname"])."</p>\n";
}
 
if (!isset($status)) { $status = 0; };
14,7 → 18,7
 
if (isset($dist)) {
$query =& $db->query("SELECT * FROM version v JOIN distribution d ON d.dist_id=v.dist_id WHERE v.dist_id='$dist'");
$distvers = "<input type='hidden' name='d' value='".$dist."'>\n";
$distvers = "<p><input type='hidden' name='d' value='".$dist."'></p>\n";
while ($query->fetchInto($version, DB_FETCHMODE_ASSOC)) {
if ($version["vname"]!="") {
$distname = "&#8220;".stripslashes($version["vname"])."&#8221;";
21,7 → 25,7
} else {
$distname = "";
}
$distvers .= "<input type='radio' name='v' value='".$version["version_id"]."'>".stripslashes($version["distname"])." ".stripslashes($version["version"])." ".$distname."<br>\n";
$distvers .= "<p><input type='radio' name='v' value='".$version["version_id"]."'>".stripslashes($version["distname"])." ".stripslashes($version["version"])." ".$distname."</p>\n";
}
}
 
37,9 → 41,9
if ($infodist["vname"]!="") {
$distname = "&#8220;".stripslashes($infodist["vname"])."&#8221;";
}
$info = "Доступные репозитории для <em>".stripslashes($infodist["distname"])." ".stripslashes($infodist["version"])." ".$distname."</em>";
$query =& $db->query("SELECT * FROM repository r JOIN ver2rep v ON r.rep_id=v.rep_id JOIN version v2 ON v.ver_id=v2.version_id JOIN scheme s ON s.scheme_id=r.scheme_id WHERE v.ver_id='$vers' ORDER BY r.scheme_id ASC");
$result = "<pre>";
$info = "<h2>Доступные репозитории для <em>".stripslashes($infodist["distname"])." ".stripslashes($infodist["version"])." ".$distname."</em></h2>";
$query =& $db->query("SELECT * FROM repository r JOIN ver2rep v ON r.rep_id=v.rep_id JOIN version v2 ON v.ver_id=v2.version_id JOIN scheme s ON s.scheme_id=r.scheme_id WHERE v.ver_id='$vers' ORDER BY r.rtype_id, r.scheme_id ASC");
$result = "<p>Скопируйте эти строки в файл <span id='sourceslist'>/etc/apt/sources.list</span>:</p><pre>";
while ($query->fetchInto($resinfo, DB_FETCHMODE_ASSOC)) {
$repscheme = stripslashes($resinfo["scheme"]);
67,6 → 71,7
$smarty->assign('linux',$linux);
$smarty->assign('version',$distvers);
$smarty->assign('result',$result);
$smarty->assign('antversion',$antversion);
 
$smarty->display('index.tpl');
 
/trunk/admin.php
6,9 → 6,14
$act = abs(intval($_GET["action"]));
$uid = abs(intval($_GET["uid"]));
 
$query =& $db->query("SELECT * FROM settings WHERE opt LIKE 'version'");
$query->fetchInto($antv, DB_FETCHMODE_ASSOC);
$antversion = $antv["optvalue"];
 
 
switch ($mode) {
case '0':
$display = "<ul><li><a href='./admin.php?mode=1'>Управление дистрибутивами</a></li><li><a href='./admin.php?mode=2'>Управление версиями дистрибутивов</a></li><li><a href='./admin.php?mode=3'>Управление репозиториями</a></li><li><a href='./admin.php?mode=4'>Управление секциями репозиториев</a></li><li><a href='./admin.php?mode=5'>Управление схемами репозиториев</a></li><li><a href='./admin.php?mode=6'>Управление настройками Ant</a></li></ul>";
$display = "<ul><li><a href='./admin.php?mode=1'>Управление дистрибутивами</a></li><li><a href='./admin.php?mode=2'>Управление версиями дистрибутивов</a></li><li><a href='./admin.php?mode=3'>Управление репозиториями</a></li><li><a href='./admin.php?mode=4'>Управление секциями репозиториев</a></li><li><a href='./admin.php?mode=5'>Управление схемами репозиториев</a></li><li><a href='./admin.php?mode=7'>Управление типами репозиториев</a></li><li><a href='./admin.php?mode=6'>Управление настройками Ant</a></li></ul>";
break;
case '1':
// Работа с дистрибутивами
157,10 → 162,17
$dist_id = $dist["dist_id"];
$dist_vname = stripslashes($dist["distname"])." ".stripslashes($dist["version"])." &#8220;".stripslashes($dist["vname"])."&#8221;";
$dtype =& $db->query("SELECT * FROM scheme");
$type = "<select name='scheme'>";
$rscheme = "<select name='scheme'>";
while ($dtype->fetchInto($dtinfo, DB_FETCHMODE_ASSOC)) {
$type .= "<option value='".$dtinfo["scheme_id"]."'>".stripslashes($dtinfo["scheme"])."</option>";
$rscheme .= "<option value='".$dtinfo["scheme_id"]."'>".stripslashes($dtinfo["scheme"])."</option>";
}
$rscheme .= "</select>";
$rtype =& $db->query("SELECT * FROM rtype");
$reptype = "<select name='rtype'>";
while ($rtype->fetchInto($rtinfo, DB_FETCHMODE_ASSOC)) {
$reptype .= "<option value='".$rtinfo["rtype_id"]."'>".stripslashes($rtinfo["rtype"])."</option>";
}
$reptype .= "</select>\n";
$sect =& $db->query("SELECT * FROM section s JOIN sect2dist d ON d.sect_id=s.sect_id WHERE d.dist_id='$dist_id'");
$list = "";
while ($sect->fetchInto($slist, DB_FETCHMODE_ASSOC)) {
173,7 → 185,8
$display .= "<input type='hidden' name='vers' value='$uid'>\n";
$display .= "Название репозитория (codename): <input type='text' name='repName'><br>\n";
$display .= "Описание репозитория:<br> <textarea name='repInfo'></textarea><br>\n";
$display .= "Схема репозитория: ".$type."<br>";
$display .= "Схема репозитория: ".$rscheme."<br>";
$display .= "Тип репозитория: ".$reptype."<br>";
$display .= "Секции: ".$list;
$display .= "<br><input type='submit' value='Создать'></form>\n";
break;
190,7 → 203,17
$tlist .= "<option value='".$type["scheme_id"]."'>".stripslashes($type["scheme"])."</option>";
}
}
$tlist .= "</select>";
$tlist .= "</select>";
$tlist2 = "<select name='rtype'>";
$sq =& $db->query("SELECT * FROM rtype");
while ($sq->fetchInto($type, DB_FETCHMODE_ASSOC)) {
if ($type["rtype_id"]==$info["rtype_id"]) {
$tlist2 .= "<option value='".$type["rtype_id"]."' selected>".stripslashes($type["rtype"])."</option>";
} else {
$tlist2 .= "<option value='".$type["rtype_id"]."'>".stripslashes($type["rtype"])."</option>";
}
}
$tlist2 .= "</select>";
$list = "";
$req =& $db->query("SELECT * FROM section s JOIN sect2rep r ON s.sect_id=r.sect_id WHERE r.rep_id='$uid'");
if ($req->numRows()>0) {
211,6 → 234,7
$display .= "Название репозитория (codename): <input type='text' name='repName' value='".stripslashes($info["repname"])."'><br>\n";
$display .= "Описание репозитория:<br> <textarea name='repInfo'>".stripslashes($info["repdescribe"])."</textarea><br>\n";
$display .= "Схема репозитория: ".$tlist."<br>";
$display .= "Тип репозитория: ".$tlist2."<br>";
$display .= "Секции: ".$list;
$display .= "<br><input type='submit' value='Править'></form>\n";
break;
402,9 → 426,64
break;
}
break;
case '7':
// Управление типами репозиториев
switch ($act) {
case '0':
// Список типов репозиториев
$req =& $db->query("SELECT * FROM rtype");
$display = "<p>Имеющиеся типы репозиториев</p><ul class='sectlist'>";
if ($req->numRows()>0) {
while ($req->fetchInto($setting, DB_FETCHMODE_ASSOC)) {
$display .= "<li>".stripslashes($setting["rtype"])." [<a href='./admin.php?mode=7&action=2&uid=".$setting["rtype_id"]."' class='edit'>править</a>][<a href='./admin.php?mode=7&action=3&uid=".$setting["rtype_id"]."' class='delete'>удалить</a>]</li>";
}
}
$display .= "</ul><p><a href='./admin.php?mode=7&action=1'>Добавить новый тип репозитория</a></p>";
break;
case '1':
// Добавление нового типа репозитория
$display = "<h3>Создание нового типа репозитория</h3>";
$display .= "<form action='./process.php' method='POST'>\n";
$display .= "<input type='hidden' name='mode' value='19'>\n";
$display .= "Тип: <input type='text' name='rtype'><br>\n";
$display .= "<input type='submit' value='Добавить'></form>\n";
break;
case '2':
// Правка существующего типа репозитория
$req =& $db->query("SELECT * FROM rtypes WHERE rtype_id='$uid'");
if ($req->numRows()>0) {
$req->fetchInto($setting, DB_FETCHMODE_ASSOC);
$display = "<h3>Правка типа репозитория</h3>";
$display .= "<form action='./process.php' method='POST'>\n";
$display .= "<input type='hidden' name='mode' value='20'>\n";
$display .= "<input type='hidden' name='rtypeID' value='".stripslashes($setting["rtype_id"])."'><br>\n";
$display .= "Тип: <input type='text' name='rtype' value='".stripslashes($setting["rtype"])."'><br>\n";
$display .= "<input type='submit' value='Править'></form>\n";
} else {
$display = "Такого типа репозитория не существует";
}
break;
case '3':
// Удаление существующего типа репозитория
$req =& $db->query("SELECT * FROM rtypes WHERE rtype_id='$uid'");
if ($req->numRows()>0) {
$req->fetchInto($setting, DB_FETCHMODE_ASSOC);
$display = "<h3>Удаление существующего типа репозитория</h3>";
$display .= "Удаляемый тип <em>".stripslashes($setting["rtype"])."</em><br>";
$display .= "<form action='./process.php' method='POST'>\n";
$display .= "<input type='hidden' name='mode' value='21'>\n";
$display .= "<input type='hidden' name='rtypeID' value='".$setting["rtype_id"]."'><br>\n";
$display .= "<input type='submit' value='Удалить'></form>\n";
} else {
$display = "Такого типа репозитория не существует";
}
break;
}
break;
}
 
$smarty->assign('display',$display);
$smarty->assign('antversion',$antversion);
$smarty->display('admin.tpl');
 
?>
/trunk/templates/index.tpl
1,24 → 1,30
{config_load file=ant.conf section="setup"}
{include file="header.tpl" title='Ant'}
 
<div id='ant'>
{if $status == 0}
<form action='./index.php' method='GET'>
<input type='hidden' name='step' value='1'>
{$linux}
<input type='submit'>
<h2>Выбор дистрибутива</h2>
<form action='./index.php' method='get'>
<p><input type='hidden' name='step' value='1' /></p>
{$linux}
<p><input type='submit' value=' Выбрать дистрибутив ' /></p>
</form>
{/if}
 
{if $status == 1}
<form action='./index.php' method='GET'>
<input type='hidden' name='step' value='2'>
<h2>Выбор версии дистрибутива</h2>
<form action='./index.php' method='get'>
<p><input type='hidden' name='step' value='2' /></p>
{$version}
<input type='submit'>
<p><input type='submit' value=' Получить sources.list ' /></p>
</form>
{/if}
 
{if $status == 2}
{$result}
{/if}
</div>
 
<div id='footer'><a href="http://track.altlug.ru/projects/show/ant">Ant {$antversion}</a></div>
 
{include file="footer.tpl"}
/trunk/templates/admin.tpl
3,4 → 3,5
 
{$display}
 
<div id="footer">Ant {$antversion}</div>
{include file="footer.tpl"}
/trunk/templates/header.tpl
1,5 → 1,10
<html>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>{$title}</title>
<link rel="stylesheet" type="text/css" href="./css/ant.css" />
</head>
<body>
/docs/ant.sql
3,7 → 3,7
-- http://www.phpmyadmin.net
--
-- Хост: localhost
-- Время создания: Мар 07 2009 г., 19:59
-- Время создания: Мар 09 2009 г., 17:26
-- Версия сервера: 5.0.51
-- Версия PHP: 5.2.6-1+lenny2
 
137,67 → 137,90
`repname` varchar(20) default NULL,
`repdescribe` text,
`scheme_id` int(2) NOT NULL,
`rtype_id` int(2) NOT NULL,
PRIMARY KEY (`rep_id`),
KEY `scheme` (`scheme_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=49 ;
KEY `scheme` (`scheme_id`),
KEY `rtype_id` (`rtype_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=50 ;
 
--
-- Дамп данных таблицы `repository`
--
 
INSERT INTO `repository` (`rep_id`, `repname`, `repdescribe`, `scheme_id`) VALUES
(1, 'sarge', 'Базовый репозиторий', 4),
(2, 'sarge-backports', 'Бэкпорты для Sarge', 9),
(3, 'etch', 'Базовый репозиторий', 4),
(4, 'etch-updates', 'Обновления безопасности', 6),
(5, 'etch-backports', 'Бэкпорты для Etch', 9),
(6, 'etch-opera', 'Репозиторий с браузером Opera', 4),
(7, 'etch-virtualbox', 'Репозиторий с VirtualBox', 4),
(8, 'etch-winehq', 'Репозиторий с wine', 4),
(9, 'lenny', 'Базовый репозиторий', 4),
(10, 'lenny-2gis', 'Репозиторий с 2GIS', 4),
(11, 'lenny-opera', 'Репозиторий с браузером Opera', 4),
(12, 'lenny-updates', 'Обновления безопасности', 6),
(13, 'lenny-virtualbox', 'Репозиторий с VirtualBox', 4),
(14, 'hardy', 'Базовый репозиторий', 4),
(15, 'hardy-commercial', 'Репозиторий с коммерческим ПО', 4),
(16, 'hardy', 'Обновления безопасности', 11),
(17, 'hardy', 'Обновления', 10),
(18, 'ubuntu-2gis', 'Репозиторий с 2GIS', 4),
(19, 'ubuntu-freenx', 'Репозиторий с FreeNX', 4),
(20, 'ubuntu-playonlinux', 'Репозиторий с играми', 4),
(35, 'intrepid', 'Обновления безопасности', 11),
(21, 'ubuntu-virtualbox', 'Репозиторий с VirtualBox', 4),
(22, 'ubuntu-winehq', 'Репозиторий с Wine', 4),
(23, 'intrepid', 'Бэкпорты для Intrepid Ibex', 9),
(24, 'hardy', 'Бэкпорты для Hardy Heron', 9),
(25, 'intrepid', 'Базовый репозиторий', 4),
(26, 'intrepid', 'Обновления безопасности', 11),
(27, 'intrepid', 'Обновления', 10),
(28, 'intrepid-commercial', 'Репозиторий с коммерческим ПО', 4),
(34, 'intrepid', 'Базовый репозиторий Ubuntu', 4),
(29, 'kubuntu-experimental', 'Экспериментальный репозиторий с KDE 4', 4),
(30, 'ubuntu-playonlinux', 'Репозиторий с играми', 4),
(33, 'infralinux', 'Базовый репозиторий', 4),
(31, 'ubuntu-virtualbox', 'Репозиторий с VirtualBox', 4),
(32, 'ubuntu-winehq', 'Репозиторий с Wine', 4),
(36, 'intrepid', 'Обновления', 10),
(37, 'intrepid', 'Бэкпорты для Intrepid Ibex', 9),
(38, 'intrepid-commercial', 'Коммерческое ПО', 4),
(39, 'kubuntu-experimental', 'Экспериментальный репозиторий с KDE 4', 4),
(40, 'ubuntu-playonlinux', 'Репозиторий с играми', 4),
(41, 'ubuntu-virtualbox', 'Репозиторий с VirtualBox', 4),
(42, 'ubuntu-winehq', 'Репозиторий с wine', 4),
(43, 'etch-multimedia', 'Мультимедийный репозиторий для Etch', 4),
(44, 'lenny-multimedia', 'Мультимедийный репозиторий для Lenny', 4),
(45, 'etch', 'Обновления для Etch', 5),
(46, 'lenny', 'Обновления для Lenny', 5),
(47, 'lenny-volatile', 'Обновления для Lenny', 7),
(48, 'lenny-volatile', 'Обновления для Lenny', 8);
INSERT INTO `repository` (`rep_id`, `repname`, `repdescribe`, `scheme_id`, `rtype_id`) VALUES
(1, 'sarge', 'Базовый репозиторий', 4, 1),
(2, 'sarge-backports', 'Бэкпорты для Sarge', 9, 2),
(3, 'etch', 'Базовый репозиторий', 4, 1),
(4, 'etch-updates', 'Обновления безопасности', 6, 2),
(5, 'etch-backports', 'Бэкпорты для Etch', 9, 2),
(6, 'etch-opera', 'Репозиторий с браузером Opera', 4, 3),
(7, 'etch-virtualbox', 'Репозиторий с VirtualBox', 4, 3),
(8, 'etch-winehq', 'Репозиторий с wine', 4, 3),
(9, 'lenny', 'Базовый репозиторий', 4, 1),
(10, 'lenny-2gis', 'Репозиторий с 2GIS', 4, 3),
(11, 'lenny-opera', 'Репозиторий с браузером Opera', 4, 3),
(12, 'lenny-updates', 'Обновления безопасности', 6, 2),
(13, 'lenny-virtualbox', 'Репозиторий с VirtualBox', 4, 3),
(14, 'hardy', 'Базовый репозиторий', 4, 1),
(15, 'hardy-commercial', 'Репозиторий с коммерческим ПО', 4, 2),
(16, 'hardy', 'Обновления безопасности', 11, 2),
(17, 'hardy', 'Обновления', 10, 2),
(18, 'ubuntu-2gis', 'Репозиторий с 2GIS', 4, 3),
(19, 'ubuntu-freenx', 'Репозиторий с FreeNX', 4, 3),
(20, 'ubuntu-playonlinux', 'Репозиторий с играми', 4, 3),
(35, 'intrepid', 'Обновления безопасности', 11, 2),
(21, 'ubuntu-virtualbox', 'Репозиторий с VirtualBox', 4, 3),
(22, 'ubuntu-winehq', 'Репозиторий с Wine', 4, 3),
(23, 'intrepid', 'Бэкпорты для Intrepid Ibex', 9, 2),
(24, 'hardy', 'Бэкпорты для Hardy Heron', 9, 2),
(25, 'intrepid', 'Базовый репозиторий', 4, 1),
(26, 'intrepid', 'Обновления безопасности', 11, 2),
(27, 'intrepid', 'Обновления', 10, 2),
(28, 'intrepid-commercial', 'Репозиторий с коммерческим ПО', 4, 2),
(34, 'intrepid', 'Базовый репозиторий Ubuntu', 4, 1),
(29, 'kubuntu-experimental', 'Экспериментальный репозиторий с KDE 4', 4, 3),
(30, 'ubuntu-playonlinux', 'Репозиторий с играми', 4, 3),
(33, 'infralinux', 'Базовый репозиторий', 4, 1),
(31, 'ubuntu-virtualbox', 'Репозиторий с VirtualBox', 4, 3),
(32, 'ubuntu-winehq', 'Репозиторий с Wine', 4, 3),
(36, 'intrepid', 'Обновления', 10, 2),
(37, 'intrepid', 'Бэкпорты для Intrepid Ibex', 9, 2),
(38, 'intrepid-commercial', 'Коммерческое ПО', 4, 2),
(39, 'kubuntu-experimental', 'Экспериментальный репозиторий с KDE 4', 4, 3),
(40, 'ubuntu-playonlinux', 'Репозиторий с играми', 4, 0),
(41, 'ubuntu-virtualbox', 'Репозиторий с VirtualBox', 4, 3),
(42, 'ubuntu-winehq', 'Репозиторий с wine', 4, 3),
(43, 'etch-multimedia', 'Мультимедийный репозиторий для Etch', 4, 3),
(44, 'lenny-multimedia', 'Мультимедийный репозиторий для Lenny', 4, 3),
(45, 'etch', 'Обновления для Etch', 5, 2),
(46, 'lenny', 'Обновления для Lenny', 5, 2),
(47, 'lenny-volatile', 'Обновления для Lenny', 7, 2),
(48, 'lenny-volatile', 'Обновления для Lenny', 8, 2);
 
-- --------------------------------------------------------
 
--
-- Структура таблицы `rtype`
--
 
CREATE TABLE IF NOT EXISTS `rtype` (
`rtype_id` int(2) NOT NULL auto_increment,
`rtype` varchar(25) NOT NULL,
PRIMARY KEY (`rtype_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
 
--
-- Дамп данных таблицы `rtype`
--
 
INSERT INTO `rtype` (`rtype_id`, `rtype`) VALUES
(1, 'Базовый'),
(2, 'Дополнительный'),
(3, 'Extra (добавочный)');
 
-- --------------------------------------------------------
 
--
-- Структура таблицы `scheme`
--
 
271,7 → 294,7
`rep_id` int(5) NOT NULL,
PRIMARY KEY (`id`),
KEY `sect_id` (`sect_id`,`rep_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=356 ;
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=475 ;
 
--
-- Дамп данных таблицы `sect2rep`
348,26 → 371,26
(139, 1, 0),
(140, 3, 0),
(71, 1, 0),
(324, 6, 33),
(323, 5, 33),
(322, 4, 33),
(321, 1, 33),
(328, 6, 34),
(327, 5, 34),
(326, 4, 34),
(325, 1, 34),
(332, 6, 35),
(331, 5, 35),
(330, 4, 35),
(329, 1, 35),
(336, 6, 36),
(335, 5, 36),
(334, 4, 36),
(333, 1, 36),
(340, 6, 37),
(339, 5, 37),
(338, 4, 37),
(337, 1, 37),
(454, 6, 33),
(453, 5, 33),
(452, 4, 33),
(451, 1, 33),
(458, 6, 34),
(457, 5, 34),
(456, 4, 34),
(455, 1, 34),
(462, 6, 35),
(461, 5, 35),
(460, 4, 35),
(459, 1, 35),
(466, 6, 36),
(465, 5, 36),
(464, 4, 36),
(463, 1, 36),
(470, 6, 37),
(469, 5, 37),
(468, 4, 37),
(467, 1, 37),
(161, 1, 0),
(162, 4, 0),
(163, 5, 0),
375,95 → 398,95
(165, 1, 0),
(166, 2, 0),
(167, 3, 0),
(245, 3, 1),
(244, 2, 1),
(243, 1, 1),
(248, 3, 2),
(247, 2, 2),
(246, 1, 2),
(251, 3, 3),
(250, 2, 3),
(249, 1, 3),
(254, 3, 4),
(253, 2, 4),
(252, 1, 4),
(257, 3, 5),
(256, 2, 5),
(255, 1, 5),
(258, 3, 6),
(259, 3, 7),
(260, 1, 8),
(263, 3, 9),
(262, 2, 9),
(261, 1, 9),
(264, 3, 10),
(266, 3, 11),
(269, 3, 12),
(268, 2, 12),
(267, 1, 12),
(270, 3, 13),
(281, 6, 14),
(280, 5, 14),
(279, 4, 14),
(278, 1, 14),
(282, 7, 15),
(286, 6, 16),
(285, 5, 16),
(284, 4, 16),
(283, 1, 16),
(290, 6, 17),
(289, 5, 17),
(288, 4, 17),
(287, 1, 17),
(291, 3, 18),
(292, 1, 19),
(293, 1, 20),
(294, 3, 21),
(295, 1, 22),
(299, 6, 24),
(298, 5, 24),
(297, 4, 24),
(296, 1, 24),
(303, 6, 23),
(302, 5, 23),
(301, 4, 23),
(300, 1, 23),
(307, 6, 25),
(306, 5, 25),
(305, 4, 25),
(304, 1, 25),
(311, 6, 26),
(310, 5, 26),
(309, 4, 26),
(308, 1, 26),
(315, 6, 27),
(314, 5, 27),
(313, 4, 27),
(312, 1, 27),
(316, 7, 28),
(317, 1, 29),
(318, 1, 30),
(319, 3, 31),
(320, 1, 32),
(341, 7, 38),
(342, 1, 39),
(367, 3, 1),
(366, 2, 1),
(365, 1, 1),
(370, 3, 2),
(369, 2, 2),
(368, 1, 2),
(373, 3, 3),
(372, 2, 3),
(371, 1, 3),
(377, 3, 4),
(376, 2, 4),
(375, 1, 4),
(380, 3, 5),
(379, 2, 5),
(378, 1, 5),
(384, 3, 6),
(385, 3, 7),
(386, 1, 8),
(391, 3, 9),
(390, 2, 9),
(389, 1, 9),
(404, 3, 10),
(405, 3, 11),
(394, 3, 12),
(393, 2, 12),
(392, 1, 12),
(406, 3, 13),
(411, 6, 14),
(410, 5, 14),
(409, 4, 14),
(408, 1, 14),
(412, 7, 15),
(416, 6, 16),
(415, 5, 16),
(414, 4, 16),
(413, 1, 16),
(420, 6, 17),
(419, 5, 17),
(418, 4, 17),
(417, 1, 17),
(425, 3, 18),
(426, 1, 19),
(427, 1, 20),
(428, 3, 21),
(429, 1, 22),
(424, 6, 24),
(423, 5, 24),
(422, 4, 24),
(421, 1, 24),
(433, 6, 23),
(432, 5, 23),
(431, 4, 23),
(430, 1, 23),
(437, 6, 25),
(436, 5, 25),
(435, 4, 25),
(434, 1, 25),
(441, 6, 26),
(440, 5, 26),
(439, 4, 26),
(438, 1, 26),
(445, 6, 27),
(444, 5, 27),
(443, 4, 27),
(442, 1, 27),
(446, 7, 28),
(447, 1, 29),
(448, 1, 30),
(449, 3, 31),
(450, 1, 32),
(471, 7, 38),
(472, 1, 39),
(343, 1, 40),
(344, 3, 41),
(345, 1, 42),
(265, 1, 43),
(346, 1, 44),
(272, 1, 45),
(273, 2, 45),
(274, 3, 45),
(349, 3, 46),
(348, 2, 46),
(347, 1, 46),
(350, 1, 47),
(351, 2, 47),
(352, 3, 47),
(353, 1, 48),
(354, 2, 48),
(355, 3, 48);
(473, 3, 41),
(474, 1, 42),
(387, 1, 43),
(407, 1, 44),
(383, 3, 45),
(382, 2, 45),
(381, 1, 45),
(397, 3, 46),
(396, 2, 46),
(395, 1, 46),
(400, 3, 47),
(399, 2, 47),
(398, 1, 47),
(403, 3, 48),
(402, 2, 48),
(401, 1, 48);
 
-- --------------------------------------------------------
 
502,7 → 525,7
`opt` varchar(50) NOT NULL,
`optvalue` varchar(200) NOT NULL,
PRIMARY KEY (`opt_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
 
--
-- Дамп данных таблицы `settings`
510,7 → 533,8
 
INSERT INTO `settings` (`opt_id`, `opt`, `optvalue`) VALUES
(1, 'proto', 'http://'),
(2, 'url', 'apt.nix-files.org.ru');
(2, 'url', 'apt.nix-files.org.ru'),
(3, 'version', '0.1RC2');
 
-- --------------------------------------------------------
 
525,7 → 549,7
PRIMARY KEY (`id`),
KEY `ver_id` (`ver_id`),
KEY `rep_id` (`rep_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=49 ;
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=50 ;
 
--
-- Дамп данных таблицы `ver2rep`