Subversion Repositories ALCASAR

Rev

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

Rev 2658 Rev 2666
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: user_edit.php 2658 2018-11-04 15:32:36Z tom.houdayer $
2
# $Id: user_edit.php 2666 2018-12-06 21:17:27Z 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 157... Line 157...
157
			include("../lib/$config[general_lib_type]/change_passwd.php");
157
			include("../lib/$config[general_lib_type]/change_passwd.php");
158
		if ($group_change && $config['general_lib_type'] == 'sql' && $config['sql_show_all_groups'] == 'true'){
158
		if ($group_change && $config['general_lib_type'] == 'sql' && $config['sql_show_all_groups'] == 'true'){
159
			include("../lib/$config[general_lib_type]/group_change.php");
159
			include("../lib/$config[general_lib_type]/group_change.php");
160
			include("../lib/defaults.php");
160
			include("../lib/defaults.php");
161
		}
161
		}
-
 
162
		
-
 
163
		if (is_file("../lib/$config[general_lib_type]/user_info.php"))
-
 
164
			include("../lib/$config[general_lib_type]/user_info.php");
162
 
165
 
163
		// Reconnect allowed MAC
166
		// Reconnect allowed MAC
164
		if (!empty($mac) && ($login === $mac)) {
167
		if (!empty($mac) && ($login === $mac)) {
165
			exec('sudo /usr/sbin/chilli_query login mac '.escapeshellarg($mac).' username '.escapeshellarg($mac)." password 'password'");
168
			exec('sudo /usr/sbin/chilli_query login mac '.escapeshellarg($mac).' username '.escapeshellarg($mac)." password 'password'");
166
		}
169
		}
Line 185... Line 188...
185
		}
188
		}
186
 
189
 
187
		if (is_file("../lib/$config[general_lib_type]/change_attrs.php"))
190
		if (is_file("../lib/$config[general_lib_type]/change_attrs.php"))
188
			include("../lib/$config[general_lib_type]/change_attrs.php");
191
			include("../lib/$config[general_lib_type]/change_attrs.php");
189
 
192
 
-
 
193
		if (is_file("../lib/$config[general_lib_type]/group_info.php"))
-
 
194
			include("../lib/$config[general_lib_type]/group_info.php");
-
 
195
 
190
		// Reconnect allowed MAC from the selected group
196
		// Reconnect allowed MAC from the selected group
191
		foreach ($group_macs as $mac) {
197
		foreach ($group_macs as $mac) {
192
			exec('sudo /usr/sbin/chilli_query login mac '.escapeshellarg($mac).' username '.escapeshellarg($mac)." password 'password'");
198
			exec('sudo /usr/sbin/chilli_query login mac '.escapeshellarg($mac).' username '.escapeshellarg($mac)." password 'password'");
193
		}
199
		}
194
	}
200
	}