5 * Copyright 2004 (c) GForge LLC
7 * @author Tim Perdue tim@gforge.org
10 * This file is part of GForge.
12 * GForge is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
17 * GForge is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with GForge; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27 require_once('../env.inc.php');
28 require_once $gfwww.'include/pre.php';
29 require_once $gfcommon.'reporting/report_utils.php';
30 require_once $gfcommon.'reporting/Report.class.php';
31 require_once $gfcommon.'reporting/ReportSetup.class.php';
33 session_require( array('group'=>$sys_stats_group,'A') );
35 echo report_header(_('Main Page'));
36 if (getStringFromRequest('submit') && getStringFromRequest('im_sure')) {
40 $r = new ReportSetup();
42 if (!$r->initialSetup()) {
43 echo $r->getErrorMessage();
44 form_release_key(getStringFromRequest("form_key"));
46 Header("Location: index.php?feedback=Successfully+Rebuilt");
52 echo _('Reporting System Initialization');
55 echo _('Occasionally, if cronjobs failed or the database was damaged, you may have to rebuild the reporting tables.');
58 echo _('If you are sure you want to rebuild all the reporting tables, check the "I am sure" box and click the button below.');
61 echo _('This could take a couple minutes, so DO NOT CLICK MORE THAN ONCE.');
65 <form action="<?php echo getStringFromServer('PHP_SELF'); ?>" method="post">
67 <input type="checkbox" name="im_sure" value="1" /><?php echo _('I am sure'); ?>
70 <input type="submit" name="submit" value="<?php echo _('Press ONLY ONCE'); ?>" />
80 // c-file-style: "bsd"