Skip to content
This repository was archived by the owner on Sep 2, 2020. It is now read-only.

Commit cc36070

Browse files
author
AnnaLisik
authored
Merge pull request #3 from AnnaLisik/comments
Comments
2 parents 442f560 + ee9f0c7 commit cc36070

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

php/inc/diagnostics.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
*/
1919
class 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
}

0 commit comments

Comments
 (0)