gforge-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gforge-commits] gforge/cronjobs reporting_cron.php,NONE,1.1


From: tperdue
Subject: [Gforge-commits] gforge/cronjobs reporting_cron.php,NONE,1.1
Date: Wed, 28 Jul 2004 12:30:24 -0500

Update of /cvsroot/gforge/gforge/cronjobs
In directory db.perdue.net:/home/tperdue/share/dev.gforge.org/cronjobs

Added Files:
        reporting_cron.php 
Log Message:
Release of Reporting Module

--- NEW FILE: reporting_cron.php ---
#! /usr/bin/php4 -f
<?php
/**
 * Reporting System
 *
 * Copyright 2004 (c) GForge LLC
 *
 * @version   $Id: reporting_cron.php,v 1.1 2004/07/28 17:30:21 tperdue Exp $
 * @author Tim Perdue address@hidden
 * @date 2003-03-16
 *
 * This file is part of GForge.
 *
 * GForge is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * GForge is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with GForge; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

require ('squal_pre.php');
require ('common/reporting/ReportSetup.class');

$report = new ReportSetup();

if ($report->isError()) {
        exit_error('Error',$report->getErrorMessage());
}

db_begin();

if (!$report->dailyData()) {
        exit_error('Error',$report->getErrorMessage());
}

db_commit();

echo "Done: ".date('Ymd H:i').' - '.db_error();

?>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]