From 8aa3adeb74d3aba8f7cd9498870cd63d87aefd75 Mon Sep 17 00:00:00 2001 From: "Johan \"Papa\" Cwiklinski" Date: Sat, 29 May 2010 17:22:42 +0200 Subject: Use of ajax to load additionnal informations from pkgdb ; closes #45 --- zoom.php | 81 ++++++++++++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 56 insertions(+), 25 deletions(-) (limited to 'zoom.php') diff --git a/zoom.php b/zoom.php index 09f37f4..f96f96e 100644 --- a/zoom.php +++ b/zoom.php @@ -1,14 +1,11 @@ (wit for ajax or reload with pkgdb)'; ?> @@ -18,6 +15,21 @@ $name = $_GET['rpm']; + + + + + @@ -36,8 +48,15 @@ include '_header.php'; Enter a package name\n"; +if ( !isset($name) || !$name ) { +?> +

Missing package name

+
+

You have not specified any package name.

+

+
+ +$name not found\n"; } else { - + echo "

Package: $name

\n"; - + if (isset($_GET['pkgdb'])) { $fedpkg = $fedcli->getPackageInfo($name); - echo "

Hide pkgdb informations

"; + echo "

Hide pkgdb informations

"; } else { $fedpkg = false; - echo "

Show more informations from pkgdb

"; + echo "

Show more informations from pkgdb

"; } echo "\n"; echo "\n"; $i=0; if ($rpm->summary) { - echo "\n"; } else if ($owner->summary) { - echo "\n"; } - if (isset($fedpkg['devel']['package']['description'])) { - echo "\n"; - } + + echo "\n"; + if ($rpm->url) { - echo "\n"; } if ($up && $up->type) { - echo "\n"; } if ($up && $up->channel) { - echo "\n"; } if ($up && $up->stable) { - echo "\n"; } if ($up && $up->unstable && $up->stable!=$up->unstable) { - echo "\n"; } if ($owner && $owner->owner) { - echo "\n"; } - echo ""; $i++; + echo ""; $i++; echo "\n"; @@ -142,14 +161,26 @@ if (!$name) { $comaint = ''; if ($people) foreach ($people as $user) { if (isset($user['aclOrder']['commit']['statuscode']) && $user['aclOrder']['commit']['statuscode']==3) { + if ( $comaint !== '' ) { + $comaint .= ', '; + } $comaint .= $user['username']; } } echo ""; $i++; - echo ""; + echo ""; echo ""; echo ""; - echo "\n"; + $id = 'pkgdb_' . $rpm->repo_main; + if ( $rpm->repo_main != $prev ) { + echo "\n"; + } else { + echo ''; + } + if( $rpm->repo_main != $prev ) { + $prev = $rpm->repo_main; + } + } while ($rpm = $resrpm->fetchObject()); echo "
Upstream info
"; $i++; + echo "
"; $i++; echo "Summary: ". $rpm->summary . "
"; $i++; + echo "
"; $i++; echo "Summary: ". $owner->summary . "
"; $i++; - echo "Description: ".$fedpkg['devel']['package']['description']."
"; $i++; + echo "Description: " . ((isset($fedpkg['devel']['package']['description'])) ? $fedpkg['devel']['package']['description'] : $ajax_infos) . "
"; $i++; + echo "
"; $i++; echo "URL: ". $rpm->url . "
"; $i++; + echo "
"; $i++; echo "Type: ". $up->type . "
"; $i++; + echo "
"; $i++; echo "Channel: ". $up->channel . "
"; $i++; + echo "
"; $i++; echo "Stable version: ". $up->stable . "
"; $i++; + echo "
"; $i++; echo "Unstable version: ". $up->unstable . ""; if ($up->state) { echo " (". $up->state . ")\n"; @@ -111,14 +130,14 @@ if (!$name) { echo "
"; $i++; + echo "
"; $i++; echo "Owner: ". $owner->owner . ""; if ($owner->cc) { echo " (". $owner->cc . ")\n"; } echo "
ViewVC:
ViewVC: http://cvs.fedoraproject.org/viewvc/rpms/$name/"; echo "
".($rpm->repo_main==$prev ? " " : $prev=$rpm->repo_main)."".($rpm->repo_main==$prev ? " " : $rpm->repo_main)."".$rpm->repo_sub."".($rpm->epoch ? $rpm->epoch.":" : "").$rpm->ver."-".$rpm->rel."$owner$comaint
" . (($fedpkg) ? $owner : $ajax_infos) . "" . (($fedpkg) ? $comaint : $ajax_infos) . "
  
