/*
* 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.
char filename[PATH_MAX];
char pathname[PATH_MAX];
char MimeTestBuf[32];
- int which_floor;
int a;
int rv;
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 {
{
int is_this_for_real;
char basenm[256];
- int which_floor;
int a;
if (num_parms(cmdbuf) < 2) {
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);
}