Execute help command and check its output
|
<?php $command = "help"; $logged_in = explode(' ', shell_exec($command)); for ($i = 0; $i < count($logged_in); $i++) { if ($argv[1] == trim($logged_in[$i])) { $found_user = 1; } } if($found_user) { print "User $argv[1] is currently logged inn"; } else { print "User $argv[1] is NOT currently logged inn"; } ?>
|
|
|
|
|
HTML code for linking to this page:
Related in same category :
-
-
-
-
-
-
-
-
|