3 * GForge Site Admin main page
5 * This pages lists all global administration facilities for the
6 * site, including user/group properties editing, maintanance of
7 * site meta-information (Trove maps, metadata for file releases),
10 * Copyright 1999-2001 (c) VA Linux Systems
12 * This file is part of GForge.
14 * GForge is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 2 of the License, or
17 * (at your option) any later version.
19 * GForge is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with GForge; if not, write to the Free Software
26 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
30 require_once('../env.inc.php');
31 require_once $gfwww.'include/pre.php';
32 require_once $gfwww.'admin/admin_utils.php';
34 site_admin_header(array('title'=>_('Site admin')));
36 echo '<h1>' . _('Site admin') . '</h1>';
38 $abc_array = array('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','0','1','2','3','4','5','6','7','8','9');
42 <h2><?php echo _('User Maintenance'); ?></h2>
45 $res=db_query_params ('SELECT count(*) AS count FROM users WHERE status=$1',
48 $row = db_fetch_array($res);
49 printf(_('Active site users: <strong>%1$s</strong>'), $row['count']);
53 <li><a href="userlist.php"><?php echo _('Display Full User List/Edit Users'); ?></a> </li>
55 echo _('Display Users Beginning with:').' ';
56 for ($i=0; $i < count($abc_array); $i++) {
57 echo '<a href="userlist.php?user_name_search='.$abc_array[$i].'">'.$abc_array[$i].'</a>|';
61 <form name="usersrch" action="search.php" method="post">
62 <?php echo _('Search <em>(userid, username, realname, email)</em>'); ?>:
63 <input type="text" name="search" />
64 <input type="hidden" name="substr" value="1" />
65 <input type="hidden" name="usersearch" value="1" />
66 <input type="submit" value="<?php echo _('get'); ?>" />
69 <li><a href="../account/register.php"><?php
70 echo _('Register a New User');
74 <h2><?php echo _('Project Maintenance'); ?></h2>
77 $res=db_query_params ('SELECT count(*) AS count FROM groups',
80 $row = db_fetch_array($res);
81 printf(_('Registered projects: <strong>%1$s</strong>'), $row['count']);
84 $res=db_query_params ('SELECT count(*) AS count FROM groups WHERE status=$1',
87 $row = db_fetch_array($res);
88 printf(_('Active projects: <strong>%1$s</strong>'), $row['count']);
91 $res=db_query_params ('SELECT count(*) AS count FROM groups WHERE status=$1',
94 $row = db_fetch_array($res);
95 printf(_('Pending projects: <strong>%1$s</strong>'), $row['count']);
99 <li><a href="grouplist.php"><?php echo _('Display Full Project List/Edit Projects'); ?></a></li>
101 <li><?php echo _('Display Projects Beginning with:').' ';
102 for ($i=0; $i < count($abc_array); $i++) {
103 echo '<a href="grouplist.php?group_name_search='.$abc_array[$i].'">'.$abc_array[$i].'</a>|';
107 <form name="gpsrch" action="search.php" method="post">
108 <?php echo _('Search <em>(groupid, group unix name, full name)</em>'); ?>:
109 <input type="text" name="search" />
110 <input type="hidden" name="substr" value="1" />
111 <input type="hidden" name="groupsearch" value="1" />
112 <input type="submit" value="<?php echo _('get'); ?>" />
117 <li><?php echo util_make_link ('/register/',_('Register New Project')); ?></li>
118 <li><?php echo _('Projects with status'); ?> <a href="approve-pending.php"><?php echo _('Pending (P)'); ?> <em><?php echo _('(New Project Approval)'); ?></em></a></li>
119 <li><form name="projectsearch" action="search.php">
120 <?php echo _('Projects with status'); ?>
121 <select name="status">
122 <option value="A"><?php echo _('Active (A)'); ?></option>
123 <option value="H"><?php echo _('Hold (H)'); ?></option>
124 <option value="P"><?php echo _('Pending (P)'); ?></option>
126 <input type="hidden" name="groupsearch" value="1"/>
127 <input type="hidden" name="search" value="%"/>
128 <input type="submit" value="<?php echo _('Submit');?> "/>
130 <li><a href="search.php?groupsearch=1&search=%&is_public=0"><?php echo _('Private Projects'); ?></a></li>
133 <h2><?php echo _('News'); ?></h2>
135 <li><?php echo util_make_link ('/news/admin/',_('Approve/Reject')); ?> <?php echo _('Front-page news'); ?></li>
138 <h2><?php echo _('Stats'); ?></h2>
140 <li><?php echo util_make_link ('/stats/',_('Site-Wide Stats')); ?></li>
143 <h2><?php echo _('Trove Project Tree'); ?></h2>
145 <li><a href="trove/trove_cat_list.php"><?php echo _('Display Trove Map'); ?></a></li>
146 <li><a href="trove/trove_cat_add.php"><?php echo _('Add to the Trove Map'); ?></a></li>
149 <h2><?php echo _('Site Utilities'); ?></h2>
151 <li><a href="massmail.php"><?php printf(_('Mail Engine for %1$s Subscribers'), forge_get_config ('forge_name')); ?></a></li>
152 <li><a href="unsubscribe.php"><?php echo forge_get_config ('forge_name'); ?> <?php echo _('Site Mailings Maintenance'); ?></a></li>
153 <li><a href="edit_frs_filetype.php"><?php echo _('Add, Delete, or Edit File Types'); ?></a></li>
154 <li><a href="edit_frs_processor.php"><?php echo _('Add, Delete, or Edit Processors'); ?></a></li>
155 <li><a href="edit_theme.php"><?php echo _('Add, Delete, or Edit Themes'); ?></a></li>
156 <li><a href="edit_licenses.php"><?php echo _('Add, Delete, or Edit Licenses'); ?></a></li>
157 <li><a href="<?php echo util_make_url ('/stats/lastlogins.php'); ?>"><?php echo _('Recent logins'); ?></a></li>
158 <li><a href="cronman.php"><?php echo _('Cron Manager'); ?></a></li>
159 <li><a href="pluginman.php"><?php echo _('Plugin Manager'); ?></a></li>
160 <li><a href="configman.php"><?php echo _('Config Manager'); ?></a></li>
161 <li><a href="pi.php">PHPinfo()</a></li>
162 <?php plugin_hook("site_admin_option_hook", false); ?>
165 <?php if(forge_get_config('use_project_database') || forge_get_config('use_project_vhost')) { ?>
167 <?php if(forge_get_config('use_project_vhost')) { ?>
168 <li><a href="vhost.php"><?php echo _('Virtual Host Admin Tool'); ?></a></li>
171 if(forge_get_config('use_project_database')) { ?>
172 <li><a href="database.php"><?php echo _('Project Database Administration'); ?></a></li>
177 site_admin_footer(array());
181 // c-file-style: "bsd"