Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?PHP
- $id = "username";
- $pw = "123456789";
- echo "<head>";
- echo '<style type="text/css">
- <!--
- body {
- background-color:#AFEEEE;
- }
- .textbox {
- background-color : #f8f8f8;
- border : 1px solid #ccc;
- }
- .button {
- background-position: center;
- //background-color: #9BCCCA;
- }
- }
- -->
- </style>';
- echo "</head>";
- if (isset($_GET["login"]))
- {
- //Einlogg-Funktion
- $username = $_POST['username'];
- $password = $_POST['password'];
- if ($password == $pw and $username == $id)
- {
- echo '<meta http-equiv="refresh" content="0; URL=index_ok.php">';
- }
- else
- {
- echo '<meta http-equiv="refresh" content="0; URL=index_wrong.php">';
- }
- }
- echo "<div id='login'><form name='post' method='post' action='admincp.php?login'>
- <table frame='box' width='100px' align='center'>
- <tr>
- <td colspan='2'><h2 style='color:#A4A4A4' align='left'><b>Admin CP - Login</b></h1></td>
- </tr>
- <tr valign='middle'>
- <td class='tbl2' align='center'>Userame:</td>
- <td class='tbl2' align='center'><input type='text' name='username' value='".$username."' maxlength='50' class='textbox' style='width: 180px;'></td>
- </tr>
- <tr>
- <td class='tbl2' align='center'>Password:</td>
- <td class='tbl2' align='center'><input type='password' name='password' maxlength='50' class='textbox' style='width: 180px;'></td>
- </tr>
- <tr>
- <td class='tbl2' align='center'> </td>
- <td align='right'><input name='login' value='Login' type='submit' class='button'></td>
- </tr>
- </table>
- </div>";
- ?>d
Add Comment
Please, Sign In to add comment