القنـاص المصرى
14-11-2013, 10:33 PM
السلام عليكم ورحمة الله وبركاته
بسم الله الرحمن الرحيم
الحمدلله والصلاة والسلام على رسول الله وعلى آله وصحبه أجمعين
اخوانى لدي هذا الكود
-- Retrieve Username and Password
sUsername = Input.GetText("Input_Username");
sPassword = Input.GetText("Input_Password");
-- Convert user/pass combo to MD5 digests
sUsernameMD5 = Crypto.MD5DigestFromString(sUsername);
sPasswordMD5 = Crypto.MD5DigestFromString(sPassword);
-- Initialize variables for submit action
sCheckScriptURL = "http://127.0.0.1/appserv/check_user.php";
tValuesToPass = {username_md5 = sUsernameMD5, password_md5 = sPasswordMD5};
nSubmitMethod = SUBMITWEB_POST;
nTimeout = 20;
nPort = 80;
tAuthData = nil;
tProxyData = nil;
-- Submit to the web
sResult = HTTP.Submit(sCheckScriptURL, tValuesToPass, nSubmitMethod, nTimeout, nPort, tAuthData, tProxyData);
Dialog.TimedMessage("Please Wait...", "Checking Your Username and Password", 3000, MB_ICONNONE);
-- Check the result ('1' is success)
if sResult == "1" then
-- The user is authenticated
Image.Load("Acck", "AutoPlay\\Images\\Connected.png");
else
-- The user is not authenticated.
Dialog.Message("ERROR", "That Username / Password is invalid", MB_OK, MB_ICONSTOP);
Image.Load("Acck", "AutoPlay\\Images\\Disconnected.png");
end
انا فاهم الموضوعات الاساسية زى التشفير ال md5 وخلافه بس انا عاوز شرح من اول حتة
Initialize variables for submit action
وجزاكم الله كل خير
بسم الله الرحمن الرحيم
الحمدلله والصلاة والسلام على رسول الله وعلى آله وصحبه أجمعين
اخوانى لدي هذا الكود
-- Retrieve Username and Password
sUsername = Input.GetText("Input_Username");
sPassword = Input.GetText("Input_Password");
-- Convert user/pass combo to MD5 digests
sUsernameMD5 = Crypto.MD5DigestFromString(sUsername);
sPasswordMD5 = Crypto.MD5DigestFromString(sPassword);
-- Initialize variables for submit action
sCheckScriptURL = "http://127.0.0.1/appserv/check_user.php";
tValuesToPass = {username_md5 = sUsernameMD5, password_md5 = sPasswordMD5};
nSubmitMethod = SUBMITWEB_POST;
nTimeout = 20;
nPort = 80;
tAuthData = nil;
tProxyData = nil;
-- Submit to the web
sResult = HTTP.Submit(sCheckScriptURL, tValuesToPass, nSubmitMethod, nTimeout, nPort, tAuthData, tProxyData);
Dialog.TimedMessage("Please Wait...", "Checking Your Username and Password", 3000, MB_ICONNONE);
-- Check the result ('1' is success)
if sResult == "1" then
-- The user is authenticated
Image.Load("Acck", "AutoPlay\\Images\\Connected.png");
else
-- The user is not authenticated.
Dialog.Message("ERROR", "That Username / Password is invalid", MB_OK, MB_ICONSTOP);
Image.Load("Acck", "AutoPlay\\Images\\Disconnected.png");
end
انا فاهم الموضوعات الاساسية زى التشفير ال md5 وخلافه بس انا عاوز شرح من اول حتة
Initialize variables for submit action
وجزاكم الله كل خير