-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.php
32 lines (25 loc) · 905 Bytes
/
login.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
include( "intel_header.php" );
if( $ldap->isloggedin() == true )
{
print "Successfully logged in!";
#$ldap->debug();
}
else
{
print "<form action='login.php' method='post'>";
print "<table cellpadding='10'>";
print "<tr><td class='padme' colspan='2'><h2>Login</h2></td></tr>";
print "<tr><td class='padme' valign='top'>Username : </td><td class='padme'><input type='text' name='username' value=''><br/>eg. dmoneil2<br/>eg. ad_pbhansal priviledged admin account</td></tr>";
print "<tr><td class='padme'>Password : </td><td class='padme'><input type='password' name='password'></td></tr>";
print "<tr><td class='padme'></td><td class='padme'><input type='submit' value='login'><br><br></td></tr>";
print "</table>";
print "</form>";
if( $ldap->geterror() != 0 )
{
print "<br/><br/>" . $ldap->geterror();
print "<br/><br/>" . $username;
}
}
include( "intel_footer.php" );
?>