Textpattern PHP Cross Reference Content Management Systems

Summary: /textpattern/include/txp_diag.php - 675 lines - 21636 bytes - Source - Print

Description: Diagnostics panel.

Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 7 functions

apache_module()
test_tempdir()
list_txp_tables()
check_tables()
diag_msg_wrap()
doDiagnostics()
checkUpdates()

Functions

Functions that are not part of a class:

apache_module($m line: 64
Checks if the given Apache module is installed and active.

return: bool|null TRUE on success, NULL or FALSE on error
param: string $m The module
test_tempdir($dir line: 80
Verifies temporary directory status.

This function verifies that the given temporary directory is writeable.

return: bool|null NULL on error, TRUE on success
param: string $dir The directory to check
list_txp_tables()  line: 100
Lists all database tables used by the Textpattern core.

Returned tables include prefixes.

return: array
check_tables($tables, $type = 'FAST', $warnings = 0)  line: 120
Checks the status of the given database tables.

return: array An array of table statuses
param: array  $tables   The tables to check
param: string $type     Check type, either FOR UPGRADE, QUICK, FAST, MEDIUM, EXTENDED, CHANGED
param: bool   $warnings If TRUE, displays warnings
diag_msg_wrap($msg, $type = 'error')  line: 151
Renders a diagnostics message block.

return: string HTML
param: string $msg  The message
param: string $type The message type
doDiagnostics()  line: 165
Outputs a diagnostics report.

This is the main panel.
checkUpdates()  line: 631
Checks for Textpattern updates.

This function uses XML-RPC to do an active remote connection to
rpc.textpattern.com. Created connections are not cached, scheduled or
delayed, and each subsequent call to the function creates a new connection.

These connections do not transmit any identifiable information. Just an
anonymous UID assigned for the installation on the first run.

return: array|null When updates are found returns an array consisting keys 'version', 'msg'

title

Body