started a flow diagram
authorpaulr <me@pjr.cc>
Wed, 30 Mar 2011 15:25:52 +0000 (02:25 +1100)
committerpaulr <me@pjr.cc>
Wed, 30 Mar 2011 15:25:52 +0000 (02:25 +1100)
doc/flow.dia [new file with mode: 0644]
lib/config.php
lib/plugins/aptproxy.php [new file with mode: 0644]
lib/plugins/db_mysql.php [new file with mode: 0644]
lib/plugins/db_sqlite.php [new file with mode: 0644]
lib/plugins/install.php
lib/plugins/yumproxy.php [new file with mode: 0644]
www/index.php

diff --git a/doc/flow.dia b/doc/flow.dia
new file mode 100644 (file)
index 0000000..028ecb9
Binary files /dev/null and b/doc/flow.dia differ
index 15c5adc..62a4502 100644 (file)
@@ -1,3 +1,7 @@
 <?php
-
+if(!file_exists("../var/data/config.php")) {
+       // i am unconfigured
+} else {
+       require_once("../var/data/config.php");
+}
 ?>
\ No newline at end of file
diff --git a/lib/plugins/aptproxy.php b/lib/plugins/aptproxy.php
new file mode 100644 (file)
index 0000000..15c5adc
--- /dev/null
@@ -0,0 +1,3 @@
+<?php
+
+?>
\ No newline at end of file
diff --git a/lib/plugins/db_mysql.php b/lib/plugins/db_mysql.php
new file mode 100644 (file)
index 0000000..67c94a5
--- /dev/null
@@ -0,0 +1,2 @@
+<?php
+?>
\ No newline at end of file
diff --git a/lib/plugins/db_sqlite.php b/lib/plugins/db_sqlite.php
new file mode 100644 (file)
index 0000000..15c5adc
--- /dev/null
@@ -0,0 +1,3 @@
+<?php
+
+?>
\ No newline at end of file
index 0abf40c..4d45c99 100644 (file)
@@ -1,11 +1,20 @@
 <?php
+if(isset($agentInstall)) {
+       if($agentInstall) goAgentInstall();
+}
 
 if(!isset($dataSource)) {
-       goInstall();
+       goWebInstall();
 }
 
 if(!tryDataStore()) {
-       goInstall();
+       goWebInstall();
+}
+
+function goWebInstall()
+{
+       echo "<html>install</html>";
+       exit(0);
 }
 
 ?>
\ No newline at end of file
diff --git a/lib/plugins/yumproxy.php b/lib/plugins/yumproxy.php
new file mode 100644 (file)
index 0000000..15c5adc
--- /dev/null
@@ -0,0 +1,3 @@
+<?php
+
+?>
\ No newline at end of file
index 5c2f5d8..be74178 100644 (file)
@@ -1,3 +1,8 @@
+<?php 
+
+require_once("../lib/lib.php");
+
+?>
 <html>
 <pre>
 <?php