/*
* WebCit "system dependent" code.
*
- * Copyright (c) 1996-2012 by the citadel.org team
+ * Copyright (c) 1996-2021 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 file_crpt_file_cer[PATH_MAX]="";
char file_etc_mimelist[PATH_MAX]="";
-const char editor_absolut_dir[PATH_MAX]=EDITORDIR; /* nailed to what configure gives us. */
-
char etc_dir[PATH_MAX];
char static_dir[PATH_MAX]; /* calculated on startup */
char static_local_dir[PATH_MAX]; /* calculated on startup */
char static_icon_dir[PATH_MAX]; /* where should we find our mime icons? */
char *static_dirs[]={ /* needs same sort order as the web mapping */
- (char*)static_dir, /* our templates on disk */
- (char*)static_local_dir, /* user provided templates disk */
- (char*)editor_absolut_dir, /* the editor on disk */
- (char*)static_icon_dir /* our icons... */
+ "./static",
+ "./static.local",
+ "./tiny_mce",
+ "./static/webcit_icons"
};
int ExitPipe[2];
void CheckGZipCompressionAllowed(const char *MimeType, long MLen)
{
void *v;
- wcsession *WCC = WC;
- if (WCC->Hdr->HR.gzip_ok)
- WCC->Hdr->HR.gzip_ok = GetHash(GZMimeBlackList, MimeType, MLen, &v) == 0;
+ if (WC->Hdr->HR.gzip_ok)
+ WC->Hdr->HR.gzip_ok = GetHash(GZMimeBlackList, MimeType, MLen, &v) == 0;
}
void InitialiseSemaphores(void)