Subversion Repositories ALCASAR

Rev

Rev 2655 | Rev 2666 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2655 Rev 2658
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: user_edit.php 2655 2018-11-04 02:18:38Z tom.houdayer $
2
# $Id: user_edit.php 2658 2018-11-04 15:32:36Z tom.houdayer $
3
 
3
 
4
//gestion de la langue
4
//gestion de la langue
5
if (is_file("../lib/langues.php"))
5
if (is_file("../lib/langues.php"))
6
	include("../lib/langues.php");
6
	include("../lib/langues.php");
7
 
7
 
Line 145... Line 145...
145
 
145
 
146
		// Disconnecting user for re-authentication
146
		// Disconnecting user for re-authentication
147
		$mac = exec('sudo /usr/sbin/chilli_query list | awk '.escapeshellarg('($5 == 1) && ($6 == "'.$login.'") {print $1}'));
147
		$mac = exec('sudo /usr/sbin/chilli_query list | awk '.escapeshellarg('($5 == 1) && ($6 == "'.$login.'") {print $1}'));
148
		if (!empty($mac)) {
148
		if (!empty($mac)) {
149
			exec('sudo /usr/sbin/chilli_query logout mac '.escapeshellarg($mac));
149
			exec('sudo /usr/sbin/chilli_query logout mac '.escapeshellarg($mac));
-
 
150
			usleep(100000);
150
		}
151
		}
151
 
152
 
152
		if (is_file("../lib/$config[general_lib_type]/change_attrs.php"))
153
		if (is_file("../lib/$config[general_lib_type]/change_attrs.php"))
153
			include("../lib/$config[general_lib_type]/change_attrs.php");
154
			include("../lib/$config[general_lib_type]/change_attrs.php");
154
		if ($config['general_show_user_password'] != 'no' && $passwd != ''
155
		if ($config['general_show_user_password'] != 'no' && $passwd != ''
Line 178... Line 179...
178
					if ($member === $mac) {
179
					if ($member === $mac) {
179
						$group_macs[] = $mac;
180
						$group_macs[] = $mac;
180
					}
181
					}
181
				}
182
				}
182
			}
183
			}
-
 
184
			usleep(100000);
183
		}
185
		}
184
 
186
 
185
		if (is_file("../lib/$config[general_lib_type]/change_attrs.php"))
187
		if (is_file("../lib/$config[general_lib_type]/change_attrs.php"))
186
			include("../lib/$config[general_lib_type]/change_attrs.php");
188
			include("../lib/$config[general_lib_type]/change_attrs.php");
187
 
189