הרשם שאלות ותשובות רשימת חברים לוח שנה חיפוש הודעות מהיום סמן פורומים כנקראו

   
|!|

השב
 
כלים לאשכול תצורת הצגה
ישן 02-12-05, 18:22   # 1
Kuchi
הוסטסניון
 
Kuchi's Avatar
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
מיקום: אור יהודה
גיל: 37
הודעות: 2,540
שלח הודעה באמצעות MSN אל Kuchi

Kuchi לא מחובר  

תראה פה זה בשיטה בלי משתמש מהמסד אלא מוגדרים מראש !
וזה כן עובד !

PHP קוד:
<?

// Returns '1' if valid, or '0' if invalid


// Initialize user table
// Add entries to this table in the form "USER"=>"Password"
// All entries (except the last one) must be finished with a ','.
$user_table = array(
    
"John Doe"=>"JohnnyBoy",
    
"Billy Nest"=>"Billy Password",
    
"Jane Smith"=>"Firetruck"
);

// Check if data was posted to script
if ($_POST)
{
    
// Loop through table
    
foreach($user_table as $username=>$password)
    {
        
// Check if md5's of user/pass match passed values
        
if (($_POST['username_md5'] == md5($username)) AND ($_POST['password_md5'] == md5($password)))
        {
            
// The user/pass combo matched
            
echo '1';
            exit;
        }
    }
// The user/pass combox did not match
echo '0';
exit;
}

else
{
    
// Output message if nothing is posted (eg. if script is loaded into a web-browser)
    
echo "No post data found.";
}

?>
  Reply With Quote
השב

חברים פעילים הצופים באשכול זה: 1 (0 חברים ו- 1 אורחים)
 

כלים לאשכול
תצורת הצגה

חוקי פירסום
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is מופעל
סמיילים הם מופעל
[IMG] קוד מופעל
קוד HTML מכובה

קפיצה לפורום


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

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