contenido\includes\functions.system.php
Description: Some system functions
Requirements:
- Author
- unknown
- Con_php_req
- 5.0
- Copyright
- four for business AG
- License
- http://www.contenido.org/license/LIZENZ.txt
- Link
- http://www.4fb.de
- Link
- http://www.contenido.org
- Package
- Contenido Backend includes
- Since
- file available since contenido release <= 4.6 {@internal created unknown modified 2008-06-26, Frederic Schneider, add security fix modified 2008-06-27, Timo Trautmann, add check to emptyLogFile if there is a permission to write file modified 2008-07-07, Dominik Ziegler, fixed language bugs modified 2008-11-21, Andreas Lindner, enhance formatting of client information modified 2008-11-21, Andreas Lindner, beautify output for empty configuration values $Id: functions.system.php 888 2008-11-21 10:19:10Z andreas.lindner $: }}
- Version
- 1.2.0
Functions
checkPathInformation(string $strConUrl, string $strBrowserUrl) : stringmust be done
must be done
| Name | Type | Description |
|---|---|---|
| $strConUrl | string | contenido fullhtmlPath |
| $strBrowserUrl | string | current browser string |
| Type | Description |
|---|---|
| string | status of path comparement |
compareUrlStrings( $arrConUrl, $arrBrowserUrl, $isIP = false) : voidcheck path informations
checks two path informations against each other to get potential nonconformities
| Name | Type | Description |
|---|---|---|
| $arrConUrl | ||
| $arrBrowserUrl | ||
| $isIP |
emptyLogFile() : stringemptyLogFile - clears errorlog.txt
clears Contenido standard errorlog.txt
| Type | Description |
|---|---|
| string | returns message if clearing was successfull or not |
- Author
- Marco Jahn
isIPv4(string $strHostAdress) : booleancheck for valid ip adress
| Name | Type | Description |
|---|---|---|
| $strHostAdress | string | ip adress |
| Type | Description |
|---|---|
| boolean | if string is a valid ip or not |
phpInfoToHtml() : stringphpInfoToHtml - grabs phpinfo() output
grabs phpinfo() HTML output
| Type | Description |
|---|---|
| string | returns phpinfo() HTML output |
- Author
- Marco Jahn
sendBugReport() : stringsendBugReport - send users bugreport
send users bugreport contains 4 attachements (1) errorlog.txt (2) install.log.txt (3) systemvariablen.html (generaten of writeSystemValuesOutput()) (4) phpinfo.html (generated of phpInfoToHtml())
to avoid errors when filesize attachement (1) or (2) is 0kb temporarily attachements with a specified message will be created
return value: - error code (0-3) 0) mail send successfull (no errors or missing data) 1) not all fields are filled out 2) email adress is not valid 3) user hasn't agreed to the declaration of consent
| Type | Description |
|---|---|
| string | returns several server and Contenido settings |
- Author
- Marco Jahn
system_have_perm(integer $client) : booleancheck users right for a client
check if the user has a right for a defined client
| Name | Type | Description |
|---|---|---|
| $client | integer | client id |
| Type | Description |
|---|---|
| boolean | wether user has access or not |
- Author
- Marco Jahn
writeSystemValuesOutput( $usage) : stringwriteSystemValuesOutput - get several server and Contenido settings
parse system and Contenido output into a string
| Name | Type | Description |
|---|---|---|
| $usage |
| Type | Description |
|---|---|
| string | returns a string containing several server and Contenido settings |
- Author
- Marco Jahn