?? password_check.php3
字號:
<?phprequire('password.php3');if ($action == 'checkpass'){ $ds=@ldap_connect("$config[ldap_server]"); // must be a valid ldap server! if ($ds){ if ($dn != ''){ if ($passwd == '') $passwd = 'not_exist'; $r = @ldap_bind($ds,$dn,$passwd); if ($r) $msg = '<font color=blue><b>YES It is that</b></font>'; else $msg = '<font color=red><b>NO It is wrong</b></font>'; } else $msg = 'User DN is not available. Check your configuration'; @ldap_close($ds); } else $msg = '<font color=red><b>Could not connect to LDAP server</b></font>'; echo "<tr><td colspan=3 align=center>$msg</td></tr>\n";}?></form>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -