$ret = $myga->MSG_INIT_SERVER("AD", $argv[3], $argv[4], $argv[5], $argv[6], $argv[7]);
echo "Ret:\n";
print_r($ret);
+ echo "\n";
if($ret) {
echo "initialising server succeeded\n";
} else {
// first check we got something that makes sense
if(preg_match("/^AS:.*:EOD/", $recvd) < 1) {
socket_close($socket);
+ echo "Returned data is not in right format\n";
// we have a problem jim
return false;
}
$component = unserialize(base64_decode($xps[1]));
if($component["type"] != $message_type) {
+ echo "Message type was not the same as original message\n";
// we have a problem jim
socket_close($socket);
return false;
}
+ //echo "component\n";
+ //print_r($component);
+
socket_close($socket);
return $component["data"];
//echo "real function is $function_send, $function_recv\n";
if(function_exists($function_send) && function_exists($function_recv)) {
- $function_recv($this->sendReceive($st_defined, $function_send($params)));
+ return $function_recv($this->sendReceive($st_defined, $function_send($params)));
} else {
error_log("Function, $function does not exist!");
}
}
if($msg["backend"] == "AD") {
+ echo "Backend is AD with params of\n";
+ print_r($msg);
+ echo "\n";
$backEnd = "AD";
// attempt connect to AD, verify creds
$addom = $msg["domain"];
$backEnd = "AD";
// and that should be it... i think cept im in a forked erg.. lets assume it works, need pain i do not.
+ echo "its all good at the server\n";
return true;
} else if($msg["backend"] == "IN") {