From: paulr Date: Sat, 4 Dec 2010 18:46:32 +0000 (+1100) Subject: just trying to figure out how to create the db properly X-Git-Url: http://git.pjr.cc/?p=ga4php.git;a=commitdiff_plain;h=b01c2819480261bd5c94de2bf05533c9e82a6ab2 just trying to figure out how to create the db properly --- 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 +?>