51 lines
840 B
C
51 lines
840 B
C
#ifndef _MOD_SSI_H_
|
|
#define _MOD_SSI_H_
|
|
#include "first.h"
|
|
|
|
#include "base_decls.h"
|
|
#include "buffer.h"
|
|
#include "array.h"
|
|
|
|
#include "plugin.h"
|
|
|
|
typedef struct {
|
|
const array *ssi_extension;
|
|
const buffer *content_type;
|
|
unsigned short conditional_requests;
|
|
unsigned short ssi_exec;
|
|
unsigned short ssi_recursion_max;
|
|
} plugin_config;
|
|
|
|
typedef struct {
|
|
PLUGIN_DATA;
|
|
plugin_config defaults;
|
|
plugin_config conf;
|
|
|
|
buffer *timefmt;
|
|
|
|
buffer *stat_fn;
|
|
|
|
array *ssi_vars;
|
|
array *ssi_cgi_env;
|
|
} plugin_data;
|
|
|
|
typedef struct {
|
|
buffer *timefmt;
|
|
int sizefmt;
|
|
|
|
buffer *stat_fn;
|
|
|
|
array *ssi_vars;
|
|
array *ssi_cgi_env;
|
|
|
|
int if_level, if_is_false_level, if_is_false, if_is_false_endif;
|
|
unsigned short ssi_recursion_depth;
|
|
|
|
log_error_st *errh;
|
|
plugin_config conf;
|
|
} handler_ctx;
|
|
|
|
int ssi_eval_expr(handler_ctx *p, const char *expr);
|
|
|
|
#endif
|