Back to index

php5  5.3.10
safe_mode.h
Go to the documentation of this file.
00001 /*
00002   +----------------------------------------------------------------------+
00003   | PHP Version 5                                                        |
00004   +----------------------------------------------------------------------+
00005   | Copyright (c) 1997-2012 The PHP Group                                |
00006   +----------------------------------------------------------------------+
00007   | This source file is subject to version 3.01 of the PHP license,      |
00008   | that is bundled with this package in the file LICENSE, and is        |
00009   | available through the world-wide-web at the following url:           |
00010   | http://www.php.net/license/3_01.txt                                  |
00011   | If you did not receive a copy of the PHP license and are unable to   |
00012   | obtain it through the world-wide-web, please send a note to          |
00013   | license@php.net so we can mail you a copy immediately.               |
00014   +----------------------------------------------------------------------+
00015   | Author:                                                              |
00016   +----------------------------------------------------------------------+
00017 */
00018 
00019 /* $Id: safe_mode.h 321634 2012-01-01 13:15:04Z felipe $ */
00020 
00021 #ifndef SAFE_MODE_H
00022 #define SAFE_MODE_H
00023 
00024 /* mode's for php_checkuid() */
00025 #define CHECKUID_DISALLOW_FILE_NOT_EXISTS 0
00026 #define CHECKUID_ALLOW_FILE_NOT_EXISTS 1
00027 #define CHECKUID_CHECK_FILE_AND_DIR 2
00028 #define CHECKUID_ALLOW_ONLY_DIR 3
00029 #define CHECKUID_CHECK_MODE_PARAM 4
00030 #define CHECKUID_ALLOW_ONLY_FILE 5
00031 
00032 /* flags for php_checkuid_ex() */
00033 #define CHECKUID_NO_ERRORS  0x01
00034 
00035 BEGIN_EXTERN_C()
00036 PHPAPI int php_checkuid(const char *filename, const char *fopen_mode, int mode);
00037 PHPAPI int php_checkuid_ex(const char *filename, const char *fopen_mode, int mode, int flags);
00038 PHPAPI char *php_get_current_user(void);
00039 END_EXTERN_C()
00040 
00041 #endif