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