Subversion Repositories ALCASAR

Rev

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

Rev 2392 Rev 2698
Line 28... Line 28...
28
			if ((!empty($user_ip)) && ($user_ip !== $_SERVER['REMOTE_ADDR'])) {
28
			if ((!empty($user_ip)) && ($user_ip !== $_SERVER['REMOTE_ADDR'])) {
29
				exec('sudo /usr/sbin/chilli_query login mac '.escapeshellarg($login).' username '.escapeshellarg($login).' password '.escapeshellarg($passwd));
29
				exec('sudo /usr/sbin/chilli_query login mac '.escapeshellarg($login).' username '.escapeshellarg($login).' password '.escapeshellarg($passwd));
30
			}
30
			}
31
		}
31
		}
32
 
32
 
33
		/*Ajout en vue de l'impression des données (thank's to Geoffroy MUSITELLI)*/
-
 
34
		$passwd_imp = $passwd;
-
 
35
		/*Fin Ajout*/
-
 
36
		$passwd = da_encrypt($passwd);
33
		$passwd = da_encrypt($passwd);
37
		$passwd = da_sql_escape_string($link, $passwd);
34
		$passwd = da_sql_escape_string($link, $passwd);
38
		$res = da_sql_query($link,$config,
35
		$res = da_sql_query($link,$config,
39
		"INSERT INTO $config[sql_check_table] (attribute,value,username $text)
36
		"INSERT INTO $config[sql_check_table] (attribute,value,username $text)
40
		VALUES ('$config[sql_password_attribute]','$passwd','$login' $passwd_op);");
37
		VALUES ('$config[sql_password_attribute]','$passwd','$login' $passwd_op);");
Line 106... Line 103...
106
				else if (isset($attr_type["$key"]) && $attr_type["$key"] == 'replyItem'){
103
				else if (isset($attr_type["$key"]) && $attr_type["$key"] == 'replyItem'){
107
					$table = "$config[sql_reply_table]";
104
					$table = "$config[sql_reply_table]";
108
					$type = 2;
105
					$type = 2;
109
				}
106
				}
110
				$val = (isset($$attrmap["$key"])) ? $$attrmap["$key"] : '';
107
				$val = (isset($$attrmap["$key"])) ? $$attrmap["$key"] : '';
111
				/*Ajout en vue de l'impression des données (thank's to Geoffroy MUSITELLI)*/
-
 
112
				if($key == "Session-Timeout") $sto_imp = $val;
-
 
113
				if($key == "Max-All-Session") $mas_imp = $val;
-
 
114
				if($key == "Max-Daily-Session") $mds_imp = $val;
-
 
115
				if($key == "Max-Monthly-Session") $mms_imp = $val;
-
 
116
				/*Fin Ajout*/
-
 
117
				$val = da_sql_escape_string($link, $val);
108
				$val = da_sql_escape_string($link, $val);
118
				$op_name = $attrmap["$key"] . '_op';
109
				$op_name = $attrmap["$key"] . '_op';
119
				$op_val = (isset($$op_name)) ? $$op_name : '';
110
				$op_val = (isset($$op_name)) ? $$op_name : '';
120
				if ($op_val != ''){
111
				if ($op_val != ''){
121
					$op_val = da_sql_escape_string($link, $op_val);
112
					$op_val = da_sql_escape_string($link, $op_val);