sanity.php
Table of Contents
- SANITY_CREATEFILE = 4
- SANITY_ERROR = 2
- SANITY_FINE = 0
- SANITY_NOT_E = 8
- SANITY_NOT_R = 2
- SANITY_NOT_RW = 4
- SANITY_READONLY = 1
- SANITY_READWRITE = 2
- SANITY_WARNING = 1
- sanity_checkFile() : int
- Check file/folder for requested permissions
- sanity_checkDirectory() : int
- Recursively check folder and all files/folders within for requested permissions
- sanity_checkFiles() : mixed
- sanity_checkServer() : mixed
- _sanity_checkDB() : mixed
- _sanity_checkGD() : mixed
- _sanity_checkPHPVersion() : mixed
- _sanity_checkZlib() : mixed
- _sanity_checkZip() : mixed
- _sanity_checkcURL() : mixed
- _sanity_checkFileinfo() : mixed
- _sanity_checkUploadSize() : mixed
- _sanity_checkXML() : mixed
- _sanity_checkOpenBaseDir() : mixed
- _sanity_checkTemp() : mixed
Constants
SANITY_CREATEFILE
public
mixed
SANITY_CREATEFILE
= 4
SANITY_ERROR
public
mixed
SANITY_ERROR
= 2
SANITY_FINE
public
mixed
SANITY_FINE
= 0
SANITY_NOT_E
public
mixed
SANITY_NOT_E
= 8
SANITY_NOT_R
public
mixed
SANITY_NOT_R
= 2
SANITY_NOT_RW
public
mixed
SANITY_NOT_RW
= 4
SANITY_READONLY
public
mixed
SANITY_READONLY
= 1
SANITY_READWRITE
public
mixed
SANITY_READWRITE
= 2
SANITY_WARNING
public
mixed
SANITY_WARNING
= 1
Functions
sanity_checkFile()
Check file/folder for requested permissions
sanity_checkFile( $file, $as_file, $flags) : int
Parameters
- $file :
-
string file/folder name
- $as_file :
-
bool is this a file or a folder
- $flags :
-
int type of check to perform
Return values
int —error
sanity_checkDirectory()
Recursively check folder and all files/folders within for requested permissions
sanity_checkDirectory( $dir, $flag) : int
Parameters
Return values
int —error
sanity_checkFiles()
sanity_checkFiles() : mixed
Return values
mixed —sanity_checkServer()
sanity_checkServer() : mixed
Return values
mixed —_sanity_checkDB()
_sanity_checkDB() : mixed
Return values
mixed —_sanity_checkGD()
_sanity_checkGD() : mixed
Return values
mixed —_sanity_checkPHPVersion()
_sanity_checkPHPVersion() : mixed
Return values
mixed —_sanity_checkZlib()
_sanity_checkZlib() : mixed
Return values
mixed —_sanity_checkZip()
_sanity_checkZip() : mixed
Return values
mixed —_sanity_checkcURL()
_sanity_checkcURL() : mixed
Return values
mixed —_sanity_checkFileinfo()
_sanity_checkFileinfo() : mixed
Return values
mixed —_sanity_checkUploadSize()
_sanity_checkUploadSize() : mixed
Return values
mixed —_sanity_checkXML()
_sanity_checkXML() : mixed
Return values
mixed —_sanity_checkOpenBaseDir()
_sanity_checkOpenBaseDir() : mixed
Return values
mixed —_sanity_checkTemp()
_sanity_checkTemp(mixed $dir) : mixed
Parameters
- $dir : mixed