look this: a little bug in lava/wapdesire

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

    look this: a little bug in lava/wapdesire

    i've found a little bug on lava/wapdesire.
    when owner DELETE a username
    if this user had got some userfun actions along others
    users, this actions remain on database..
    for exemple if i delete username "mr.x" and he has
    smooched 3 times along someone
    you see again the link "3" and clicking on it
    nothing appears because the username nick has been delated..
    but not his numbers of actions.
    i think the more simple solution is
    to add a code as this on ownerproc.php
    in delete user function ($action=="delu"):


    $res = mysql_query("DELETE FROM ibwf_usfun WHERE uid='".$who."'");

    so you delete also his userfun actions when you need to delate a username..

    do you think the code would be right?
    sigpicthe italian/international COMMUNITY of friendship
    http://people2000.netne.net
    WAP/WEB
    peoplemailbox@katamail.com

    #2
    Well congratulations you discovered 1 bug, but to be honest its not just that which remains in database, lot other things remain, which dont get displayed as the function get_nickuid($uid) doesnt work after the nick get deleted as the uid goes with it
    Last edited by morse; 09.08.09, 14:17. Reason: half completed sentence earlier
    tinyurl.com/earnbymobile
    Easy earning for Indians
    ---------------------
    Alternative mobile advertising network .. Minimum 100 USD pay / NET15 pay cycle, Good Brand, Best targeting for Android
    goo.gl/6vub3

    Comment


      #3
      right..many things in any lava/wapdesire version not work well..some are simple things forgot by the authors (it's so easy lose something when you're working on projects like this) others are more hard to fix.
      another bug : the judges..if you delete a username that was also a judge..he stood on judge list
      you need to do this on deleteuser function in ownerproc:

      $res = mysql_query("DELETE FROM ibwf_judges WHERE fid='".$who."' OR uid='".$who."'");
      sigpicthe italian/international COMMUNITY of friendship
      http://people2000.netne.net
      WAP/WEB
      peoplemailbox@katamail.com

      Comment


        #4
        i tested now the code

        $res = mysql_query("DELETE FROM ibwf_usfun WHERE uid='".$who."'");
        in my site and works fine..
        sigpicthe italian/international COMMUNITY of friendship
        http://people2000.netne.net
        WAP/WEB
        peoplemailbox@katamail.com

        Comment


          #5
          duh, u have to ava function dat runs delete thru ALL the tables. Then call d function.

          Comment

          Working...
          X