تغطية مباشرة لديمو كامب دبي 3
هل تقترح تمديد مسابقة سوالف كاست؟

 

العودة   سوالف سوفت > قسم تطوير وبرمجة المواقع للمتقدمين > PHP
المدوّنات البحث مشاركات اليوم اجعل كافة المشاركات مقروءة

رد  
 
LinkBack أدوات الموضوع
عضو نشيط
تاريخ التسجيل: May 2007-
#1 (permalink)  
كود جميل لعملية لكلمة السر


كود PHP:
 
    
//**************************************    //         // Name: ^ A Registration Password Trick    //         // Description:Ever wonder how when you     //     registered online somewhere, on the next    //     page where your username and password ar    //     e confirmed, only the first few chars of    //     the p-word are shown and the rest of it     //     are asterisks to keep from prying eyes.     //     <b>Please Rate</b>    // By: Darryl Porter    //    // Inputs:This script processes the user    //     name/password registered by the end user    //     .    //    // Assumes:uses two functions--strlen()     //     and substr()--and a "while loop." the st    //     rlen() function returns the length of an    //     ything that can be stored in a variable.    //     The second, substr(), takes a part of an    //     ything that is stored in a variable. Exa    //     mple: $foo = Hello World;    $foofoo = substr($foo, 0, 7);    $foofoo == Hello Wor    //    //This code is copyrighted and has    // limited warranties.Please see http://    //     www.Planet-Source-Code.com/vb/scripts/Sh    //     owCode.asp?txtCodeId=738&lngWId=8    //for details.    //**************************************    //                         $length = strlen($password); //Gets the length of the Password    $sub_password = substr($password, 0, 4);     //(Comment for the code above)This takes    //     the original passwords and cuts it lengt    //     h.    //First, I plug-in the original variable    //     . Then, the number at the beginning of t    //     he string.     //The second number controls how much of    //     the password will be revealed.    //Remember that PHP starts counting at 0    //     .                         $length2 = strlen($sub_password);     //This gets the length of the password a    //     fter is has been cut                echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">";    echo "<html><head><title>$title</title></head>";    echo "<br><br>";    echo "<div align=\"center\">Welcome $username your password is $sub_password";             while($length2 < $length)        {        print("*");        $length2++;        }                            echo ", all but the first four are hidden for your security.</div>";    //(Comment for the code above)This is a     //     simple While Loop--While the length of t    //     he original    //password is greater than the length of    //     the cut password    //there will be "*" printed out. This is    //     to reveal the     //first few characters of the password a    //     fter registration, and the last few    //are replaced for security. 






__________________
اللهم صل علي سيدنا محمد وعلي آل سيدنا محمد وصحبه وسلم

التعديل الأخير تم بواسطة : ابوطارق بتاريخ 21-02-2008 الساعة 03:10 PM.
ابوطارق غير متواجد حالياً   قديم 21-02-2008, 03:07 PM
رد مع اقتباس
عضو نشيط
تاريخ التسجيل: May 2006-
#2 (permalink)  

السلام عليكم

شكرا أخوي أبو طارق على النقل ، لكن ليتك قمت بشرح للكود.

عموما الكود يظهر أول أربع حروف من كلمة المرور ويستبدل الباقي بعلامة النجمة *

^ A Registration Password Trick by Darryl Porter






__________________
سـبـحـان الله، والـحــمــد لله، ولا إلـه إلا الله، والله أكـــبـــــر.
ALMimoni غير متواجد حالياً   قديم 21-02-2008, 10:54 PM
رد مع اقتباس
عضو نشيط جدا
تاريخ التسجيل: Sep 2006-
#3 (permalink)  

اعتقد هذا يستخدم لبطاقات الائتمان ؟






2end غير متواجد حالياً   قديم 22-02-2008, 07:35 AM
رد مع اقتباس
عضو نشيط
تاريخ التسجيل: Feb 2008-
#4 (permalink)  

حركة جميلة أخي أبوطارق






__________________
لا إله الا الله محمد رسول الله

فضائية الأقصى :: عينك على الوطن
نيلسات: 10911 عمودي 27500
عربسات: 12054 عمودي 27500


إعلامنا.. إسلامي.. هادف.. مقاوم.. لتعلو الراية..
MPHP غير متواجد حالياً   قديم 22-02-2008, 05:21 PM
رد مع اقتباس
عضو نشيط
تاريخ التسجيل: May 2007-
#5 (permalink)  

اولا مشكورين علي المرور

ثانيا لكي تتعلم لابد وان تحاول بنفسك فهم الكود ومن يعجز عن الفهم يسأل وهكذا نتعلم كلنا سويا

اخوكم ابوطارق






__________________
اللهم صل علي سيدنا محمد وعلي آل سيدنا محمد وصحبه وسلم
ابوطارق غير متواجد حالياً   قديم 25-02-2008, 09:37 AM
رد مع اقتباس
رد


 

أدوات الموضوع

تعليمات المشاركة
لا تستطيع كتابة مواضيع
لا تستطيع كتابة ردود
لا تستطيع إرفاق ملفات
لا تستطيع تعديل مشاركاتك

كود [IMG] متاحة
كود HTML معطلة
Trackbacks are متاحة
Pingbacks are متاحة
Refbacks are متاحة


المواضيع المتشابهه
الموضوع كاتب الموضوع المنتدى مشاركات آخر مشاركة
لخريجي الثانوية معلومات هامة ( مواعيد القبول في الكليات والجامعات ) بدر 821 سوالف عامة 7 19-08-2007 10:33 PM
التسجيل في الكلية الالكترونية لصيف 2007 "ظل القمر" تطوير الويب 5 11-06-2007 02:06 PM
كود تأكيد التسجيل هل هناك طريقة أخرى؟ i2h.org PHP 3 04-08-2006 08:28 AM
مين صمم لي؟؟؟؟وبكم aser خدمات البيع والشراء والإعلانات التجارية 34 11-02-2005 03:19 PM
هل يوجد كود لمنع الكتابة باللغة الانجليزية عند التسجيل!!!!!!!! saeed_ok إصلاح وصيانة المنتديات 10 25-08-2003 08:21 AM


الساعة الآن: 06:36 PM بتوقيت المملكة العربية السعودية