initial commit
authorpaulr <me@pjr.cc>
Sun, 27 Mar 2011 22:08:59 +0000 (09:08 +1100)
committerpaulr <me@pjr.cc>
Sun, 27 Mar 2011 22:08:59 +0000 (09:08 +1100)
.project [new file with mode: 0644]
doc/README [new file with mode: 0644]
lib/lib.php [new file with mode: 0644]
lib/plugins/packages.php [new file with mode: 0644]
www/index.php [new file with mode: 0644]

diff --git a/.project b/.project
new file mode 100644 (file)
index 0000000..5975073
--- /dev/null
+++ b/.project
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+       <name>glcas</name>
+       <comment></comment>
+       <projects>
+       </projects>
+       <buildSpec>
+       </buildSpec>
+       <natures>
+       </natures>
+</projectDescription>
diff --git a/doc/README b/doc/README
new file mode 100644 (file)
index 0000000..f4eb95f
--- /dev/null
@@ -0,0 +1,4 @@
+GLCAS
+=====
+
+Generic Linux Central Administration System
diff --git a/lib/lib.php b/lib/lib.php
new file mode 100644 (file)
index 0000000..5e7cf40
--- /dev/null
@@ -0,0 +1,21 @@
+<?php
+
+// first and foremost, load the plugins
+$basedir = dirname(__FILE__);
+if(is_dir("$basedir/plugins")) {
+       $dh = opendir("$basedir/plugins");
+       if($dh) {
+               while(($file = readdir($dh))!==false) {
+                       $mt = preg_match("/.*\.php$/", $file);
+                       if($mt > 0) {
+                               require_once("$basedir/plugins/$file");
+                               //echo "required $basedir/plugins/$file\n";
+                       }
+               }
+       }
+} else {
+       echo "No plugins dir ($basedir/plugins), continuing without\n";
+}
+
+
+?>
\ No newline at end of file
diff --git a/lib/plugins/packages.php b/lib/plugins/packages.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/www/index.php b/www/index.php
new file mode 100644 (file)
index 0000000..e69de29