+#!/usr/bin/php
<?PHP
/**********************************************************************************
** (c) Copyright 2002, Brenno J.S.A.A.F. de Winter, De Winter Information Solutions
*/
+// $Id: gcm_daemon.php,v 1.5 2003-02-08 07:38:44 arjen Exp $
+
+ini_set('include_path', '.:./classes:../phpclasses');
+
//Tell the log that we're up.
define_syslog_variables();
openlog("gnucomo", LOG_PID, LOG_DAEMON);
syslog(LOG_INFO, "gcm_daemon started");
-require_once "classes/gnucomo_config.class.php";
-require_once "classes/db.class.php";
-require_once "classes/gnucomo.process_log.php";
+require_once "gnucomo_config.php";
+require_once "db.class.php";
+require_once "gnucomo.process_log.php";
// Set the standard variables //
$project_name = "gnucomo"; //name of the entire project
$app_name = "gcm_daemon"; //name of the application running
-$developrelease = "FALSE"; //Indicates if special debug settings are needed
-$db_version = 22; //The db_version indicates what the level of
+$developrelease = "TRUE"; //Indicates if special debug settings are needed
+$db_version = 24; //The db_version indicates what the level of
//the database should be. If the database is
//old an update will be generated.
$gcmd_version = 3; //This value indicates the active version of the gcm_daemon,
//Update the database to the most recent version.
if ($active_version < $db_version) {
- include ("classes/gnucomo_db_version.php");
+ include ("gnucomo_db_version.php");
}
} else {
syslog (LOG_INFO, "Couldn't initialize database version. Is this a gnucomo database?");
} else {
die ("done");
}
-/*
- //close the transaction
- $local_working = "COMMIT";
- $dbms_working->query($local_working);
-*/
}
?>