Extension:HostStats/pl

This page is a translated version of the page Extension:HostStats and the translation is 13% complete.
Podręcznik rozszerzeń MediaWiki
HostStats
Status wydania: stabilne
Realizacja Strona specjalna
Opis Provides a special page that outputs information about the wiki's host.
Autor(zy) Hydrizdyskusja
Ostatnia wersja 2.0.0 (2019-09-16)
MediaWiki 1.32+
PHP 7.0+
Zmiany w bazie danych Nie
Licencja GNU General Public License 3.0 or later
Pobieranie
README
CHANGELOG
$wgHostStatsCommands
hoststats
Quarterly downloads 2 (Ranked 136th)
Przetłumacz rozszerzenie HostStats jeżeli jest dostępne na translatewiki.net
Problemy Otwarte zadania · Zgłoś błąd

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.

Instalacja

  • Pobierz i umieść plik(i) w katalogu o nazwie HostStats w folderze extensions/.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/HostStats
  • Dodaj poniższy kod na dole twojego pliku LocalSettings.php :
    wfLoadExtension( 'HostStats' );
    
  • Configure at your convenience
  •   Zrobione – Przejdź do Special:Version na twojej wiki, aby sprawdzić czy rozszerzenie zostało pomyślnie zainstalowane.

Configuration

Parameter

$wgHostStatsCommands

An array of commands to output. Since version 2.0.0 empty by default. Przykład:

$wgHostStatsCommands = [
	'hostname',
	'df -h'
];
This example only applies for unix users only. Windows users might need to change this accordingly.

User right

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;