"; } -- cgit From e2a411835dfeb4c18f59cec9a2e483b3ebf394fc Mon Sep 17 00:00:00 2001 From: "Johan \"Papa\" Cwiklinski" Date: Sat, 29 May 2010 17:26:43 +0200 Subject: A typo... ; refs #45 --- zoom.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zoom.php') diff --git a/zoom.php b/zoom.php index f96f96e..a7cf0d2 100644 --- a/zoom.php +++ b/zoom.php @@ -5,7 +5,7 @@ require "FedoraClient.php"; $fedcli = new FedoraPkgdb(); $name = $_GET['rpm']; -$ajax_infos = '(wit for ajax or reload with pkgdb)'; +$ajax_infos = '(wait for ajax or reload with pkgdb)'; ?> -- cgit From 984fed1620d14acf0009122f578a59cdfba5b287 Mon Sep 17 00:00:00 2001 From: "Johan \"Papa\" Cwiklinski" Date: Sat, 29 May 2010 21:08:26 +0200 Subject: Missing file in last commit ; refs #47 --- zoom.php | 227 ++++++++++++++++++++++++--------------------------------------- 1 file changed, 85 insertions(+), 142 deletions(-) (limited to 'zoom.php') diff --git a/zoom.php b/zoom.php index a7cf0d2..913ce18 100644 --- a/zoom.php +++ b/zoom.php @@ -1,53 +1,51 @@ (wait for ajax or reload with pkgdb)'; -?> - - - - Packages in Fedora - - - - - - - -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'); - -
- -
-
-

You are here:

- -
-

Missing package name

