. */ require 'main.inc.php'; require 'FedoraClient.php'; $fedcli = new FedoraPkgdb(); $name = $_GET['rpm']; $smarty->assign('name', $name); $ariane[] = array( 'url' => '#', 'text' => 'Package: ' . $name ); $ajax_infos = '(wait for ajax or reload with pkgdb)'; $smarty->assign('ajax_infos', $ajax_infos); $smarty->assign('ariane', $ariane); $smarty->assign('page_title', 'Package: ' . $name); function getBranchPeople($params) { global $fedpkg; extract($params); $ret = null; if ($branch == 'rawhide' && isset($fedpkg['devel']['owner']) ) { if ( !$people || $people == '' || $people == 'owner' ) { $ret = $fedpkg['devel']['owner']; } else if ( $people == 'people') { $ret_tmp = $fedpkg['devel']['people']; } } else if (isset($fedpkg[$branch]['owner'])) { if ( !$people || $people == '' || $people == 'owner' ) { $ret = $fedpkg[$branch]['owner']; } else if ( $people == 'people') { $ret_tmp = $fedpkg[$branch]['people']; } } if ( $people == 'people') { foreach ( $ret_tmp as $r ) { if ( $ret !== null ) { $ret .= ', '; } $ret .= $r['username']; } } return $ret; } $smarty->register_function('getBranchPeople', 'getBranchPeople'); if ( !isset($name) || !$name ) { $smarty->assign('error', 'missing_name'); } else { try { $db = new PDO ("mysql:dbname=" . MYBASE . ";host=" . MYHOST, MYUSER, MYPASS); $sql = "SELECT rpm.* FROM rpm INNER JOIN repo ON (repo.main=rpm.repo_main AND repo.sub=rpm.repo_sub) WHERE rpm.name='$name' ORDER BY repo.id DESC"; $resrpm = $db->query($sql); $rpm = ($resrpm ? $resrpm->fetchObject() : false); $sql = "SELECT * FROM upstream WHERE name = '$name'"; $resup=$db->query($sql); $up = ($resup ? $resup->fetchObject() : false); $sql = "SELECT * FROM acls WHERE name = '$name'"; $resown=$db->query($sql); $owner = ($resown ? $resown->fetchObject() : false); if (!$rpm) { echo "