/* +----------------------------------------------------------------------+ | Hardened-PHP Project's varfilter extension | +----------------------------------------------------------------------+ | Copyright (c) 2004-2005 Stefan Esser | +----------------------------------------------------------------------+ | This source file is subject to version 2.02 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | | available at through the world-wide-web at | | http://www.php.net/license/2_02.txt. | | If you did not receive a copy of the PHP license and are unable to | | obtain it through the world-wide-web, please send a note to | | license@php.net so we can mail you a copy immediately. | +----------------------------------------------------------------------+ | Author: Stefan Esser | +----------------------------------------------------------------------+ $Id: php_varfilter.h,v 1.1 2004/11/14 13:27:16 ionic Exp $ */ #ifndef PHP_VARFILTER_H #define PHP_VARFILTER_H extern zend_module_entry varfilter_module_entry; #define phpext_varfilter_ptr &varfilter_module_entry #ifdef PHP_WIN32 #define PHP_VARFILTER_API __declspec(dllexport) #else #define PHP_VARFILTER_API #endif #ifdef ZTS #include "TSRM.h" #endif #include "SAPI.h" #include "php_variables.h" PHP_MINIT_FUNCTION(varfilter); PHP_MSHUTDOWN_FUNCTION(varfilter); PHP_RINIT_FUNCTION(varfilter); PHP_RSHUTDOWN_FUNCTION(varfilter); PHP_MINFO_FUNCTION(varfilter); ZEND_BEGIN_MODULE_GLOBALS(varfilter) /* request variables */ long max_request_variables; long cur_request_variables; long max_varname_length; long max_totalname_length; long max_value_length; long max_array_depth; long max_array_index_length; /* cookie variables */ long max_cookie_vars; long cur_cookie_vars; long max_cookie_name_length; long max_cookie_totalname_length; long max_cookie_value_length; long max_cookie_array_depth; long max_cookie_array_index_length; /* get variables */ long max_get_vars; long cur_get_vars; long max_get_name_length; long max_get_totalname_length; long max_get_value_length; long max_get_array_depth; long max_get_array_index_length; /* post variables */ long max_post_vars; long cur_post_vars; long max_post_name_length; long max_post_totalname_length; long max_post_value_length; long max_post_array_depth; long max_post_array_index_length; /* fileupload */ long max_uploads; long cur_uploads; zend_bool disallow_elf_files; char *verification_script; ZEND_END_MODULE_GLOBALS(varfilter) #ifdef ZTS #define VARFILTER_G(v) TSRMG(varfilter_globals_id, zend_varfilter_globals *, v) #else #define VARFILTER_G(v) (varfilter_globals.v) #endif SAPI_INPUT_FILTER_FUNC(varfilter_input_filter); SAPI_PRE_UPLOAD_FILTER_FUNC(varfilter_pre_upload_filter); SAPI_UPLOAD_CONTENT_FILTER_FUNC(varfilter_upload_content_filter); SAPI_POST_UPLOAD_FILTER_FUNC(varfilter_post_upload_filter); #endif /* PHP_VARFILTER_H */ /* * Local variables: * tab-width: 4 * c-basic-offset: 4 * indent-tabs-mode: t * End: */