all your files are belong to git....
authorpaulr <me@pjr.cc>
Wed, 30 Mar 2011 06:36:59 +0000 (17:36 +1100)
committerpaulr <me@pjr.cc>
Wed, 30 Mar 2011 06:36:59 +0000 (17:36 +1100)
just building a frame work at this point

lib/plugins/install.php [new file with mode: 0644]
unittests/soaptest.php
var/mysql.sql [new file with mode: 0644]
var/sqlite3.sql [new file with mode: 0644]
www/soap.php

diff --git a/lib/plugins/install.php b/lib/plugins/install.php
new file mode 100644 (file)
index 0000000..0abf40c
--- /dev/null
@@ -0,0 +1,11 @@
+<?php
+
+if(!isset($dataSource)) {
+       goInstall();
+}
+
+if(!tryDataStore()) {
+       goInstall();
+}
+
+?>
\ No newline at end of file
index 2a0fe56..f72318f 100644 (file)
@@ -3,7 +3,7 @@ require_once("../lib/lib.php");
 
 ini_set("soap.wsdl_cache_enabled", "0");
 
-$client = new SoapClient("http://localhost/src/eclipse-workspace/glcas/www/soap.php?wsdl", array("trace" => 1));
+$client = new SoapClient("https://localhost/src/eclipse-workspace/glcas/www/soap.php?wsdl", array("trace" => 1));
 
 print_r($client->__getFunctions());
 
diff --git a/var/mysql.sql b/var/mysql.sql
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/var/sqlite3.sql b/var/sqlite3.sql
new file mode 100644 (file)
index 0000000..e69de29
index 281b468..577e359 100644 (file)
@@ -1,6 +1,8 @@
 <?php
 require_once("../lib/lib.php");
 
+ini_set("soap.wsdl_cache_enabled", "0");
+
 $soapFunctions["status"] = "status";
 global $soapFunctions;
 
@@ -13,19 +15,19 @@ function status($status)
 }
 
 if(isset($_REQUEST["wsdl"])) {
-       $mylocation = "http://".$_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"];
+       $mylocation = "https://".$_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"];
        generateWSDL($mylocation, $soapFunctions);
        exit(0);
 }
 
 if(isset($_REQUEST["xsd"])) {
-       $mylocation = "http://".$_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"];
+       $mylocation = "https://".$_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"];
        generateXSD($mylocation, $soapFunctions);
        exit(0);
 }
 
 if($_SERVER["REQUEST_METHOD"] != "POST") {
-       $mylocation = "http://".$_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"];
+       $mylocation = "https://".$_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"];
        generateWSDL($mylocation, $soapFunctions);
        exit(0);
 }
@@ -44,7 +46,7 @@ function generateXSD($location, $functions)
        echo $wsdl;
 }
 
-$mylocation = "http://".$_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"];
+$mylocation = "https://".$_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"];
 $s = new SoapServer("$mylocation?wsdl");
 
 foreach($soapFunctions as $function) {