*** empty log message ***
diff --git a/dashboard/cvslogprocessor.php b/dashboard/cvslogprocessor.php
index 83895b1..a6dfba8 100644
--- a/dashboard/cvslogprocessor.php
+++ b/dashboard/cvslogprocessor.php
@@ -1,4 +1,4 @@
-Version 4<p>
+Version 5<p>
<?php
require_once "/home/data/httpd/eclipse-php-classes/system/dbconnection_dashboard_rw.class.php";
@@ -11,18 +11,17 @@
// MESSAGE_SIZE int, primary key (ID) )";
$lines = file( "/home/data/users/bfreeman/cvslogging/pending0.txt" );
+echo $lines . "<p>\n";
foreach( $lines as $line ) {
- $words = explode( "|", $line );
- /* 0=year 1=month 2=day 3=hour 4=min 5=sec
- * 6=repository 7=user 8=filepath 9=revision
- */
- echo $line . "<br>\n";
-/* $query = "INSERT INTO COMMITS ( REPOSITORY, FILENAME, REVISION, LOGIN ) VALUES ( "
- . "'$words[6]', "
- . "'$words[8]', "
- . "'$words[9]', "
- . "'$words[7]' )";
+ list($year, $month, $day, $hour, $min, $sec, $repository, $user, $filepath, $revision) = explode( "|", $line );
+ echo $line . "<br>\n";
+ $query = "INSERT INTO COMMITS ( REPOSITORY, FILENAME, REVISION, LOGIN ) VALUES ( "
+ . "'$repository', "
+ . "'$filepath', "
+ . "'$revision', "
+ . "'$user' )";
echo $query."<br>";
+/*
mysql_query($query,$db_handle) or die("Error executing: ".mysql_error());
*/
}