linux1.0内核的源代码,欢迎大家使用

源代码在线查看: change_info.php3

软件大小: 2997 K
上传用户: kzdai22
关键词: linux 1.0 内核 源代码
下载地址: 免注册下载 普通下载 VIP

相关代码

								require_once('../lib/ldap/functions.php3');					if ($config[ldap_write_server])						$ds = @ldap_connect($config[ldap_write_server]);					else						$ds = @ldap_connect($config[ldap_server]);					if ($config[general_decode_normal_attributes] == 'yes'){						$decode_normal = 1;						if (is_file("../lib/lang/$config[general_prefered_lang]/utf8.php3"))							include_once("../lib/lang/$config[general_prefered_lang]/utf8.php3");						else							include_once('../lib/lang/default/utf8.php3');						$k = init_encoder();					}					if ($ds){						$r = @da_ldap_bind($ds,$config);						if ($r){							if ($Fcn != '' && $Fcn != '-' && $Fcn != $cn){								list ($givenname,$sn) = split(' ',$Fcn,2);								$mod['cn'] = $Fcn;								$mod['cn'] = ($decode_normal) ? encode_string($mod['cn'],$k) : $mod['cn'];								$mod['givenname'] = $givenname;							$mod['givenname'] = ($decode_normal) ? encode_string($mod['givenname'],$k) : $mod['givenname'];								$mod['sn'] = $sn;								$mod['sn'] = ($decode_normal) ? encode_string($mod['sn'],$k) : $mod['sn'];															}							if ($Fmail != '' && $Fmail != '-' && $Fmail != $mail)								$mod['mail'] = $Fmail;							if ($Fou != '' && $Fou != '-' && $Fou != $ou){								$mod['ou'] = $Fou;								$mod['ou'] = ($decode_normal) ? encode_string($mod['ou'],$k) : $mod['ou'];							}							if ($Ftelephonenumber != '' && $Ftelephonenumber != '-' && $Ftelephonenumber != $telephonenumber)								$mod['telephonenumber'] = $Ftelephonenumber;							if ($Fhomephone != '' && $Fhomephone != '-' && $Fhomephone != $homephone)								$mod['homephone'] = $Fhomephone;							if ($dn != ''){							       if ($config[ldap_debug] == 'true'){									print "DEBUG(LDAP): ldap_mod_replace(): DN='$dn'\n";									print "DEBUG(LDAP): ldap_mod_replace(): Data:";									print_r($mod);									print "\n";								}								@ldap_mod_replace($ds,$dn,$mod);								if (@ldap_error($ds) != 'Success')									echo "LDAP ERROR: " . ldap_error($ds) . "\n";								else									echo "User personal information updated successfully\n";							}						}						@ldap_close($ds);					}				?>							

相关资源