X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Fmodules%2Fctdlproto%2Fserv_file.c;fp=citadel%2Fmodules%2Fctdlproto%2Fserv_file.c;h=2358507995be413a249c2d876c28332f00fd25ed;hp=e780a703a3a4a0e55a379f7c2ff39f8b0e79451b;hb=d1dcc57fd3286c9e38b7f15eb2fb047279232628;hpb=4c08058fe6930c4278ee9ec4579d4377ae532000 diff --git a/citadel/modules/ctdlproto/serv_file.c b/citadel/modules/ctdlproto/serv_file.c index e780a703a..235850799 100644 --- a/citadel/modules/ctdlproto/serv_file.c +++ b/citadel/modules/ctdlproto/serv_file.c @@ -1,7 +1,7 @@ /* * Server functions which handle file transfers and room directories. * - * Copyright (c) 1987-2015 by the citadel.org team + * Copyright (c) 1987-2016 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. @@ -226,7 +226,6 @@ void cmd_oimg(char *cmdbuf) char filename[PATH_MAX]; char pathname[PATH_MAX]; char MimeTestBuf[32]; - int which_floor; int a; int rv; @@ -244,11 +243,7 @@ void cmd_oimg(char *cmdbuf) return; } - if (!strcasecmp(filename, "_floorpic_")) { - which_floor = extract_int(cmdbuf, 1); - snprintf(pathname, sizeof pathname, "%s/floor.%d", ctdl_image_dir, which_floor); - } - else if (!strcasecmp(filename, "_roompic_")) { + if (!strcasecmp(filename, "_roompic_")) { assoc_file_name(pathname, sizeof pathname, &CC->room, ctdl_image_dir); } else { @@ -365,7 +360,6 @@ void cmd_uimg(char *cmdbuf) { int is_this_for_real; char basenm[256]; - int which_floor; int a; if (num_parms(cmdbuf) < 2) { @@ -398,15 +392,6 @@ void cmd_uimg(char *cmdbuf) basenm); } - if ((!strcasecmp(basenm, "_floorpic_")) - && (CC->user.axlevel >= AxAideU)) { - which_floor = extract_int(cmdbuf, 2); - snprintf(CC->upl_path, sizeof CC->upl_path, - "%s/floor.%d.gif", - ctdl_image_dir, - which_floor); - } - if ((!strcasecmp(basenm, "_roompic_")) && (is_room_aide())) { assoc_file_name(CC->upl_path, sizeof CC->upl_path, &CC->room, ctdl_image_dir); }