ona  18.1.1
About: OpenNetAdmin provides a database managed inventory of your IP network (with Web and CLI interface).
  Fossies Dox: ona-18.1.1.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

app_user_info.inc.php File Reference

Go to the source code of this file.

Functions

</td >< td class="padding">< input id="changego" type="button" name="changego" value="Change" onclick="el('old').value = make_md5(el('old_pass').value); el('new1').value = make_md5(el('new1_pass').value); el('new2').value = make_md5(el('new2_pass').value); xajax_window_submit('{$window_name}', xajax.getFormValues('passchange_form'), 'change_user_password');" ></td ></td ></table ></form ></span >< div style="background-color: {$color['window_content_bg']};">< table style="padding: 25px;" cellspacing="0" border="0" cellpadding="0">< tr >< td class="padding" style="font-weight: bold;" align="center" colspan="3">< u > Current DB connection info</u ></td ></tr >< tr >< td class="padding" style="font-weight: bold;"> Database Host</td >< td class="padding"> ws_change_user_password ($window_name, $form)
 

Variables

 $window ['title'] = "User Info"
 
 $window ['js']
 
 EOL
 
global $conf
 
global $self
 
 $output ['ona_username'] = $_SESSION['ona']['auth']['user']['username']
 
 $output ['ona_user_level'] = $_SESSION['ona']['auth']['user']['level']
 
 $groups = array_keys($_SESSION['ona']['auth']['user']['grps'])
 
 $output ['ona_groups'] = implode("\n", $groups)
 
 $permissions = array_keys($_SESSION['ona']['auth']['perms'])
 
 $output ['ona_permissions'] = implode("\n", $permissions)
 
foreach(array_keys($output) as $key) $window ['html']
 
</td ></td >< tr >< td align="right" valign="top" class="padding" style="font-weight: bold;"> Permissions
 
</td ></td ><!-- commented out for now till LDAP stuff is usefull< tr >< td colspan="2" align="center" class="padding" style="font-weight: bold;">< u > Domain Info</u ></td ></td >< tr >< td align="right" valign="top" class="padding" style="font-weight: bold;"> Username
 
Full Name
 
Groups __pad0__
 
</td >< td class="padding">< input id="changebutton" type="button" name="change_pass" value="Change Password" onclick="el('passchange_container').style.display = (el('passchange_container').style.display == 'none') ? '' : 'none'; el('changebutton').style.display = 'none';" ></td ></td ></table ><!-- PASSWORD CHANGE CONTAINER -->< span id="passchange_container" style="display:none;">< form id="passchange_form">< input id="old" name="old" type="hidden" value="">< input id="new1" name="new1" type="hidden" value="">< input id="new2" name="new2" type="hidden" value="">< table style="background-color: {$color['window_content_bg']}; padding-left: 25px; padding-right: 25px;" width="100%" cellspacing="0" border="0" cellpadding="0">< tr >< td align="right" nowrap="true" class="padding" style="font-weight: bold;"> Old password
 
Confirm __pad1__
 
 id
 

Function Documentation

◆ ws_change_user_password()

</td><td class="padding"><input id="changego" type="button" name="changego" value="Change" onclick="el('old').value = make_md5(el('old_pass').value); el('new1').value = make_md5(el('new1_pass').value); el('new2').value = make_md5(el('new2_pass').value); xajax_window_submit('{$window_name}', xajax.getFormValues('passchange_form'), 'change_user_password');" ></td></td></table></form></span><div style="background-color: {$color['window_content_bg']};"><table style="padding: 25px;" cellspacing="0" border="0" cellpadding="0"><tr><td class="padding" style="font-weight: bold;" align="center" colspan="3"><u> Current DB connection info</u></td></tr><tr><td class="padding" style="font-weight: bold;"> Database Host</td><td class="padding"> ws_change_user_password (   $window_name,
  $form 
)

Variable Documentation

◆ $conf

global $conf

Definition at line 18 of file app_user_info.inc.php.

Referenced by ws_change_user_password().

◆ $groups

$groups = array_keys($_SESSION['ona']['auth']['user']['grps'])

Definition at line 22 of file app_user_info.inc.php.

Referenced by get_perms(), and ws_save().

◆ $output [1/4]

$output[ 'ona_groups'] = implode("\n", $groups)

Definition at line 23 of file app_user_info.inc.php.

◆ $output [2/4]

