From: Art Cancro Date: Mon, 22 Jan 2018 20:45:39 +0000 (-0500) Subject: removed IGnet functions from text client X-Git-Tag: v939~451 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=66b07d039f123c0aebad871f7a115a86cd6100e0 removed IGnet functions from text client --- diff --git a/textclient/citadel.rc b/textclient/citadel.rc index 19e248719..efe8824ea 100644 --- a/textclient/citadel.rc +++ b/textclient/citadel.rc @@ -231,13 +231,10 @@ cmd=70,2,&.,&Admin,&Message edit: cmd=78,1,&.,&Admin,&Post cmd=80,2,&.,&Admin,&System configuration,&General cmd=82,2,&.,&Admin,&System configuration,&Internet -cmd=88,2,&.,&Admin,&System configuration,&Network -cmd=92,2,&.,&Admin,&System configuration,network &Filter list cmd=85,2,&.,&Admin,&Terminate server,&Now cmd=86,2,&.,&Admin,&Terminate server,&Scheduled cmd=87,1,&.,&Admin,mailing &List recipients cmd=94,1,&.,&Admin,mailing list &Digest recipients -cmd=89,1,&.,&Admin,&Network room sharing cmd=29,0,&.,&Terminate,and &Quit cmd=30,0,&.,&Terminate,and &Stay online diff --git a/textclient/src/citadel.c b/textclient/src/citadel.c index 70cddecef..0385c3750 100644 --- a/textclient/src/citadel.c +++ b/textclient/src/citadel.c @@ -1,7 +1,7 @@ /* * Main source module for the client program. * - * Copyright (c) 1987-2016 by the citadel.org team + * Copyright (c) 1987-2018 by the citadel.org team * * This program is open source software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. @@ -1962,26 +1962,11 @@ NEWUSR: if (IsEmptyStr(rc_password)) { break; case 87: - network_config_management(ipc, "listrecp", - "Message-by-message mailing list recipients"); + network_config_management(ipc, "listrecp", "Message-by-message mailing list recipients"); break; case 94: - network_config_management(ipc, "digestrecp", - "Digest mailing list recipients"); - break; - - case 89: - network_config_management(ipc, "ignet_push_share", - "Nodes with which we share this room"); - break; - - case 88: - do_ignet_configuration(ipc); - break; - - case 92: - do_filterlist_configuration(ipc); + network_config_management(ipc, "digestrecp", "Digest mailing list recipients"); break; case 6: diff --git a/textclient/src/include/citadel_ipc.h b/textclient/src/include/citadel_ipc.h index 13150f993..536c13881 100644 --- a/textclient/src/include/citadel_ipc.h +++ b/textclient/src/include/citadel_ipc.h @@ -18,7 +18,7 @@ #include #endif -#define CLIENT_VERSION 916 +#define CLIENT_VERSION 918 #define CLIENT_TYPE 0 //copycat of: /#include "server.h" diff --git a/textclient/src/include/tuiconfig.h b/textclient/src/include/tuiconfig.h index 7e65bc4b6..6aa77d636 100644 --- a/textclient/src/include/tuiconfig.h +++ b/textclient/src/include/tuiconfig.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 1987-2012 by the citadel.org team + * Copyright (c) 1987-2018 by the citadel.org team * * This program is open source software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. @@ -11,12 +11,9 @@ */ void do_internet_configuration(CtdlIPC *ipc); -void do_ignet_configuration(CtdlIPC *ipc); void network_config_management(CtdlIPC *ipc, char *entrytype, char *comment); -void do_filterlist_configuration(CtdlIPC *ipc); void do_pop3client_configuration(CtdlIPC *ipc); void do_rssclient_configuration(CtdlIPC *ipc); void do_system_configuration(CtdlIPC *ipc); - extern char editor_path[PATH_MAX]; extern int enable_status_line; diff --git a/textclient/src/tuiconfig.c b/textclient/src/tuiconfig.c index d89ab9ccf..0f6d64a59 100644 --- a/textclient/src/tuiconfig.c +++ b/textclient/src/tuiconfig.c @@ -1,7 +1,7 @@ /* * Configuration screens that are part of the text mode client. * - * Copyright (c) 1987-2017 by the citadel.org team + * Copyright (c) 1987-2018 by the citadel.org team * * This program is open source software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. @@ -667,260 +667,6 @@ void network_config_management(CtdlIPC *ipc, char *entrytype, char *comment) } -/* - * IGnet node configuration - */ -void do_ignet_configuration(CtdlIPC *ipc) { - char buf[SIZ]; - int num_recs = 0; - char **recs = NULL; - char ch; - int i, j; - int quitting = 0; - int modified = 0; - char *listing = NULL; - int r; - - r = CtdlIPCGetSystemConfigByType(ipc, IGNETCFG, &listing, buf); - if (r / 100 == 1) while (*listing && !IsEmptyStr(listing)) { - extract_token(buf, listing, 0, '\n', sizeof buf); - remove_token(listing, 0, '\n'); - - ++num_recs; - if (num_recs == 1) recs = malloc(sizeof(char *)); - else recs = realloc(recs, (sizeof(char *)) * num_recs); - recs[num_recs-1] = malloc(SIZ); - strcpy(recs[num_recs-1], buf); - } - if (listing) free(listing); - - do { - scr_printf("\n"); - color(BRIGHT_WHITE); - scr_printf( "### " - " Node " - " Secret " - " Host or IP " - "Port#\n"); - color(DIM_WHITE); - scr_printf( "--- " - "---------------- " - "------------------ " - "-------------------------------- " - "-----\n"); - for (i=0; idd|elete|ave|uit"); - switch(ch) { - case 'a': - ++num_recs; - if (num_recs == 1) - recs = malloc(sizeof(char *)); - else recs = realloc(recs, - (sizeof(char *)) * num_recs); - newprompt("Enter node name : ", buf, 16); - strcat(buf, "|"); - newprompt("Enter shared secret: ", - &buf[strlen(buf)], 18); - strcat(buf, "|"); - newprompt("Enter host or IP : ", - &buf[strlen(buf)], 32); - strcat(buf, "|504"); - strprompt("Enter port number : ", - &buf[strlen(buf)-3], 5); - recs[num_recs-1] = strdup(buf); - modified = 1; - break; - case 'd': - i = intprompt("Delete which one", - 1, 1, num_recs) - 1; - free(recs[i]); - --num_recs; - for (j=i; jdd|elete|ave|uit"); - switch(ch) { - case 'a': - ++num_recs; - if (num_recs == 1) - recs = malloc(sizeof(char *)); - else recs = realloc(recs, - (sizeof(char *)) * num_recs); - newprompt("Enter user name: ", buf, 28); - strcat(buf, "|"); - newprompt("Enter room name: ", - &buf[strlen(buf)], 28); - strcat(buf, "|"); - newprompt("Enter node name: ", - &buf[strlen(buf)], 16); - strcat(buf, "|"); - recs[num_recs-1] = strdup(buf); - modified = 1; - break; - case 'd': - i = intprompt("Delete which one", - 1, 1, num_recs) - 1; - free(recs[i]); - --num_recs; - for (j=i; j