From 43d6c2d599e4055d32fa733a484f3bb732dddce3 Mon Sep 17 00:00:00 2001 From: nishi Date: Thu, 13 Jun 2024 01:51:40 +0000 Subject: [PATCH] remoteclient will be added soon git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@282 d4a5a174-5a4a-5b4b-b672-37683c10d7d5 --- Server/server.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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"); } -- 2.43.0