From: nishi Date: Thu, 13 Jun 2024 01:51:40 +0000 (+0000) Subject: remoteclient will be added soon X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=43d6c2d599e4055d32fa733a484f3bb732dddce3;p=dataworks.git remoteclient will be added soon git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@282 d4a5a174-5a4a-5b4b-b672-37683c10d7d5 --- diff --git a/Server/server.c b/Server/server.c index 6c40e8f..0c87034 100644 --- a/Server/server.c +++ b/Server/server.c @@ -216,6 +216,16 @@ void protocol_loop(int sock) { } else { writeline(sock, "ERROR:NO_AUTH"); } + } else if(__dw_strcaseequ(buf, "EXEC")){ + if(auth ? login : 1){ + if(has_arg){ + dataworks_database_execute_code(db, buf + i + 1, false); + }else{ + writeline(sock, "ERROR:NEED_MORE_ARGS"); + } + }else{ + writeline(sock, "ERROR:NOT_IN"); + } } else { writeline(sock, "ERROR:UNKNOWN_CMD"); }