4 * Copyright 1999-2001 (c) VA Linux Systems
8 * This file is part of GForge.
10 * GForge is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * GForge is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with GForge; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 US
25 require_once('squal_pre.php');
26 include_once('cronjobs/stats_projects.inc');
34 $how_far_back=(86400 * $i);
36 $time=time()-$how_far_back;
38 $year=date('Y',$time);
39 $month=date('m',$time);
42 $datetime="$year$month$day";
44 if ($datetime < 19991117) {
50 project_stats_day($year,$month,$day);