Annotation of embedaddon/php/main/safe_mode.h, revision 1.1
1.1 ! misho 1: /*
! 2: +----------------------------------------------------------------------+
! 3: | PHP Version 5 |
! 4: +----------------------------------------------------------------------+
! 5: | Copyright (c) 1997-2012 The PHP Group |
! 6: +----------------------------------------------------------------------+
! 7: | This source file is subject to version 3.01 of the PHP license, |
! 8: | that is bundled with this package in the file LICENSE, and is |
! 9: | available through the world-wide-web at the following url: |
! 10: | http://www.php.net/license/3_01.txt |
! 11: | If you did not receive a copy of the PHP license and are unable to |
! 12: | obtain it through the world-wide-web, please send a note to |
! 13: | license@php.net so we can mail you a copy immediately. |
! 14: +----------------------------------------------------------------------+
! 15: | Author: |
! 16: +----------------------------------------------------------------------+
! 17: */
! 18:
! 19: /* $Id: safe_mode.h 321634 2012-01-01 13:15:04Z felipe $ */
! 20:
! 21: #ifndef SAFE_MODE_H
! 22: #define SAFE_MODE_H
! 23:
! 24: /* mode's for php_checkuid() */
! 25: #define CHECKUID_DISALLOW_FILE_NOT_EXISTS 0
! 26: #define CHECKUID_ALLOW_FILE_NOT_EXISTS 1
! 27: #define CHECKUID_CHECK_FILE_AND_DIR 2
! 28: #define CHECKUID_ALLOW_ONLY_DIR 3
! 29: #define CHECKUID_CHECK_MODE_PARAM 4
! 30: #define CHECKUID_ALLOW_ONLY_FILE 5
! 31:
! 32: /* flags for php_checkuid_ex() */
! 33: #define CHECKUID_NO_ERRORS 0x01
! 34:
! 35: BEGIN_EXTERN_C()
! 36: PHPAPI int php_checkuid(const char *filename, const char *fopen_mode, int mode);
! 37: PHPAPI int php_checkuid_ex(const char *filename, const char *fopen_mode, int mode, int flags);
! 38: PHPAPI char *php_get_current_user(void);
! 39: END_EXTERN_C()
! 40:
! 41: #endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>