Open-AudIT
https://www.open-audit.org/phpBB3/

[solved] Display Windows User on PC Summary Screen
https://www.open-audit.org/phpBB3/viewtopic.php?f=20&t=6406
Page 1 of 1

Author:  Brick [ Mon Feb 09, 2015 7:52 pm ]
Post subject:  [solved] Display Windows User on PC Summary Screen

Hi everybody,

is there a (easy) way to display the last logged in "Windows User" on the
PC Summary Screen.

lock at my modified attached Screenshot.

Cheers Brick

Attachments:
Bereich.png
Bereich.png [ 69.95 KiB | Viewed 3551 times ]

Author:  Mark [ Tue Feb 10, 2015 11:32 am ]
Post subject:  Re: Display Windows User on PC Summary Screen

Edit the file
(Windows) c:\xampplite\open-audit\code_igniter\application\views\theme-tango\v_display_device.php
(Linux) /usr/local/open-audit/code_igniter/application/views/theme-tango/v_display_device.php

At about line 250, insert the below:

[code] if (isset($windows[0]->windows_user_name)) {
echo "<p><label for='windows_user'>Last Logged In User: </label><span id='windows_user'>" . $windows[0]->windows_user_name . "</span></p>";
echo "</div>\n";
}[/code]

This should go immediately before:

[code] </div>
<?php echo display_custom_field('system_details', $additional_fields_data, $edit); ?>
</fieldset>[/code]

And make sure it's inside the PHP code (ie, before the closing ?>).

Let us know if it works for you!

Author:  Brick [ Tue Feb 10, 2015 6:03 pm ]
Post subject:  Re: Display Windows User on PC Summary Screen

Hi Mark

works great !! Thank's a lot !!

Cheers Brick

Page 1 of 1 All times are UTC + 10 hours
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/