Extensión:HostStats
Jump to navigation
Jump to search
Outdated translations are marked like this.
HostStats Estado de lanzamiento estable |
|
---|---|
Implementación | Página especial |
Descripción | Provee una página especial que genera información sobre el host wiki. |
Autor(es) | Hydrizdiscusión |
Última versión | 2.0.0 (2019-09-16) |
MediaWiki | 1.32+ |
PHP | 7.0+ |
Cambios de la base de datos | No |
Licencia | GNU Licencia Pública general 3.0 o más tarde |
Descarga | README CHANGELOG |
$wgHostStatsCommands |
|
hoststats |
|
Traduce el HostStats extensión si es disponible en translatewiki.net | |
Asuntos | Tareas abiertas · Reportar un bug |
The HostStats extension implements a special page "Special:HostStats" that outputs information about the wiki's hosting server.
The extension will run a set of commands based on the $wgHostStatsCommands
parameter, which the output will be displayed as different sections in the "Special:HostStats" special page.
This extension, if misused, can potentially expose your server and put it at risk! Please use with extreme care and if in doubt, do not install.
Instalación
- Descarga y extrae los archivos en el directorio «
HostStats
» dentro del directorioextensions/
existente. - Añade el siguiente código a tu LocalSettings.php (preferiblemente al final):
wfLoadExtension( 'HostStats' );
- Configuralo a tu gusto
Hecho – Navega a Special:Version en tu wiki para verificar que la apariencia se haya instalado correctamente.
Configuración
Parámetro
- $wgHostStatsCommands
An array of commands to output. Since version 2.0.0 empty by default. Example:
$wgHostStatsCommands = [
'hostname',
'df -h'
];
Este valor ejemplo sólo aplica a usuarios *nix. Los usuarios de Windows quizás deban cambiar esto acordemente.
Derecho del usuario
The user right "hoststats" will have to be set for an existing user group, e.g. "sysop" or preferably for a new user group:
$wgGroupPermissions['hoststats']['hoststats'] = true;
$wgGroupPermissions['sysop']['hoststats'] = true;