Automatically change user when its selected (server side)

This commit is contained in:
Gregory Soutade 2014-04-02 07:47:54 +02:00
parent 6d30db3ca0
commit ee75e0ea06

View File

@ -89,7 +89,7 @@ if ($count == 0)
echo "<b>No user found</b><br/>\n"; echo "<b>No user found</b><br/>\n";
else else
{ {
echo "<b>User</b> <select id=\"selected_user\" name=\"user\" onchange=\"document.getElementById('master_key').value = ''\">" . "\n"; echo "<b>User</b> <select id=\"selected_user\" name=\"user\" onchange=\"document.getElementById('master_key').value = '';update_master_key(false);\">" . "\n";
foreach($users as $u) foreach($users as $u)
{ {
if (is_dir("./users/" . $u) && $u[0] != '_' && $u[0] != '.') if (is_dir("./users/" . $u) && $u[0] != '_' && $u[0] != '.')