basic layout stuff
authorpaulr <me@pjr.cc>
Mon, 19 Sep 2011 14:12:04 +0000 (00:12 +1000)
committerpaulr <me@pjr.cc>
Mon, 19 Sep 2011 14:12:04 +0000 (00:12 +1000)
bin/cbfwrd.php [new file with mode: 0644]
bin/fwc.php
libcbfwr/comms.php [new file with mode: 0644]
libcbfwr/config.php [new file with mode: 0644]
libcbfwr/lib.php

diff --git a/bin/cbfwrd.php b/bin/cbfwrd.php
new file mode 100644 (file)
index 0000000..23897e1
--- /dev/null
@@ -0,0 +1,19 @@
+<?php
+$CMD_ROOT_FS = realpath(dirname(__FILE__));
+
+global $CMD_ROOT_FS;
+
+// add libglcas as if it were a path in ../libglcas
+if(file_exists("../libcbfwr")) {
+       $path = realpath($CMD_ROOT_FS."/../");
+       error_log("added cbfwr path as $path");
+       set_include_path(get_include_path().PATH_SEPARATOR.$path);
+}
+
+// include the based library
+require_once("libcbfwr/lib.php");
+
+glcas_pluginLoader();
+
+error_log("CBFWRD starting");
+?>
\ No newline at end of file
index 25d56cc..8be9f88 100644 (file)
@@ -13,4 +13,6 @@ if(file_exists("../libcbfwr")) {
 // include the based library
 require_once("libcbfwr/lib.php");
 
+glcas_pluginLoader();
+
 ?>
\ No newline at end of file
diff --git a/libcbfwr/comms.php b/libcbfwr/comms.php
new file mode 100644 (file)
index 0000000..0098db1
--- /dev/null
@@ -0,0 +1,10 @@
+<?php
+// C = msg key
+// L = locking key
+$message_key = ftok(realpath(dirname(__FILE__)), "c");
+$locking_key = ftok(realpath(dirname(__FILE__)), "l");
+$store_key = ftok(realpath(dirname(__FILE__)), "s");
+
+echo "comms key: $message_key, $locking_key, $store_key\n";
+
+?>
\ No newline at end of file
diff --git a/libcbfwr/config.php b/libcbfwr/config.php
new file mode 100644 (file)
index 0000000..67c94a5
--- /dev/null
@@ -0,0 +1,2 @@
+<?php
+?>
\ No newline at end of file
index db2c3cb..eccd5b5 100644 (file)
@@ -19,6 +19,7 @@ set_include_path(get_include_path().PATH_SEPARATOR.$adpath);
 
 */
 require_once("libcbfwr/config.php");
+require_once("libcbfwr/comms.php");
 
 function glcas_pluginLoader($path="")
 {