#!/usr/bin/php.cli
<?php
-// $Revision:$, $Date:$
+// $Revision: 1.2 $, $Date: 2007-11-18 10:00:17 $
$root_directory = '/home/services/ftp/pub/pld-buildlogs';
+$database = 'sqlite:/home/services/ftp/buildlogs.db';
+// $root_directory and $database are taken from buildlogs.inc
+include_once('buildlogs.inc');
+
$query = " CREATE TABLE LOGS(log_id INTEGER PRIMARY KEY, arch_id INTEGER, result INTEGER, size INTEGER, mtime INTEGER, spec TEXT);";
try {
- $dbhandle = new PDO('sqlite:/home/services/ftp/buildlogs.db');
+ $dbhandle = new PDO("$database");
} catch (PDOException $e) {
die("new PDO: ". $e->getMessage());
}