Хранилища Subversion ant

Редакция

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

Редакция 480 Редакция 481
Строка 16... Строка 16...
16
$db_set =& DB::connect($dsn);
16
$db_set =& DB::connect($dsn);
17
if (PEAR::isError($db_set)) {
17
if (PEAR::isError($db_set)) {
18
    die($db_set->getMessage());
18
    die($db_set->getMessage());
19
}
19
}
20
20
21
<h1>sources.list</h1>
21
echo "<h1>sources.list</h1>";
22
22
23
$distr = abs(intval($_GET["d"]));
23
$distr = abs(intval($_GET["d"]));
24
24
25
if($distr==0) {
25
if($distr==0) {
26
        $reps =& $db_apt->query("SELECT * FROM reps");
26
        $reps =& $db_apt->query("SELECT * FROM reps");
27
        while ($reps->fetchInto($info_reps,DB_FETCHMODE_ASSOC)) {
27
        while ($reps->fetchInto($info_reps,DB_FETCHMODE_ASSOC)) {
28
            $dists =& $db_apt->query("SELECT * FROM reps2dists JOIN dists ON reps2dists.dist_id=dists.id WHERE rep_id=".$info_reps['id']);
28
            $dists =& $db_apt->query("SELECT * FROM reps2dists JOIN dists ON reps2dists.dist_id=dists.id WHERE rep_id=".$info_reps['id']);
29
            echo "# ".$info_reps['rep']."<br>";
29
            echo "# ".$info_reps['rep']."<br>";
30
            while ($dists->fetchInto($info_dists,DB_FETCHMODE_ASSOC)) {
30
            while ($dists->fetchInto($info_dists,DB_FETCHMODE_ASSOC)) {
31
                echo " http://apt.nix-files.org.ru/".$info_reps['rep']." ".$info_dists['dists.dist'];
31
                echo "deb http://apt.nix-files.org.ru/".$info_reps['rep']." ".$info_dists['dists.dist'];
32
                $sects =& $db_apt->query("SELECT * FROM reps2dists2sects JOIN sects ON reps2dists2sects.sect_id=sects.id WHERE reps2dists_id==".$info_dists['reps2dists.id']);
32
                $sects =& $db_apt->query("SELECT * FROM reps2dists2sects JOIN sects ON reps2dists2sects.sect_id=sects.id WHERE reps2dists_id==".$info_dists['reps2dists.id']);
33
                while ($sects->fetchInto($info_sects,DB_FETCHMODE_ASSOC)) {
33
                while ($sects->fetchInto($info_sects,DB_FETCHMODE_ASSOC)) {
34
                    echo " ".$info_sects['sects.sect'];
34
                    echo " ".$info_sects['sects.sect'];
35
                }
35
                }
36
                echo "<br>";
36
                echo "<br>";