From b01c2819480261bd5c94de2bf05533c9e82a6ab2 Mon Sep 17 00:00:00 2001 From: paulr Date: Sun, 5 Dec 2010 05:46:32 +1100 Subject: [PATCH] just trying to figure out how to create the db properly --- authserver/authd/authd.php | 4 ++-- authserver/create1000users.php | 35 +++++++++++++++++++++++++++++++++++ authserver/lib/authClient.php | 4 ++-- authserver/lib/lib.php | 2 +- 4 files changed, 40 insertions(+), 5 deletions(-) create mode 100644 authserver/create1000users.php diff --git a/authserver/authd/authd.php b/authserver/authd/authd.php index e6a21b7..f4b366d 100644 --- a/authserver/authd/authd.php +++ b/authserver/authd/authd.php @@ -215,7 +215,7 @@ if($pid == -1) { } $i++; } - msg_send($cl_queue, GET_USERS, $users); + msg_send($cl_queue, MSG_GET_USERS, $users); // TODO now set token break; @@ -224,4 +224,4 @@ if($pid == -1) { } } -?> \ No newline at end of file +?> diff --git a/authserver/create1000users.php b/authserver/create1000users.php new file mode 100644 index 0000000..0be09b9 --- /dev/null +++ b/authserver/create1000users.php @@ -0,0 +1,35 @@ +addUser($username); +} +?> diff --git a/authserver/lib/authClient.php b/authserver/lib/authClient.php index a9e8da4..22a08b3 100644 --- a/authserver/lib/authClient.php +++ b/authserver/lib/authClient.php @@ -163,7 +163,7 @@ class GAAuthClient { msg_send($sr_queue, MSG_GET_USERS, "", true, true, $msg_err); echo "message sent\n"; - msg_receive($cl_queue, 0, $msg_type, 16384, $msg); + msg_receive($cl_queue, 0, $msg_type, 524288, $msg); echo "message received?\n"; print_r($msg); @@ -265,4 +265,4 @@ class GAAuthClient { } } -?> \ No newline at end of file +?> diff --git a/authserver/lib/lib.php b/authserver/lib/lib.php index 4ec2389..ef63d76 100644 --- a/authserver/lib/lib.php +++ b/authserver/lib/lib.php @@ -118,4 +118,4 @@ class gaasGA extends GoogleAuthenticator { } } -?> \ No newline at end of file +?> -- 1.7.0.4