users with same ip address or same browser cant make two ids , lavalair

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    u mean to say tht in staff tools u hve powers to find all users using same ip or browser anything like tht, wow thts wonderful

    thnks ksg9 bro i will give it a try n let u know

    Comment


      #17
      getting following errors. bro .

      1.Warning: Cannot modify header information - headers already sent by (output started at /home/*****/public_html/1234/core.php:2599) in /home/*****/public_html/1234/login.php on line 19

      2.in verify.php m getting invalid token

      no email is sent so pls help (Now call the genVerificationCode function when user is registered and pass the unique id of user as argument to this function. ) i think m not able to do this properly, one more thing wht shud i keep my registration settings to , enabled or validation required , . if all goes well it will b like a CHRISTMAS GIFT for me

      Comment


        #18
        Did you edit login.php file? Because it seems some text is being outputted from core.php and then login.php is setting cookies.
        Registration settings won't effect this. If user has not verified his email, he won't be able to login. Beware, if you are altering your existing user table, do not forget to set verified=1 for all rows.
        you will get error for verify.php if the token in the querystring is invalid
        Follow me @ksg91 | My Blog: http://ksg91.com | Nokia Blog: http://NokiaTips.in

        Comment


          #19
          m working in sub domain all the edits so just a single user is registered there , login.php i replaced with the one u gave , shud i hve to edit core also where the register form goes to register.php so tht it goes to verify.php after user enters the data , i added the tables as u told n two extra functions in core

          Comment


            #20
            no. You should not redirect user to verify.php page. Just modifiy the core.php functions I wrote as per your details and then user will receive email with the link of verification. And I hope, your host has not disabled the mail() function.
            Function for genVefificationCode() should be called when it says that user registered successfully
            Follow me @ksg91 | My Blog: http://ksg91.com | Nokia Blog: http://NokiaTips.in

            Comment


              #21
              still not working m tired, ksg9 bro pls edit it fully m not able to make itwork,


              m getting mail with token , but when i click the link it goes to index.php , so pls can u make this verify.php bcoz i m not able to correctly call this verifyuser function i think ,
              Last edited by mirror; 25.12.11, 05:06.

              Comment


                #22
                did you edit the $link variable in verifyUser() with link to your verify page? I have commented properly where you need to modify the code.
                Follow me @ksg91 | My Blog: http://ksg91.com | Nokia Blog: http://NokiaTips.in

                Comment


                  #23
                  yes i had modified the link in verify.php wait m posting my verify.php , by calling the function genverification code i wasnt able to get mail so i used those directly in register.php n was able to get mail n verification link also , same i did with verify.php , calling function verifyuser from core wasnt working in verify.php so i used those codes for verifyuser directly , but when i clicked the link in email i redirects me to index.php , its some problem with cookies i think , when i delete the lines abt cookies in verify.php n click the link to verify it says my account activated , but still m not able to login , while login i get error to click the link
                  Attached Files
                  Last edited by mirror; 25.12.11, 12:36.

                  Comment


                    #24
                    man, what you did in that file? Just put following code in file.

                    PHP Code:
                    <?php
                    include("config.php");
                    include(
                    "core.php");
                    $bcon connectdb();
                    if(!
                    $bcon)
                    {
                      echo 
                    "Cannot Connect To Database";
                      exit();
                    }
                    verifyUser();
                    ?>
                    Just put html headers and tags before that function and a link to go back to your site at bottom.
                    Follow me @ksg91 | My Blog: http://ksg91.com | Nokia Blog: http://NokiaTips.in

                    Comment


                      #25
                      ibwf_users table not updating column verified to 1 on clicking link in email . as result m not able to login something wrong with this function verifyUser()i n core, in verification table also only user column is blank id n hash column gets updated
                      Last edited by mirror; 26.12.11, 16:58.

                      Comment


                        #26
                        In that txt file at this line value 1 needs to be single quoted:

                        PHP Code:
                        $uinf mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE name='".$uid."' AND pass='".$epwd."' AND verified='1'")); 
                        ... and here:

                        PHP Code:
                        mysql_query("UPDATE ibwf_users SET verified='1' WHERE user='".$u."'"); //set user as verified 
                        Last edited by arnage; 26.12.11, 17:07.
                        <!DOCTYPE html PUBLIC "-//WAPFORUM.RS

                        Comment


                          #27
                          Originally posted by amylee View Post
                          the amount of modifying to the script to properly and securely stop users creating multiple id's per ip/browser is painstakingly time-consuming
                          might as well code a script from scratch as i tried and gave up doing it to my new lavalair script i was coding

                          i just ended up adding a staff validation system with a improved browser and ip detection, that did the job for me
                          Well sure its the best when you have the staff to do that.
                          But what you think about something like this Ksg91's method, just with that when the user want to change the email address this action must be validated by staff or admin?
                          In the script im working on (guest book service), i cant decide within this way and that, when the user changes his mail the script resets his password and sending the new one to the newly entered email address. What you think?
                          <!DOCTYPE html PUBLIC "-//WAPFORUM.RS

                          Comment


                            #28
                            still the tables not getting updated even after adding single quotes for 1, while registration in verification table user column is blank n even afterclicking link verified column is 0

                            here is the view of tables after registering it shows user column blank . this is the view bfore clicking link in email. is this the reason y column verified is not updated


                            SQL query: SELECT * FROM `verification` LIMIT 0, 30 ;
                            Rows: 1
                            id user hash
                            2 10b625e0780d105fcf805cbb9601c37c
                            Last edited by mirror; 27.12.11, 00:51.

                            Comment


                              #29
                              Originally posted by arnage View Post
                              In that txt file at this line value 1 needs to be single quoted:

                              PHP Code:
                              $uinf mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE name='".$uid."' AND pass='".$epwd."' AND verified='1'")); 
                              ... and here:

                              PHP Code:
                              mysql_query("UPDATE ibwf_users SET verified='1' WHERE user='".$u."'"); //set user as verified 
                              No. For number type field, you don't need to use single quote.

                              Originally posted by mirror View Post
                              ibwf_users table not updating column verified to 1 on clicking link in email . as result m not able to login something wrong with this function verifyUser()i n core, in verification table also only user column is blank id n hash column gets updated
                              because you will not be calling genVerificationCode() with user id as arguement
                              Follow me @ksg91 | My Blog: http://ksg91.com | Nokia Blog: http://NokiaTips.in

                              Comment


                                #30
                                still not working anyone help
                                Last edited by mirror; 15.01.12, 05:48.

                                Comment

                                Working...
                                X