* The rest Copyright 2002-2004 (c) GForge Team
* http://gforge.org/
*
- * @version $Id$
- *
* This file is part of GForge.
*
* GForge is free software; you can redistribute it and/or modify
*/
function project_admin_header($params) {
- global $group_id,$feedback,$HTML,$Language;
+ global $group_id,$feedback,$HTML;
$params['toptab']='admin';
$params['group']=$group_id;
show the group_history rows that are relevant to
this group_id
*/
- global $sys_datefmt, $Language;
+
$result=group_get_history($group_id);
$rows=db_numrows($result);
$title_arr[]=_('By');
echo $GLOBALS['HTML']->listTableTop ($title_arr);
-
for ($i=0; $i < $rows; $i++) {
$field=db_result($result, $i, 'field_name');
echo '
<tr '. $GLOBALS['HTML']->boxGetAltRowStyle($i) .'><td>'.$field.'</td><td>';
- if ($field=='removed user') {
- echo user_getname(db_result($result, $i, 'old_value'));
+ if (is_numeric(db_result($result, $i, 'old_value'))) {
+ if (ereg("user|User", $field)) {
+ echo user_getname(db_result($result, $i, 'old_value'));
+ } else {
+ echo db_result($result, $i, 'old_value');
+ }
} else {
echo db_result($result, $i, 'old_value');
}
echo '</td>'.
- '<td>'.date($sys_datefmt,db_result($result, $i, 'adddate')).'</td>'.
+ '<td>'.date(_('Y-m-d H:i'),db_result($result, $i, 'adddate')).'</td>'.
'<td>'.db_result($result, $i, 'user_name').'</td></tr>';
}
}
function permissions_blurb() {
- global $Language;
-
return _('<strong>NOTE:</strong><dl><dt><strong>Project Admins (bold)</strong></dt><dd>can access this page and other project administration pages</dd><dt><strong>Release Technicians</strong></dt><dd>can make the file releases (any project admin also a release technician)</dd><dt><strong>Tool Technicians (T)</strong></dt><dd>can be assigned Bugs/Tasks/Patches</dd><dt><strong>Tool Admins (A)</strong></dt><dd>can make changes to Bugs/Tasks/Patches as well as use the /toolname/admin/ pages</dd><dt><strong>Tool No Permission (N/A)</strong></dt><dd>Developer doesn\'t have specific permission (currently equivalent to \'-\')</dd><dt><strong>Moderators</strong> (forums)</dt><dd>can delete messages from the project forums</dd><dt><strong>Editors</strong> (doc. manager)</dt><dd>can update/edit/remove documentation from the project.</dd></dl>');
}
+// Local Variables:
+// mode: php
+// c-file-style: "bsd"
+// End:
+
?>