3 // thie file defines the messages sent too and from the gaas client.
4 function gaasStatus_clientsend($params)
9 function gaasStatus_clientrecv($params)
12 echo "Server status is $params\n";
16 // INIT server message
18 // AD: "AD", "user", "pass", "domain", "client def", "admin def"
19 // IN: "IN", "user", "pass"
20 function gaasInitServer_clientsend($params)
22 $msg["backend"] = $params[0];
23 $msg["user"] = $params[1];
24 $msg["pass"] = $params[2];
25 if($msg["backend"] == "AD") {
26 $msg["domain"] = $params[3];
27 $msg["clientdef"] = $params[4];
28 $msg["admindef"] = $params[4];
29 } else if($msg["backend"] == "IN") {
30 // we dont do anything
32 // invalid backend type
39 // pretty simple, it either works or doesnt, we just pass on the result
40 function gaasInitServer_clientrecv($params)