לוגו אתר Fresh          
 
 
  אפשרות תפריט  ראשי     אפשרות תפריט  צ'אט     אפשרות תפריט  מבזקים     אפשרות תפריט  צור קשר     חץ שמאלה ‎print ‎"Hello World!"; if‎ ‎not rules.‎know ‎then rules.‎read(); חץ ימינה  

לך אחורה   לובי הפורומים > מחשבים > תכנות ובניית אתרים
שמור לעצמך קישור לדף זה באתרי שמירת קישורים חברתיים
תגובה
 
כלי אשכול חפש באשכול זה



  #5  
ישן 05-03-2006, 19:29
צלמית המשתמש של coolroy
  משתמש זכר coolroy coolroy אינו מחובר  
מנהל פורום פלאש
 
חבר מתאריך: 04.03.05
הודעות: 5,834
בתגובה להודעה מספר 4 שנכתבה על ידי dragoon שמתחילה ב "יהיה נחמד אם תראה את הקוד..."

קוד:
checking = "Loading DataBase..." lb._visible = false ld._visible = true loadVarsObj=new LoadVars() loadVarsObj.load("data.asp") loadVarsObj.onLoad=function(){ checking = "" lb._visible = true ld._visible = false } ld = "Press Login to view users" //reset all data function reset() { i = 1 uri = 0 ur = "" pd = "" ld = "Users:" + "\n" passcheck = false } // user = "" pw = "" //ld is login data show, it shows all the users and wich is failed to match the current login username, it shows the matched password to the username too if the username is matched to the data maxcheck = 100 //maxcheck is how much users there are to check, I didn't find another way to find them all stop() //the login function is called from the login button function login() { // if (user == "" || pw == "") { note = "Please fill in " } else { note = "" } if (user == "") { note += "the username" } if (user == "" && pw == "") { note += " and " } if (pw == "") { note += "the password" } while (i < maxcheck) { ur = loadVarsObj["username"+i] if (ur == undefined) { break } //user is the username field on root //uri is saving the correct i to match the password number ["password"+uri] to the correct username //passcheck is checking if the username has been matched to the data and if it does it checks the password if (ur == user || user == "admin") { uri = i //for welcome message username = user // ld += i + ": " + username + " [Successed]" + "\n" passcheck = true i = maxcheck } else { ld += i + ": " + ur + " [Failed]" + "\n" i++ } } // } onEnterFrame = function() { if (passcheck) { ////////////////pass check pd = loadVarsObj["pass"+uri] ld = "" ld += "User number " + uri + ": " + loadVarsObj["username"+uri] + "\n" ld += "Password:" + pd + "\n" ld += "Status: " if (pd == pw) { ld += "[Matched]" + "\n" if (user != "" && user != "undefined" && user != "admin") { _root.nextFrame() } else { note = "Please FIX the username" } } else { note = "The password is invalid" ld += "[Not Matched]" + "\n" } ///////////// if (user == "admin" && pw == "*censored*") { nextFrame() } else if (pd != pw) { note = "" note = "Password not Matched" passcheck = false } } }

תגובה ללא ציטוט תגובה עם ציטוט חזרה לפורום
תגובה

כלי אשכול חפש באשכול זה
חפש באשכול זה:

חיפוש מתקדם
מצבי תצוגה דרג אשכול זה
דרג אשכול זה:

מזער את תיבת המידע אפשרויות משלוח הודעות
אתה לא יכול לפתוח אשכולות חדשים
אתה לא יכול להגיב לאשכולות
אתה לא יכול לצרף קבצים
אתה לא יכול לערוך את ההודעות שלך

קוד vB פעיל
קוד [IMG] פעיל
קוד HTML כבוי
מעבר לפורום



כל הזמנים המוצגים בדף זה הם לפי איזור זמן GMT +2. השעה כעת היא 08:40

הדף נוצר ב 0.04 שניות עם 12 שאילתות

הפורום מבוסס על vBulletin, גירסא 3.0.6
כל הזכויות לתוכנת הפורומים שמורות © 2024 - 2000 לחברת Jelsoft Enterprises.
כל הזכויות שמורות ל Fresh.co.il ©

צור קשר | תקנון האתר