הוסטס - פורום אחסון האתרים הגדול בישראל

הוסטס - פורום אחסון האתרים הגדול בישראל (https://hosts.co.il/forums/index.php)
-   פורום תיכנות (https://hosts.co.il/forums/forumdisplay.php?f=14)
-   -   עזרה בקוד היתחברות (https://hosts.co.il/forums/showthread.php?t=19972)

mr. dids 16-04-06 12:31

עזרה בקוד היתחברות
 
בבקשה תעזרו לי זה מציג לי שגיאה וגם לא מתחבר .. :(
http://www.hanan.t.net/new/admin/

PHP קוד:

<html dir="rtl">

<head>
<meta http-equiv="Content-Language" content="en-us">

<title>רדיו 50+ חברים</title>
<meta name="generator" content="Namo WebEditor(Trial)"></head>

<body topMargin="0" leftMargin="0" link="blue" vlink="purple" alink="red" text="black" bgcolor="#284C5F">
<div align="center">
  <center>
  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; border: 1px solid #536F7F" width="80%" id="AutoNumber1" bgcolor="#10384D">
    <tr>
      <td width="100%">
      <div align="center">
        <center>
        <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="95%" id="AutoNumber2">
          <tr>
            <td width="100%">
            <p style="margin-top: 0; margin-bottom: 0">&nbsp;</td>
          </tr>
          <tr>
            <td width="100%">
            <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; border: 5px solid #536F7F" width="100%" id="AutoNumber3" bgcolor="#284C5F" height="500">
              <tr>
                <td width="100%">
                <div align="center">
                  <center>
</td>
                    </tr>
                    <tr>
                      <td width="100%" colspan="2">
&nbsp;</td>
                    </tr>
                                            <tr>
                                                <td width="100%" colspan="2">
                                                    <div id="layer1" style="width:560px; height:461px; position:absolute; left:227px; top:48px; z-index:1;">
                                                    
<?php

    
/* 
        http://nsource.info
     All rights reserved to NaturalSource (http://nsource.info) ©
     Powered by NaturalSource.
    */

if ($_GET['act']=="logout") {
setcookie("login",null,time()-1);
echo 
"<script>location.href='../index.php';</script>";
}

elseif (
$_GET['act']=="login") {
include 
"db.php";
    
$query mysql_query("SELECT * FROM settings",$conn);
        
$RS mysql_fetch_array($query);

    
$username    =    $RS['username'];
    
$password    =    $RS['password'];


    
$log_user        =    $_POST['username'];
    
$log_pass        =    $_POST['password'];

if (
$username != $log_user || $password != $log_pass) {
    
$error "שם המשתמש או הסיסמא אינם נכונים";
}
elseif (
$username == $log_user && $password == $log_pass) {

$md5_pass md5($password);

setcookie("login",$md5_pass,time()+60*60*30);
echo 
"<script>location.href='index.php';</script>";
    }
}

require(
'../header.php');
?>

                                                        <body bgcolor="284C5F" text="black" link="blue" vlink="purple" alink="red">
                                                       <p align="center"><b><font size="3" face="Arial" color="white">דף התחברות ללוח הבקרה למנהלים</font></b></p>
<body bgcolor='284C5F' text='black' link='blue' vlink='purple' alink='red'>
<table align='center' width="58%" cellspacing='0' style='border-collapse:collapse;'><form name='login' method='post' action='?act=login'>
    <tr>
<td align='right' style="border-width:1; border-color:black; border-style:none;" width="113"><b><font size='2' face='Arial' color='white'>שם משתמש:&nbsp;</font></b></td>
        <td align='right' style="border-width:1; border-color:black; border-style:none;" width="206">
            <p align='right'><input type='text' name='username' size='24' style='font-family:Arial; font-weight:bold; font-size:12; color:white; background-color:rgb(84,114,130); border-width:1; border-color:rgb(204,204,204); border-style:groove;'></p>
        </td>
    </tr>
    <tr>
<td align='right' style="border-width:1; border-color:black; border-style:none;" width="113"><b><font size='2' face='Arial' color='white'>סיסמא: &nbsp;&nbsp;</font></b></td>
        <td align='right' style="border-width:1; border-color:black; border-style:none;" width="206">
            <p align='right'><input type='text' name='password' size='24' style='font-family:Arial; font-weight:bold; font-size:12; color:white; background-color:rgb(84,114,130); border-width:1; border-color:rgb(204,204,204); border-style:groove;'></p>
        </td>
    </tr>
<tr><td align='center' colspan='2' style="border-width:1; border-color:black; border-style:none;" width="322"><input type='submit' name='submit' value='  התחבר  ' style='font-family:Arial; font-weight:bold; font-size:12; color:white; background-color:rgb(84,114,130); border-width:1; border-color:rgb(204,204,204); border-style:solid;'></td></tr></form></table>



                                                </td>
                                            </tr>
                  </table>
                  </center>
                </div>
                </td>
              </tr>
            </table>
            </td>
          </tr>
          <tr>
            <td width="100%">
            <p style="margin-top: 0; margin-bottom: 0">&nbsp;</td>
          </tr>
        </table>
        </center>
      </div>
      </td>
    </tr>
  </table>
  </center>
</div>

</body>

</html>

שם משתמש : 1234
סיסמה: 1234

Yehuda-d.com 16-04-06 12:37

לא עובד

mr. dids 16-04-06 12:44

ציטוט:

נכתב במקור על ידי Yehuda-d
לא עובד

תוקן

mr. dids 16-04-06 12:46

במקום ה t תירשום די הוסט


כל הזמנים הם GMT +2. הזמן כעת הוא 09:43.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