beginning the framework for authserver
authorpaulr <me@pjr.cc>
Thu, 2 Dec 2010 10:16:22 +0000 (21:16 +1100)
committerpaulr <me@pjr.cc>
Thu, 2 Dec 2010 10:16:22 +0000 (21:16 +1100)
authserver/authd/authd.php [new file with mode: 0644]
authserver/lib/.gitignore [new file with mode: 0644]
authserver/lib/lib.php [new file with mode: 0644]

diff --git a/authserver/authd/authd.php b/authserver/authd/authd.php
new file mode 100644 (file)
index 0000000..7755688
--- /dev/null
@@ -0,0 +1,24 @@
+<?php
+
+if(file_exists("config.php")) require_once("config.php")
+else {
+       // config file doesnt exist, we must abort sensibly
+}
+
+// get out master library for ga4php
+require_once("../lib/lib.php");
+
+
+// first we want to fork into the background like all good daemons should
+$pid = pcntl_fork();
+
+if($pid == -1) {
+       
+} else if($pid) {
+       // i am the parent, i shall leave
+       exit(0);
+} else {
+       // i am the child, begin me up
+}
+
+?>
\ No newline at end of file
diff --git a/authserver/lib/.gitignore b/authserver/lib/.gitignore
new file mode 100644 (file)
index 0000000..571001f
--- /dev/null
@@ -0,0 +1 @@
+/ga4php.php
diff --git a/authserver/lib/lib.php b/authserver/lib/lib.php
new file mode 100644 (file)
index 0000000..dadbc0f
--- /dev/null
@@ -0,0 +1,9 @@
+<?php
+require_once("../../lib/ga4php.php");
+
+class gaasGA extends GoogleAuthenticator {
+       
+
+}
+
+?>
\ No newline at end of file