__construct(array $config)
array
A config array which should be similar to CONTENIDO's $cfg
checkImageResizer() : int
int
Returns one of the CON_IMAGERESIZE constantscheckOpenBasedirCompatibility() : int
int
getSafeModeGidStatus()
getSafeModeStatus()
isPHPExtensionLoaded(string $extension) : int
string
A PHP extension
int
Returns one of the CON_EXTENSION constantsisWindows() : boolean
boolean
runTests(bool $testFileSystem)
bool
If this is true the file system checks will be performed too with standard settings.
storeResult(bool $result, int $severity, string $errorHeadline, string $errorMessage, string $successHeadline, string $successMessage)
bool
true for success, false otherwise
int
One one of the C_SEVERITY constants
string
The headline which will be stored in the case that $result is false
string
The message which will be stored in the case that $result is false
string
The headline which will be stored in the case that $result is true
string
The message which will be stored in the case that $result is true
testDOMDocument()
testFileUploadSetting()
testFilesystem($testConfig, $testFrontend)
testGDGIFRead()
testGDGIFWrite()
testGDJPEGRead()
testGDJPEGWrite()
testGDPNGRead()
testGDPNGWrite()
testIconv()
testMagicQuotesRuntimeSetting()
testMagicQuotesSybaseSetting()
testMaxExecutionTime()
testMemoryLimit()
testMySQL($host, $username, $password)
testMySQLExtension()
testMySQLModeStrict($host, $username, $password)
testMySQLiExtension()
testPHPExtension($ext)
testPHPSQLSafeMode()
testPHPVersion()
They all return true if the test passed and false if not
testXMLParserCreate()
testZIPArchive()
canWriteDir(string $dirname) : boolean
string
The path to the directory
boolean
canWriteFile(string $filename) : boolean
string
The path to the file
boolean
doMySQLConnect(string $host, string $username, string $password) : \multitype:boolean
string
The database host
string
The database user
string
The database user password
\multitype:boolean
cDb Returns an array with the cDB object on the first place and a boolean on the secondgetAsBytes(string $val) : \number
string
A string in the form of "12K", "12M" or "12G"
\number
getFileInfo(string $sFilename) : boolean | array
The return array looks like this: array( "info" => $info, //'s' for a socket, 'l' for a symbolic link, '-' for a regular file, 'b' "block special", 'd' for a directory, 'c' "character special", 'p' FIFO pipe, 'u' for unkown "type" => $type, //A more descriptive version of $info "owner" => array( "id" => $id, //the owner id "read" => $read, //true if the owner is allowed to read the file "write" => $write //true if the owner is allowed to write the file ) "group" => array( "id" => $id, //the owner group "read" => $read, //true if the owner group is allowed to read the file "write" => $write //true if the owner group is allowed to write the file ) "others" => array( "read" => $read, //true if others are allowed to read the file "write" => $write //true if others are allowed to write the file ) )
string
The path to the file
boolean
array
False if the file can't be accessedgetPHPIniSetting(string $setting) : mixed
string
A PHP setting
mixed
The value of the PHP setting or NULL if ini_get is disabledgetServerGID() : \number | boolean
\number
boolean
User ID or false if unable to determine the groupgetServerUID() : \number | boolean
\number
boolean
User ID or false if unable to determine the usertestSingleFile(string $filename, int $severity, bool $dir) : boolean
string
The file
int
The resulting C_SEVERITY constant should the test fail
bool
True if the $filename is a directory
\Exception |
Throws a generic Exception in the event that the permissions are wrong |
---|
boolean
Returns true if everything is fine$_config : array
CON_BASEDIR_DOTRESTRICTION : int
The Basedir is set to ".". CONTENIDO won't work
CON_BASEDIR_INCOMPATIBLE : int
Open basedir is in effect and CONTENIDO doesn't work with it
CON_BASEDIR_NORESTRICTION : int
No restrictions
CON_BASEDIR_RESTRICTIONSUFFICIENT : int
Open basedir is in effect but CONTENIDO works anyway
CON_EXTENSION_AVAILABLE : int
CON_EXTENSION_CANTCHECK : int
CON_EXTENSION_UNAVAILABLE : int
CON_IMAGERESIZE_CANTCHECK : int
CON_IMAGERESIZE_GD : int
CON_IMAGERESIZE_IMAGEMAGICK : int
CON_IMAGERESIZE_NOTHINGAVAILABLE : int
CON_MYSQL_OK : int
CON_MYSQL_STRICT_MODE : int
CONTENIDO won't work
CON_PREDICT_CHANGEGROUP : int
CON_PREDICT_CHANGEPERM_OTHERS : int
CON_PREDICT_CHANGEPERM_SAMEGROUP : int
CON_PREDICT_CHANGEPERM_SAMEOWNER : int
CON_PREDICT_CHANGEUSER : int
CON_PREDICT_NOTPREDICTABLE : int
CON_PREDICT_SUFFICIENT : int
CON_PREDICT_WINDOWS : int
CON_SETUP_MIN_PHP_VERSION : string
C_SEVERITY_ERROR : int
CONTENIDO won't work
C_SEVERITY_INFO : int
C_SEVERITY_NONE : int
C_SEVERITY_WARNING : int