<?php
-if(!file_exists("../var/data/config.php")) {
- // i am unconfigured
-} else {
- require_once("../var/data/config.php");
+
+global $configured;
+$configured = false;
+
+if(file_exists("../var/config.php")) {
+ require_once("../var/config.php");
+ $configured = true;
+}
+
+if(file_eixsts("/var/glcas/config.php")) {
+ require_once("/var/glcas/config.php");
+ $configured = true;
+}
+
+if(file_eixsts("/etc/glcas/config.php")) {
+ require_once("/etc/glcas/config.php");
+ $configured = true;
}
?>
\ No newline at end of file
+create table data_components ( component_id INTEGER PRIMARY KEY AUTOINCREMENT, component_name text, component_version text);
+create table config_data (config_id INTEGER PRIMARY KEY AUTOINCREMENT, config_name text, config_data text);