From: paulr Date: Sat, 26 Feb 2011 16:29:19 +0000 (+1100) Subject: minor fixes X-Git-Url: http://git.pjr.cc/?a=commitdiff_plain;h=0706f2fd04d844144107b7e187cad768a5b92bbc;p=ga4php.git minor fixes --- diff --git a/gaas/lib/gaasdMessages.php b/gaas/lib/gaasdMessages.php index 21df30d..82d6d8e 100644 --- a/gaas/lib/gaasdMessages.php +++ b/gaas/lib/gaasdMessages.php @@ -334,7 +334,9 @@ function gaasDeleteUser_server($msg) { $username = $msg["username"]; $db = getDB(); - $db->query($sql = "delete from users where users_username='$username'"); + if($db->query("delete from users where users_username='$username'")) { + return true; + } else return false; } ?> \ No newline at end of file diff --git a/gaas/lib/globalLib.php b/gaas/lib/globalLib.php index bbfd2fc..b5e840b 100644 --- a/gaas/lib/globalLib.php +++ b/gaas/lib/globalLib.php @@ -26,11 +26,11 @@ define("MSG_GET_HARDWARE",28); // the gaasd call's $MESSAGE[]_server() for the server side // and $MESSAGE[]_client() for the client side -$MESSAGES[MSG_STATUS] = "gaasStatus"; -$MESSAGES[MSG_INIT_SERVER] = "gaasInitServer"; +$MESSAGES[MSG_STATUS] = "gaasStatus"; // +$MESSAGES[MSG_INIT_SERVER] = "gaasInitServer"; // AD: "AD", "user", "pass", "domain", "client def", "admin def" - IN: "IN", "user", "pass" $MESSAGES[MSG_SET_AD_LOGIN] = "gaasSetADLogin"; // domain, user, password $MESSAGES[MSG_SET_CLIENT_GROUP] = "gaasSetClientGroup"; // groupname -$MESSAGES[MSG_SET_ADMIN_GROUP] = "gaasSetAdminGroup"; +$MESSAGES[MSG_SET_ADMIN_GROUP] = "gaasSetAdminGroup"; // groupname $MESSAGES[MSG_PROVISION_USER] = "gaasProvisionUser"; // username, tokentype, tokenkey, hardware|software $MESSAGES[MSG_GET_USERS] = "gaasGetUsers"; // [admin|client], [name pattern], [only with tokens] $MESSAGES[MSG_DELETE_USER] = "gaasDeleteUser"; // username