הרשם שאלות ותשובות רשימת חברים לוח שנה הודעות מהיום

חזור   הוסטס - פורום אחסון האתרים הגדול בישראל > עיצוב גראפי, תכנות על כל שפותיו וקידום ושיווק אתרים > פורום תיכנות

   
|!|

 
 
כלים לאשכול תצורת הצגה
Prev הודעה קודמת   הודעה הבאה Next
ישן 02-12-05, 18:22   # 13
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. הזמן כעת הוא 14:18.

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