Хранилища Subversion ant

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

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

/branches/shower/index.php
Новый файл
0,0 → 1,33
<?php
 
require_once 'DB.php';
 
$dsn = 'sqlite:///set.db?mode=0777';
 
$db_set =& DB::connect($dsn);
if (PEAR::isError($db_set)) {
die($db_set->getMessage());
}
 
$distr = abs(intval($_GET["d"]));
 
if($distr==0) {
$distrs =& $db_set->query("SELECT * FROM distrs");
echo "<form name='distrch' method='get' action='index.php'>";
echo "<b>Дистрибутив:</b><br>";
while ($distrs->fetchInto($info_distrs,DB_FETCHMODE_ASSOC)) {
echo "<input type='radio' name='d' value='".$info_distrs['id']."'> ".$info_distrs['distr']."<br>\n";
}
echo "<p><input type='submit' value='Выбрать'>";
echo "</form>";
}
else {
$vers =& $db_set->query("SELECT * FROM vers WHERE distr_id=".$distr);
echo "<form name='verch' method='get' action='shower.php'>";
echo "<b>Версия:</b><br>";
while ($vers->fetchInto($info_vers,DB_FETCHMODE_ASSOC)) {
echo "<input type='radio' name='d' value='".$info_vers['id']."'> ".$info_vers['vernum']." ".$info_vers['codename']."<br>\n";
}
echo "<p><input type='submit' value='Выбрать'>";
echo "</form>";
}
/branches/shower/shower.php
22,7 → 22,7
$reps =& $db_apt->query("SELECT * FROM reps");
while ($reps->fetchInto($info_reps,DB_FETCHMODE_ASSOC)) {
$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>";
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'];
$sects =& $db_apt->query("SELECT * FROM reps2dists2sects JOIN sects ON reps2dists2sects.sect_id=sects.id WHERE reps2dists_id==".$info_dists['reps2dists.id']);
39,7 → 39,7
$reps =& $db_apt->query("SELECT * FROM reps");
while ($reps->fetchInto($info_reps,DB_FETCHMODE_ASSOC)) {
$dists =& $db_apt->query('SELECT * FROM reps2dists JOIN dists ON reps2dists.dist_id=dists.id WHERE rep_id='.$info_reps['id'].' AND dists.dist LIKE "'.$codename.'%"');
if ($dists->numRows()!=0) echo $info_reps['rep']."<br>";
if ($dists->numRows()!=0) 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'];
$sects =& $db_apt->query("SELECT * FROM reps2dists2sects JOIN sects ON reps2dists2sects.sect_id=sects.id WHERE reps2dists_id==".$info_dists['reps2dists.id']);