* along with Fusionforge. If not, see <http://www.gnu.org/licenses/>.
*/
-require_once('Widget.class.php');
+require_once 'Widget.class.php';
/**
* Widget_MyAdmin
}
if (forge_check_global_perm ('approve_projects')) {
- $res = db_query_params("SELECT count(*) AS count FROM groups WHERE status='P'",array());
+ $res = db_query_params('SELECT count(*) AS count FROM groups
+ WHERE group_id > 4
+ AND status = $1
+ AND register_time > 0
+ AND is_template = 0',
+ array('P'));
$row = db_fetch_array($res);
$pending_projects = $row['count'];
return '<tr '. $GLOBALS['HTML']->boxGetAltRowStyle($i) .'><td>'. $text .'</td><td nowrap="nowrap" style="width:20%; background:'. $bgcolor .'; color:'. $textcolor .'; padding: 2px 8px; font-weight:bold; text-align:center;">'. $value .'</td></tr>';
}
}
-?>