This repository was archived by the owner on Sep 2, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 1818*/
1919class diagnostics {
2020
21+ /*
22+ Wywołuje wszystkie funkcje poza tymi, które są oznaczone jako
23+ niebezpieczne
24+ */
2125 function runAllRecursively (){
2226 $ nazwyFunkcji = Array (
2327 "runAllTests " ,
@@ -37,18 +41,12 @@ function runAllRecursively(){
3741 }
3842 }
3943
40- function runAllTests (){
41- $ this ->getUserAgent ();
42- $ this ->getCurrentWorkingDirectories ();
43- $ this ->getCurrentUser ();
44- $ this ->getInitialPhpConfiguredValues ();
45- $ this ->getDeclaredInterfaces ();
46- }
47-
44+ // Uzyskuje user-agent od przeglądarki uzytkownika
4845 function getUserAgent (){
4946 echo $ _SERVER ['HTTP_USER_AGENT ' ];
5047 }
5148
49+ // Uzyskuje aktualny katalog pracy od systemu uzytkownika
5250 function getCurrentWorkingDirectories (){
5351
5452 // Definicja zmiennych
@@ -65,6 +63,7 @@ function getCurrentWorkingDirectories(){
6563 }
6664 }
6765
66+ // Uzyskuje nazwę oraz UID aktualnego uzytkownika web ( = klienta serwera webowego)
6867 function getCurrentUser (){
6968 echo '<br>Currently logged in user: ' .get_current_user ().'<br> ' ;
7069 }
You can’t perform that action at this time.
0 commit comments