Ich habe da ein Problem mit einer login.php
ich erhalte immer die Fehlermeldung in zeile 64, wenn ich mich einlogge, in den Adminbereich.
Name: admin
Passwort: admin
Ich habe das Script mal auf einen [I]Testserver installiert, wo es sich jeder anschauen kann.[/I]
PHP-Quellcode
- <?php
- if (isset($_GET['section'])) {
- $section = $_GET['section'];
- }
- if (!isset($section)) {
- $section = "";
- }
- if (isset($_GET['option'])) {
- $option = $_GET['option'];
- }
- if (!isset($option)) {
- $option = "";
- }
- if(isset($option) && ($option == "logout")) {
- @session_register("user");
- @session_register("password");
- session_unregister("S_ID");
- session_unset();
- }
- if(isset($_POST['submit']) && "Log" == $_POST['submit']) {
- $sql = "SELECT * FROM users WHERE user = '".$_POST['user']."'";
- $result = mysql_query($sql) OR die(mysql_error());
- $row = mysql_fetch_assoc($result);
- $userID = $row['id'];
- $pw = $_POST['password'];
- if(isset($userID,$pw) AND login_right(addslashes($userID),addslashes($pw))) {
- }
- }
- if(isset($_SESSION['S_ID']) && ($_SESSION['S_ID'] != "")) {
- $rights = getRights();
- if(!in_array("Moderator", $rights)) {
- no_rights();
- }
- else {
- echo "<table align='center' width='800' cellpadding='0' cellspacing='0'>
- <tr>
- <td width='200' valign='top'><font color='white' size=1 face='arial,tahoma'>
- <br>:: <a href=?section=edit>Sendeplan bearbeiten</a>
- <br>:: <a href=?section=del>Sendeplan leeren</a>
- <br>:: <a href=?section=madd>Modaccount erstellen</a>
- <br>:: <a href=?section=mdel>Modaccount löschen</a>
- <br>
- <br>:: <a href=?option=logout>Logout</a></td>
- <td width='600' valign='top'>";
- if(isset($section)) {
- include("".$section.".php");
- }
- echo "</td>
- </tr>
- </table>";
- }
- }
- else {
- echo "<br><br>
- <form action='show.php' method='post'>
- <table align='center' width='400' cellpadding='0' cellspacing='0'>
- <tr>
- <td width='75'>$font <b>N</b>ame:</td>
- <td width='150'><input type='text' name='user' value=''></input></td>
- </tr>
- <tr>
- <td width='75'>$font <b>P</b>asswort:</td>
- <td width='150'><input type='password' name='password' value=''></input></td>
- </tr>
- <tr>
- <td colspan='2'><br></td>
- </tr>
- <tr>
- <td colspan='2'><input type='submit' name='submit' value='Log'></input></td>
- </tr>
- </table></form>";
- }
- ?>
Ich wäre dankbar, wenn mir einer helfen könnte.
[SIZE=1]Meine Up Appz:[/SIZE] [SIZE=1]UP1, UP2 , UP3, UP4, UP5, UP6, UP7, UP8, UP9, UP10, UP11, UP12, UP13, UP14, UP15, UP16, UP17, UP18, UP19, UP20, UP21, UP22, UP23, UP24, UP25, UP26, UP27, UP28, UP29, UP30, UP31, UP32, UP33, UP34, UP35, UP36, UP37, UP38, UP39, UP40, UP41, UP42, UP43, UP44, UP45, UP46, UP47, UP48, UP49, UP50, UP51, UP52 [/SIZE]
DER GESCMACK IST ALLEN MENSCHEN NATÜRLICH; SIE HABEN IHN ABER NICHT ALLE IN GLEICHEM MAßE.
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von cruelfantasy ()