$output[ 'ona_permissions'] = implode("\n", $permissions)

Definition at line 25 of file app_user_info.inc.php.

◆ $output [3/4]

$output[ 'ona_user_level'] = $_SESSION['ona']['auth']['user']['level']

Definition at line 21 of file app_user_info.inc.php.

◆ $output [4/4]

$output[ 'ona_username'] = $_SESSION['ona']['auth']['user']['username']

Definition at line 20 of file app_user_info.inc.php.

◆ $permissions

$permissions = array_keys($_SESSION['ona']['auth']['perms'])

Definition at line 24 of file app_user_info.inc.php.

Referenced by add_permission(), get_perms(), ws_editor(), and ws_save().

◆ $self

global $self

Definition at line 18 of file app_user_info.inc.php.

Referenced by ws_change_user_password().

◆ $window [1/3]

foreach (array_keys( $output) as $key) $window[ 'html']
Initial value:
= <<<EOL
<!-- Window Content -->
<table style="background-color: {$color['window_content_bg']}; padding-left: 25px; padding-right: 25px;" width="100%" cellspacing="0" border="0" cellpadding="0">
<tr>
<td colspan="2" align="center" class="padding" style="font-weight: bold;">
<u>ONA User Auth Info</u>
</td>
</td>
<tr>
<td align="right" valign="top" class="padding" style="font-weight: bold;">
</td>
<td align="left" class="padding">
<div style="float: left;">{$output['ona_username']}</div>
</td>
<td align="left" rowspan="2" class="padding">
<div title="Detailed info about network managment" style="float: right;"><a target="null" href="http://www.homestarrunner.com/sbemail152.html"><img src="{$images}/strongbad.gif" hspace="0" vspace="0" align="left" border="0"></a></div>
</td>
</td>
<tr>
<td align="right" valign="top" class="padding" style="font-weight: bold;">
Groups:
</td>
<td align="left" class="padding">
{$output['ona_groups']}&nbsp

Definition at line 32 of file app_user_info.inc.php.

◆ $window [2/3]

$window[ 'js']
Initial value:
= <<<EOL
el('{$window_name}_title_r').innerHTML =
'&nbsp;<a onClick="toggle_window(\'{$window_name}\');" title="Minimize window" style="cursor: pointer;"><img src="{$images}/icon_minimize.gif" border="0" /></a>' +
el('{$window_name}_title_r').innerHTML

Definition at line 5 of file app_user_info.inc.php.

◆ $window [3/3]

$window[ 'title'] = "User Info"

Definition at line 3 of file app_user_info.inc.php.

◆ __pad0__

Groups __pad0__

Definition at line 112 of file app_user_info.inc.php.

◆ __pad1__

Confirm __pad1__

Definition at line 182 of file app_user_info.inc.php.

◆ EOL

EOL

Definition at line 16 of file app_user_info.inc.php.

◆ id

id
Initial value:
="passchangemsg"></span>
</td>
</tr>
<tr>
<td class="padding">

Definition at line 182 of file app_user_info.inc.php.

Referenced by ws_editor().

◆ Name

◆ password

New password

Definition at line 149 of file app_user_info.inc.php.

Referenced by get_html_menu_button_ona(), and mysql_purge_logs().

◆ Permissions

</td></td><tr><td align="right" valign="top" class="padding" style="font-weight: bold;"> Permissions

Definition at line 69 of file app_user_info.inc.php.

◆ Username

</td></td><!-- commented out for now till LDAP stuff is usefull <tr><td colspan="2" align="center" class="padding" style="font-weight: bold;"><u> Domain Info</u></td></td><tr><td align="right" valign="top" class="padding" style="font-weight: bold;"> Username

Definition at line 92 of file app_user_info.inc.php.

Referenced by get_loginform_html(), ws_display(), ws_display_list(), and ws_editor().

EOL
EOL
Definition: app_user_info.inc.php:16
Username
</td ></td ><!-- commented out for now till LDAP stuff is usefull< tr >< td colspan="2" align="center" class="padding" style="font-weight: bold;">< u > Domain Info</u ></td ></td >< tr >< td align="right" valign="top" class="padding" style="font-weight: bold;"> Username
Definition: app_user_info.inc.php:92
nbsp
& nbsp
Definition: install.php:36
$output
$output['ona_username']
Definition: app_user_info.inc.php:20