@@ -81,124 +79,69 @@ if ( !isset($name) || !$name ) { echo "

$name not found

\n"; } else { - echo "

Package: $name

\n"; + if ($rpm->summary) { + $summary['Summary'] = $rpm->summary; + } else if ($owner->summary) { + $summary['Summary'] = $owner->summary; + } + $summary['Description'] = ((isset($fedpkg['devel']['package']['description'])) ? $fedpkg['devel']['package']['description'] : $ajax_infos); + if ( $rpm->url ) { + $summary['URL'] = $rpm->url; + } + if ($up && $up->type) { + $summary['Type'] = $up->type; + } + if ($up && $up->channel) { + $summary['Channel'] = $up->channel; + } + if ($up && $up->stable) { + $summary['Stabe version'] = $up->stable; + } + if ($up && $up->unstable && $up->stable!=$up->unstable) { + if ($up->state) { + $summary['Unstable version'] = $up->unstable . ' (' . $up->state . ')'; + } else { + $summary['Unstable version'] = $up->unstable; + } + + } + if ($owner && $owner->owner) { + if ($owner->cc) { + $summary['Owner'] = $owner->owner . ' (' . $owner->cc . ')'; + } else { + $summary['Owner'] = $owner->owner; + } + } + $summary['ViewVC'] = 'http://cvs.fedoraproject.org/viewvc/rpms/' . $name . '/'; + if (isset($_GET['pkgdb'])) { $fedpkg = $fedcli->getPackageInfo($name); - echo "

Hide pkgdb informations

"; } else { $fedpkg = false; - echo "

Show more informations from pkgdb

"; - } - echo "\n"; - echo "\n"; - $i=0; - - if ($rpm->summary) { - echo "\n"; - } else if ($owner->summary) { - echo "\n"; } + $i=0; - echo "\n"; - - if ($rpm->url) { - echo "\n"; - } - if ($up && $up->type) { - echo "\n"; - } - if ($up && $up->channel) { - echo "\n"; - } - if ($up && $up->stable) { - echo "\n"; - } - if ($up && $up->unstable && $up->stable!=$up->unstable) { - echo "\n"; - } - if ($owner && $owner->owner) { - echo "\n"; - } - echo ""; $i++; - echo "\n"; - - echo "
Upstream info
"; $i++; - echo "Summary: ". $rpm->summary . "
"; $i++; - echo "Summary: ". $owner->summary . "
"; $i++; - echo "Description: " . ((isset($fedpkg['devel']['package']['description'])) ? $fedpkg['devel']['package']['description'] : $ajax_infos) . "
"; $i++; - echo "URL: ". $rpm->url . "
"; $i++; - echo "Type: ". $up->type . "
"; $i++; - echo "Channel: ". $up->channel . "
"; $i++; - echo "Stable version: ". $up->stable . "
"; $i++; - echo "Unstable version: ". $up->unstable . ""; - if ($up->state) { - echo " (". $up->state . ")\n"; - } - echo "
"; $i++; - echo "Owner: ". $owner->owner . ""; - if ($owner->cc) { - echo " (". $owner->cc . ")\n"; - } - echo "
ViewVC: http://cvs.fedoraproject.org/viewvc/rpms/$name/"; - echo "
"; - - echo "\n"; - echo "\n"; - echo "\n"; $prev=false; do { - if ($rpm->repo_main=='rawhide' && isset($fedpkg['devel']['owner'])) { - $owner = $fedpkg['devel']['owner']; - $people = $fedpkg['devel']['people']; - } else if (isset($fedpkg[$rpm->repo_main]['owner'])) { - $owner = $fedpkg[$rpm->repo_main]['owner']; - $people = $fedpkg[$rpm->repo_main]['people']; - } else { - $owner =" "; - $people = false; - } - $comaint = ''; - if ($people) foreach ($people as $user) { - if (isset($user['aclOrder']['commit']['statuscode']) && $user['aclOrder']['commit']['statuscode']==3) { - if ( $comaint !== '' ) { - $comaint .= ', '; - } - $comaint .= $user['username']; - } - } - echo ""; $i++; - echo ""; - echo ""; - echo ""; - $id = 'pkgdb_' . $rpm->repo_main; - if ( $rpm->repo_main != $prev ) { - echo "\n"; - } else { - echo ''; - } + $packages[] = $rpm; if( $rpm->repo_main != $prev ) { $prev = $rpm->repo_main; } } while ($rpm = $resrpm->fetchObject()); - echo "
Packages available in Fedora Repositories
BranchRepositoryVersion-ReleaseOwnerCo-maintainers
".($rpm->repo_main==$prev ? " " : $rpm->repo_main)."".$rpm->repo_sub."".($rpm->epoch ? $rpm->epoch.":" : "").$rpm->ver."-".$rpm->rel."" . (($fedpkg) ? $owner : $ajax_infos) . "" . (($fedpkg) ? $comaint : $ajax_infos) . "
  
"; } } catch(PDOException $e) { printf("%s ERREUR : %s\n", date("r"), $e->getMessage()); } } -?> - - - -
- - -
- - +$smarty->assign('pkgdb', (isset($_GET['pkgdb']) ? $_GET['pkgdb'] : null)); +$smarty->assign('summary', $summary); +$smarty->assign('packages', $packages); +$smarty->assign('fedpkg', $fedpkg); +$page_content = $smarty->fetch('zoom.tpl'); +$smarty->assign('page_content', $page_content); +$smarty->display('main.tpl'); +?> \ No newline at end of file -- cgit From c14322fae3658cf448dc30a858666badfb1ce5b2 Mon Sep 17 00:00:00 2001 From: "Johan \"Papa\" Cwiklinski" Date: Sat, 29 May 2010 21:50:37 +0200 Subject: Show errors from template ; refs #47 --- zoom.php | 182 ++++++++++++++++++++++++++++++++------------------------------- 1 file changed, 93 insertions(+), 89 deletions(-) (limited to 'zoom.php') diff --git a/zoom.php b/zoom.php index 913ce18..dba885a 100644 --- a/zoom.php +++ b/zoom.php @@ -1,4 +1,20 @@ . +*/ require 'main.inc.php'; require 'FedoraClient.php'; @@ -24,17 +40,17 @@ function getBranchPeople($params) if ($branch == 'rawhide' && isset($fedpkg['devel']['owner']) ) { if ( !$people || $people == '' || $people == 'owner' ) { $ret = $fedpkg['devel']['owner']; - } else if( $people == 'people') { + } 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') { + } else if ( $people == 'people') { $ret_tmp = $fedpkg[$branch]['people']; } } - if( $people == 'people') { + if ( $people == 'people') { foreach ( $ret_tmp as $r ) { if ( $ret !== null ) { $ret .= ', '; @@ -47,100 +63,88 @@ function getBranchPeople($params) $smarty->register_function('getBranchPeople', 'getBranchPeople'); if ( !isset($name) || !$name ) { -?> -

Missing package name

-
-

You have not specified any package name.

-

-
- -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 "

$name not found

\n"; - } else { - - if ($rpm->summary) { - $summary['Summary'] = $rpm->summary; - } else if ($owner->summary) { - $summary['Summary'] = $owner->summary; - } - $summary['Description'] = ((isset($fedpkg['devel']['package']['description'])) ? $fedpkg['devel']['package']['description'] : $ajax_infos); - if ( $rpm->url ) { - $summary['URL'] = $rpm->url; - } - if ($up && $up->type) { - $summary['Type'] = $up->type; - } - if ($up && $up->channel) { - $summary['Channel'] = $up->channel; - } - if ($up && $up->stable) { - $summary['Stabe version'] = $up->stable; - } - if ($up && $up->unstable && $up->stable!=$up->unstable) { - if ($up->state) { - $summary['Unstable version'] = $up->unstable . ' (' . $up->state . ')'; - } else { - $summary['Unstable version'] = $up->unstable; + 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 "

$name not found

\n"; + } else { + if ($rpm->summary) { + $summary['Summary'] = $rpm->summary; + } else if ($owner->summary) { + $summary['Summary'] = $owner->summary; } + $summary['Description'] = ((isset($fedpkg['devel']['package']['description'])) ? $fedpkg['devel']['package']['description'] : $ajax_infos); + if ( $rpm->url ) { + $summary['URL'] = $rpm->url; + } + if ($up && $up->type) { + $summary['Type'] = $up->type; + } + if ($up && $up->channel) { + $summary['Channel'] = $up->channel; + } + if ($up && $up->stable) { + $summary['Stabe version'] = $up->stable; + } + if ($up && $up->unstable && $up->stable!=$up->unstable) { + if ($up->state) { + $summary['Unstable version'] = $up->unstable . ' (' . $up->state . ')'; + } else { + $summary['Unstable version'] = $up->unstable; + } + } + if ($owner && $owner->owner) { + if ($owner->cc) { + $summary['Owner'] = $owner->owner . ' (' . $owner->cc . ')'; + } else { + $summary['Owner'] = $owner->owner; + } + } + $summary['ViewVC'] = 'http://cvs.fedoraproject.org/viewvc/rpms/' . $name . '/'; - } - if ($owner && $owner->owner) { - if ($owner->cc) { - $summary['Owner'] = $owner->owner . ' (' . $owner->cc . ')'; + if (isset($_GET['pkgdb'])) { + $fedpkg = $fedcli->getPackageInfo($name); } else { - $summary['Owner'] = $owner->owner; + $fedpkg = false; } + $i=0; + + $prev=false; + do { + $packages[] = $rpm; + if ( $rpm->repo_main != $prev ) { + $prev = $rpm->repo_main; + } + } while ( $rpm = $resrpm->fetchObject() ); } - $summary['ViewVC'] = 'http://cvs.fedoraproject.org/viewvc/rpms/' . $name . '/'; - - - if (isset($_GET['pkgdb'])) { - $fedpkg = $fedcli->getPackageInfo($name); - } else { - $fedpkg = false; - } - $i=0; - - $prev=false; - do { - $packages[] = $rpm; - if( $rpm->repo_main != $prev ) { - $prev = $rpm->repo_main; - } - - } while ($rpm = $resrpm->fetchObject()); - } - } - catch(PDOException $e) { - printf("%s ERREUR : %s\n", date("r"), $e->getMessage()); - } + $smarty->assign('pkgdb', (isset($_GET['pkgdb']) ? $_GET['pkgdb'] : null)); + $smarty->assign('summary', $summary); + $smarty->assign('packages', $packages); + $smarty->assign('fedpkg', $fedpkg); + } catch(PDOException $e) { + printf("%s ERREUR : %s\n", date("r"), $e->getMessage()); + } } -$smarty->assign('pkgdb', (isset($_GET['pkgdb']) ? $_GET['pkgdb'] : null)); -$smarty->assign('summary', $summary); -$smarty->assign('packages', $packages); -$smarty->assign('fedpkg', $fedpkg); $page_content = $smarty->fetch('zoom.tpl'); $smarty->assign('page_content', $page_content); $smarty->display('main.tpl'); -- cgit From c0f960ee9df9f90454bccdc8d200e6b40f158d61 Mon Sep 17 00:00:00 2001 From: "Johan \"Papa\" Cwiklinski" Date: Sat, 29 May 2010 22:08:45 +0200 Subject: Apply PEAR coding standards, add license tag, refs #46,48 --- zoom.php | 77 ++++++++++++++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 58 insertions(+), 19 deletions(-) (limited to 'zoom.php') diff --git a/zoom.php b/zoom.php index dba885a..dfcdc95 100644 --- a/zoom.php +++ b/zoom.php @@ -1,19 +1,40 @@ . + * Display informations from a specific package + * + * PHP version 5 + * + * Copyright © 2010 Remi Collet + * + * This file is part of rpmphp. + * + * rpmphp is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * rpmphp is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with rpmphp. If not, see . + * + * @category Main + * @package RPMPHP + * + * @author Remi Collet + * @author Johan Cwiklinski + * @copyright 2010 Remi Collet + * @license http://www.gnu.org/licenses/agpl-3.0-standalone.html AGPL License 3.0 or (at your option) any later version + * @version SVN: $Id: ajouter_adherent.php 836 2010-02-27 08:11:44Z trashy $ + * @link http://github.com/remicollet/rpmphp/ + * @since The begining of times. + */ require 'main.inc.php'; require 'FedoraClient.php'; @@ -27,11 +48,20 @@ $ariane[] = array( 'url' => '#', 'text' => 'Package: ' . $name ); -$ajax_infos = '(wait for ajax or reload with pkgdb)'; +$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); +/** +* Retrieve people informations for a specific branch +* +* @param array $params Array of parameters +* +* @return string +*/ function getBranchPeople($params) { global $fedpkg; @@ -92,7 +122,11 @@ if ( !isset($name) || !$name ) { } else if ($owner->summary) { $summary['Summary'] = $owner->summary; } - $summary['Description'] = ((isset($fedpkg['devel']['package']['description'])) ? $fedpkg['devel']['package']['description'] : $ajax_infos); + $summary['Description'] = ( + (isset($fedpkg['devel']['package']['description'])) ? + $fedpkg['devel']['package']['description'] : + $ajax_infos + ); if ( $rpm->url ) { $summary['URL'] = $rpm->url; } @@ -107,7 +141,8 @@ if ( !isset($name) || !$name ) { } if ($up && $up->unstable && $up->stable!=$up->unstable) { if ($up->state) { - $summary['Unstable version'] = $up->unstable . ' (' . $up->state . ')'; + $summary['Unstable version'] = $up->unstable . ' (' . + $up->state . ')'; } else { $summary['Unstable version'] = $up->unstable; } @@ -119,7 +154,8 @@ if ( !isset($name) || !$name ) { $summary['Owner'] = $owner->owner; } } - $summary['ViewVC'] = 'http://cvs.fedoraproject.org/viewvc/rpms/' . $name . '/'; + $summary['ViewVC'] = 'http://cvs.fedoraproject.org/viewvc/rpms/' . + $name . '/'; if (isset($_GET['pkgdb'])) { $fedpkg = $fedcli->getPackageInfo($name); @@ -141,7 +177,10 @@ if ( !isset($name) || !$name ) { $smarty->assign('packages', $packages); $smarty->assign('fedpkg', $fedpkg); } catch(PDOException $e) { - printf("%s ERREUR : %s\n", date("r"), $e->getMessage()); + $smarty->assign( + 'error', + sprintf("%s ERREUR : %s\n", date("r"), $e->getMessage()) + ); } } -- cgit From 4fded33567be2378d9ed9ac3e9265fa377b0d4eb Mon Sep 17 00:00:00 2001 From: "Johan \"Papa\" Cwiklinski" Date: Sat, 29 May 2010 22:41:03 +0200 Subject: A flag to know if we're from a page that require a name ; refs #47 --- zoom.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zoom.php') diff --git a/zoom.php b/zoom.php index dfcdc95..5a3f6cb 100644 --- a/zoom.php +++ b/zoom.php @@ -34,7 +34,6 @@ * @version SVN: $Id: ajouter_adherent.php 836 2010-02-27 08:11:44Z trashy $ * @link http://github.com/remicollet/rpmphp/ * @since The begining of times. - */ require 'main.inc.php'; require 'FedoraClient.php'; @@ -43,6 +42,7 @@ $fedcli = new FedoraPkgdb(); $name = $_GET['rpm']; +$smarty->assign('name_required', true); $smarty->assign('name', $name); $ariane[] = array( 'url' => '#', -- cgit