summaryrefslogtreecommitdiff
blob: 67ebd71f483540e689c3b1bbecb47196980b2141 (plain)
1
2
3
4
5
6
7
8
9
10
<?php
$opts=array();
$r=query('SELECT * FROM `gentoo_profiles` WHERE `flags` NOT LIKE "%d%"');
while ($profile=$r->fetch(PDO::FETCH_ASSOC)) {
	$profile=new sql_gentoo_profile($profile);
	$display=$profile->name?$profile->name:($profile->pkgdir?$profile->pkgdir:'/');
	$opts[$profile->id]=$display;
}
$this->select('profile', 'profile', 'Profile', $opts);
?>