2003-02-19 16:40:19 +08:00
|
|
|
/*
|
|
|
|
+----------------------------------------------------------------------+
|
2004-01-09 01:33:29 +08:00
|
|
|
| PHP Version 5 |
|
2003-02-19 16:40:19 +08:00
|
|
|
+----------------------------------------------------------------------+
|
2004-01-09 01:33:29 +08:00
|
|
|
| Copyright (c) 1997-2004 The PHP Group |
|
2003-02-19 16:40:19 +08:00
|
|
|
+----------------------------------------------------------------------+
|
2003-06-11 04:04:29 +08:00
|
|
|
| This source file is subject to version 3.0 of the PHP license, |
|
2003-02-19 16:40:19 +08:00
|
|
|
| that is bundled with this package in the file LICENSE, and is |
|
2003-06-11 04:04:29 +08:00
|
|
|
| available through the world-wide-web at the following url: |
|
|
|
|
| http://www.php.net/license/3_0.txt. |
|
2003-02-19 16:40:19 +08:00
|
|
|
| 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: |
|
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
2000-07-03 07:46:51 +08:00
|
|
|
#ifndef SAFE_MODE_H
|
|
|
|
#define SAFE_MODE_H
|
1999-04-08 05:05:13 +08:00
|
|
|
|
2000-11-02 02:05:27 +08:00
|
|
|
/* mode's for php_checkuid() */
|
|
|
|
#define CHECKUID_DISALLOW_FILE_NOT_EXISTS 0
|
|
|
|
#define CHECKUID_ALLOW_FILE_NOT_EXISTS 1
|
|
|
|
#define CHECKUID_CHECK_FILE_AND_DIR 2
|
|
|
|
#define CHECKUID_ALLOW_ONLY_DIR 3
|
2000-11-03 07:30:48 +08:00
|
|
|
#define CHECKUID_CHECK_MODE_PARAM 4
|
2001-07-14 02:21:21 +08:00
|
|
|
#define CHECKUID_ALLOW_ONLY_FILE 5
|
2000-11-02 02:05:27 +08:00
|
|
|
|
2003-01-10 05:57:45 +08:00
|
|
|
/* flags for php_checkuid_ex() */
|
|
|
|
#define CHECKUID_NO_ERRORS 0x01
|
|
|
|
|
2004-02-20 16:04:30 +08:00
|
|
|
BEGIN_EXTERN_C()
|
|
|
|
PHPAPI int php_checkuid(const char *filename, char *fopen_mode, int mode);
|
|
|
|
PHPAPI int php_checkuid_ex(const char *filename, char *fopen_mode, int mode, int flags);
|
|
|
|
PHPAPI char *php_get_current_user(void);
|
|
|
|
END_EXTERN_C()
|
1999-04-08 05:05:13 +08:00
|
|
|
|
|
|
|
#endif
|