*
* Copyright 1999-2001 (c) VA Linux Systems
* Copyright 2010 (c) Franck Villaume - Capgemini
+ * Copyright (C) 2011 Alain Peyrat - Alcatel-Lucent
*
- * This file is part of FusionForge.
- *
- * FusionForge is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
+ * This file is part of FusionForge. FusionForge is free software;
+ * you can redistribute it and/or modify it under the terms of the
+ * GNU General Public License as published by the Free Software
+ * Foundation; either version 2 of the Licence, or (at your option)
+ * any later version.
*
* FusionForge 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 General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with FusionForge; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * You should have received a copy of the GNU General Public License along
+ * with FusionForge; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
require_once('../env.inc.php');
}
-site_admin_header(array('title'=>_('Site Admin: Project Info')));
-
-echo '<h2>'.$group->getPublicName().'</h2>' ;?>
+$title = _('Site Admin: Project Info for ') . $group->getPublicName();
+site_admin_header(array('title'=>$title));
+?>
-<h3><?php echo util_make_link("/project/admin/?group_id=$group_id", _('[Project Admin]')); ?></h3>
-<h3><?php echo util_make_link("/admin/groupdelete.php?group_id=$group_id", _('Permanently Delete Project')); ?></h3>
+<h2><?php echo util_make_link("/project/admin/?group_id=$group_id", _('[Project Admin]')); ?></h2>
+<h2><?php echo util_make_link("/admin/groupdelete.php?group_id=$group_id", _('Permanently Delete Project')); ?></h2>
<form action="<?php echo getStringFromServer('PHP_SELF'); ?>" method="post">
</td>
</tr>
<tr>
+<?php if (USE_PFO_RBAC) { ?>
+<td colspan="2"><?php
+printf(_('With PFO-RBAC, the “is_public” property is gone. Instead, to make a project public, <%1$s>link<%2$s> the global role “Anonymous/not logged in” then <%3$s>give<%4$s> it “Project visibility” permissions.'),
+ 'a href="' . util_make_url('/project/admin/users.php?group_id=' .
+ $group_id) . '"',
+ '/a',
+ 'a href="' . util_make_url('/project/admin/roleedit.php?group_id=' .
+ $group_id . '&role_id=' . RoleAnonymous::getInstance()->getID()) . '"',
+ '/a'
+);
+?></td>
+<?php } else { ?>
<td>
<?php echo _('Public?') ?>:
</td>
'form_public', $group->isPublic(), false
); ?>
</td>
+<?php } ?>
</tr>
<tr>
<?php
if (forge_get_config('use_shell')) {
-?>
+?>
<tr>
<td>
<?php echo _('Home Box:'); ?>