18,7 → 18,7 |
die($db_set->getMessage()); |
} |
|
<h1>sources.list</h1> |
echo "<h1>sources.list</h1>"; |
|
$distr = abs(intval($_GET["d"])); |
|
28,7 → 28,7 |
$dists =& $db_apt->query("SELECT * FROM reps2dists JOIN dists ON reps2dists.dist_id=dists.id WHERE rep_id=".$info_reps['id']); |
echo "# ".$info_reps['rep']."<br>"; |
while ($dists->fetchInto($info_dists,DB_FETCHMODE_ASSOC)) { |
echo " http://apt.nix-files.org.ru/".$info_reps['rep']." ".$info_dists['dists.dist']; |
echo "deb http://apt.nix-files.org.ru/".$info_reps['rep']." ".$info_dists['dists.dist']; |
$sects =& $db_apt->query("SELECT * FROM reps2dists2sects JOIN sects ON reps2dists2sects.sect_id=sects.id WHERE reps2dists_id==".$info_dists['reps2dists.id']); |
while ($sects->fetchInto($info_sects,DB_FETCHMODE_ASSOC)) { |
echo " ".$info_sects['sects.sect']; |