php forum
php mysql forum
php mysql smarty
 
Page 1 of 3 1 2 3 >
Topic Options
#236403 - 02/15/03 01:13 PM [6.2] Multiple Identity Detector
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Hal9000 suggested this. It's a simple modification to detect users with more than one login. As each new login is detected a PM will be sent to all administrators with information on the multiple identity users. <br /> <br /> <br />Update: Cookie uses configured expiration time and does not expire in 24 hours. Also, there is no on the number of identities tracked per user. As each new identity is used it is reported. <br /> <br /> <br />File's attached. <br /> <br />Happy Hunting. It's open season. <img src="/forum/images/graemlins/smile.gif" alt="" /> <br /> <br /> <br />UPDATED: 4-15-03 by JoshPet - Added a step to expire the cookies for Admins. Otherwise, even though the cookie isn't set if you are an Admin, you get one when you use the "become this user feature". So as soon as you become 2 users... you start getting "Multiple Identity Detected" PMs out the ying yang. This update will prevent that. <img src="/forum/images/graemlins/smile.gif" alt="" /> Hope JustDave doesn't mind me updating his code. <img src="/forum/images/graemlins/wink.gif" alt="" />


Attachments
69034-MultipleIdentityDetector2.0.txt (272 downloads)



Edited by JoshPet (04/16/03 12:05 AM)
_________________________
~Dave
ChattersOnline.com

Top
#236404 - 02/15/03 01:15 PM Re: [6.2] Double Identity Detector [Re: sjsaunders]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Good work Dave... except there's no file. <img src="/forum/images/graemlins/wink.gif" alt="" /><br /><br />You have been a busy beaver tonight. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#236405 - 02/15/03 01:17 PM Re: [6.2] Double Identity Detector [Re: Daine]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
I deleted it because one of the brackets didn't line up. Call me picky. LoL <img src="/forum/images/graemlins/wink.gif" alt="" /> <br /> <br />PS it should be there now and looking good. LoL


Edited by JustDave (02/15/03 01:17 PM)
_________________________
~Dave
ChattersOnline.com

Top
#236406 - 02/15/03 01:25 PM Re: [6.2] Double Identity Detector [Re: sjsaunders]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Just a note, this is installed here and we know who you are...<br /><br />LoL just kidding...<br /><br /><br />maybe...<br /><br /><br />LoL <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#236407 - 02/15/03 01:36 PM Re: [6.2] Double Identity Detector [Re: sjsaunders]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
We have ways of making you talk. Muhahahaha <img src="/forum/images/graemlins/smirk.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#236408 - 02/15/03 02:01 PM Re: [6.2] Double Identity Detector [Re: Daine]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Cool one I tested and works perfectly. <br /> <br />JustDave is da man!! <img src="/forum/images/graemlins/applause.gif" alt="" />
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#236409 - 02/15/03 02:46 PM Re: [6.2] Double Identity Detector [Re: sjsaunders]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
Very <img src="/forum/images/graemlins/cool.gif" alt="" /> !<br /><br />Thanks! <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#236410 - 02/15/03 03:12 PM [6.2] Multiple Identity Detector [Re: sjsaunders]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
hehe... updated it already. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#236411 - 02/15/03 04:18 PM Re: [6.2] Multiple Identity Detector [Re: sjsaunders]
chillin Offline
Journeyman

Registered: 01/26/03
Posts: 127
Loc: bend, OR USA
this is soooo sweet. i know my inbox will be fillin up monday morning.<br /><br />is it just me or is it harder to track down multiple users via IP in threads than it was in classic...?
_________________________
i see threads people
http://www.chinooktc.com

Top
#236412 - 02/15/03 04:44 PM Re: [6.2] Multiple Identity Detector [Re: kwalenta]
Hal9000 Offline
Journeyman

Registered: 11/04/02
Posts: 120
Only couple of hours have passed and you made this mod <br />Thaaanks

Top
#236413 - 02/15/03 04:52 PM Re: [6.2] Multiple Identity Detector [Re: dlhanso]
chillin Offline
Journeyman

Registered: 01/26/03
Posts: 127
Loc: bend, OR USA
works wonderfully JustDave, thanks again
_________________________
i see threads people
http://www.chinooktc.com

Top
#236414 - 02/15/03 05:02 PM Re: [6.2] Multiple Identity Detector [Re: kwalenta]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Using IIP you can match users that have the same IP address by using wild cards * in place of the . <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#236415 - 02/15/03 09:54 PM Re: [6.2] Multiple Identity Detector [Re: sjsaunders]
Mudpuppy Offline
Journeyman

Registered: 08/16/02
Posts: 113
Loc: Sin City
I've installed this and it works -- I just found out that two sisters who post on my board must share a computer.<br /><br />Now that I know this -- and get reminded everytime one of them logs on -- is there any way to exclude member numbers from this check?

Top
#236416 - 02/15/03 10:16 PM Re: [6.2] Multiple Identity Detector [Re: jbiz]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
As long as they don't clear their cookies the PM's will stop. If there is no cookie one is set with the current user number. Even if you log out this cookie will remain. If they log back in under a new user the new number is added to the cookie and a PM is sent. Now that the cookie has two numbers stored it will take a 3rd new number for it to send another PM.<br /><br />I'm not sure which would be better for an ignore feature. Something from the configure file in the admin area where user numbers could be stored or to create a whole new field in the user's table and set a flag value to ignore the users with the field set.
_________________________
~Dave
ChattersOnline.com

Top
#236417 - 02/22/03 01:30 AM Re: [6.2] Multiple Identity Detector [Re: sjsaunders]
Hal9000 Offline
Journeyman

Registered: 11/04/02
Posts: 120
Dave in order to limit the number of pm's everytime that recognise a multiple identity, is there any other way to report this?<br />I was thinking of a page or a text file where all the multiple identities will be writen

Top
#236418 - 02/22/03 02:02 AM Re: [6.2] Multiple Identity Detector [Re: sjsaunders]
Lisa_P Offline
Enthusiast

Registered: 03/09/02
Posts: 329
Loc: Michigan, USA
<img src="/forum/images/graemlins/shocked.gif" alt="" /> I had no idea this was here. And I WAS going to actually get a few hours of sleep. Thanks Dave! <img src="/forum/images/graemlins/laugh.gif" alt="" /><br /><br />Seriously, thank you. This will really make some of our work easier. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
[:"red"]Lisa[/]

Top
#236419 - 02/22/03 02:45 AM Re: [6.2] Multiple Identity Detector [Re: JacquiL]
caymuc Offline
Enthusiast

Registered: 01/17/01
Posts: 449
This is a very cool and needed hack! <br /> <br />One strange result I got: <br /> <br />>From: **DONOTDELETE** <br />>I seem to have multiple personalities using ID numbers 1234 and 1 <br />>sharing the same computer. <br /> <br />How can it happen that some user could login as User #1 DONOTDELETE <br /> <br />Is this a bug in the hack's code or is there a user using some sort of side entrance to threads nobody was aware of yet? - By the way: I have deleted only 2 users. I am pretty sure this one was not amongst them.
_________________________
Carl
Colour-Ize-Forums (test entry: user: 'test' pw: 'test2')

Top
#236420 - 02/26/03 08:32 PM Re: [6.2] Multiple Identity Detector [Re: jbiz]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
[]coy7 said:<br />I've installed this and it works -- I just found out that two sisters who post on my board must share a computer.<br /><br />Now that I know this -- and get reminded everytime one of them logs on -- is there any way to exclude member numbers from this check? [/]<br />I admin on coy's board.... so the repeated duplicate PMs from the sisters were bugging me. <img src="/forum/images/graemlins/grin.gif" alt="" /> They must toss their cookies. <img src="/forum/images/graemlins/tongue.gif" alt="" /> So I tweaked this a bit.<br /><br />So..... Here's how you can ignore certain user numbers:<br /><br />In the original double identity detection code....<br /><br />Where it says:<br /><br />
Code:
<br />         else {<br />            $tempID = ${$config['cookieprefix']."IDstack"};<br />
<br /><br />Change to this:<br />
Code:
<br />         elseif (!stristr(",{$config['allowed_dupes']},","{$user['U_Number']}")) {<br />            $tempID = ${$config['cookieprefix']."IDstack"};<br />
<br /><br /><br />Then go into your config file.... at the very bottom and put this variable into the extra/unknown variable section.<br /><br /><br />$config['allowed_dupes'] = '14,17,13';<br /><br />Between the quotes... put "allowed" duplicate user numbers. Separate them with a comma. What this does... if the user number matches a number on this list, it skips the Private Message send out. <img src="/forum/images/graemlins/wink.gif" alt="" /><br /><br />Now if a user on the list has more identities than the what you list, you won't get notified. It basically ignores this user and it's assumed that they are allowed unlimited duplicates. <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />Hope that helps. <br />Josh <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#236421 - 02/26/03 10:01 PM Re: [6.2] Multiple Identity Detector [Re: Daine]
Mudpuppy Offline
Journeyman

Registered: 08/16/02
Posts: 113
Loc: Sin City
I think the sisters in question login to the board from school, and that's why they share a computer which also dumps cookies on a regular basis. I'm noticing this issue quite a bit with the number of college kids on my board.<br /><br />This fix will really come in handy. There's nothing more disappointing than having a new PM then discovering it's just a "duplicate ID notification" <img src="/forum/images/graemlins/tongue.gif" alt="" />

Top
#236422 - 02/27/03 06:21 AM Re: [6.2] Multiple Identity Detector [Re: Daine]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1954
Loc: Sweden, Uppsala
I think a small change is needed in the code so that user number 15 won't match up to 156. Change this:<br /><br />
Code:
<br />         elseif (!stristr(",{$config['allowed_dupes']},","{$user['U_Number']}")) {<br />            $tempID = ${$config['cookieprefix']."IDstack"};<br />
<br /><br />Into this:<br />
Code:
<br /><br />         elseif (!stristr(",{$config['allowed_dupes']},",",{$user['U_Number']},")) {<br />            $tempID = ${$config['cookieprefix']."IDstack"};<br />
_________________________
/Gardener | Complete list of my mods

Top
#236423 - 02/27/03 12:05 PM Re: [6.2] Multiple Identity Detector [Re: c0bra]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Ah yes... the trailing comma.<br /><br />Thank you. Good eye. <img src="/forum/images/graemlins/wink.gif" alt="" /><br />You can now join Dave_L in the Eagle Eye club <img src="/forum/images/graemlins/grin.gif" alt="" />.<br />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#236424 - 02/27/03 12:50 PM Re: [6.2] Multiple Identity Detector [Re: Daine]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1954
Loc: Sweden, Uppsala
Actually there has to be a comma both before and after, as in my example, otherwise it might match 123 with 3123. =]
_________________________
/Gardener | Complete list of my mods

Top
#236425 - 02/27/03 02:17 PM Re: [6.2] Multiple Identity Detector [Re: c0bra]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Yes. I remember that. You and dave helped me figure that out in teh PHP forum. I just was forgetful/careless. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#236426 - 02/27/03 03:28 PM Re: [6.2] Multiple Identity Detector [Re: Daine]
Hal9000 Offline
Journeyman

Registered: 11/04/02
Posts: 120
Would it be simpler if all the multiple identities to be written in a file without receiving all the time pm's?<br />Can this be made by someone?

Top
#236427 - 02/27/03 03:43 PM Re: [6.2] Multiple Identity Detector [Re: dlhanso]
Astaran Offline
Addict

Registered: 12/21/00
Posts: 1545
Loc: Germany
I thought of storing all this info in a database so that you can query for duplicate idenities of a specified user.<br /><br />But i did come up with a satisfing db-schema so far. Maybe someone else has an idea?<br />
_________________________
Running a community? -> Keep informed and take it to the next level

Top
#236428 - 02/27/03 03:45 PM Re: [6.2] Multiple Identity Detector [Re: dlhanso]
salim Offline
Member

Registered: 02/08/03
Posts: 200
Loc: Muscat, Oman
I must admit, this is the best hack I have installed in my threads so far. Damn, the Idea of having total control and knowing who is using what turns me on. Thanks JustDave, what can I say, you are a genious <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
This is where it all takes place!
[]http://www.omanforum.com/threads/uploads/3408-signeo.JPG[/]

Top
#236429 - 03/04/03 07:56 AM Re: [6.2] Multiple Identity Detector [Re: me_oh_my]
ksanuk Offline
Member

Registered: 02/06/02
Posts: 297
Loc: Bangkok, Thailand
Hi,<br /><br />I just tried this on 6.1.1 but it does not work. It generates the following error:<br /><br />Fatal error: Call to undefined function: get_input() in /export/data1/users2/board/public_html/ubbt.inc.php on line 229<br /><br />Any suggestions on how I can get this to work on 6.1.1 ?<br />This would really be helpful on my board since I get the occasional dickhead signing up with a new ID just to flame someone (we have a very strict rule on flaming, you get warned once... if you are lucky).<br /><br />Sanuk!<br />

Top
#236430 - 03/04/03 09:13 AM Re: [6.2] Multiple Identity Detector [Re: Deyth_Combine]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Try taking the get_input lines out of the cookies script. Those are unneeded (and that function didn't exist) in 6.1.x<br /><br />Otherwise... I think it should work fine. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#236431 - 03/04/03 07:45 PM Re: [6.2] Multiple Identity Detector [Re: Daine]
ksanuk Offline
Member

Registered: 02/06/02
Posts: 297
Loc: Bangkok, Thailand
Hi,<br /><br />"Try taking the get_input lines out of the cookies script. Those are unneeded (and that function didn't exist) in 6.1.x"<br />Thanks. Will give it a shot tonight when I get back home.<br /><br />Sanuk!<br />

Top
#236432 - 03/05/03 10:49 PM Re: [6.2] Multiple Identity Detector [Re: Daine]
ksanuk Offline
Member

Registered: 02/06/02
Posts: 297
Loc: Bangkok, Thailand
Hi,<br /><br />Thanks Josh, that seemed to have done the trick.<br /><br />Sanuk!<br />

Top
#236433 - 03/06/03 02:59 AM Re: [6.2] Multiple Identity Detector [Re: sjsaunders]
ksanuk Offline
Member

Registered: 02/06/02
Posts: 297
Loc: Bangkok, Thailand
Hi,<br /><br />Hmmm, one of my mods created a new account, used it, then logged back in using his real account, but I did not receive any PM. He assures me that he did not mess around with his cookies.<br /><br />Does one need to check the 'Remember me' box in order for this to work?<br /><br />Sanuk!<br />

Top
#236434 - 03/06/03 03:46 PM Re: [6.2] Multiple Identity Detector [Re: Deyth_Combine]
PhotoPost Offline
Hacker

Registered: 02/03/02
Posts: 989
Anyone make a change to the script to show usernames instead of usernumbers?
_________________________
[]http://www.danasoft.com/vipersig.jpg[/]
Viper Alley - http://www.viperalley.com
Extreme Fitness - http://www.extremefitness.com[/b]

Top
#236435 - 03/12/03 12:30 PM Re: [6.2] Multiple Identity Detector [Re: gailg]
Beentheredonethat Offline
Member

Registered: 05/10/02
Posts: 160
Loc: Not here
this is a great script...<br />you will receive a pm with the usernumbers but as they are clickable and take you to that users profile there is no real need to make it go by username<br /><br />Great script!<br />Thanks

Top
#236436 - 03/19/03 03:31 AM Re: [6.2] Multiple Identity Detector [Re: charts]
smilesforu Offline
Junior Member

Registered: 01/31/02
Posts: 676
I like the idea of the username included with the usernumbers, would make tracking stuff down friendlier. I also received a message today from user number 1 which I already had in the list, but didn't have the second number.<br /><br />Under the impression I wouldn't get the messages if one of the numbers was listed... hmm<br /><br />Anyway the list of exclude numbers has greatly decreased the messages I been getting on multiple identities.<br /><br />Thanks again for a great mod.<br />

Top
#236437 - 04/16/03 12:07 AM Re: [6.2] Multiple Identity Detector [Re: sjsaunders]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
UPDATED: 4-15-03 by JoshPet - Added a step to expire the cookies for Admins. Otherwise, even though the cookie isn't set if you are an Admin, you get one when you use the "become this user feature". So as soon as you become 2 users... you start getting "Multiple Identity Detected" PMs out the ying yang. This update will prevent that. <img src="/forum/images/graemlins/smile.gif" alt="" /> Hope JustDave doesn't mind me updating his code. <img src="/forum/images/graemlins/wink.gif" alt="" /><br /><br />If you already have this installed, add this above the Multiple Identity Detector Code:<br /><br />
Code:
<br />if ($user['U_Status'] == "Administrator") {<br />     setcookie("{$config['cookieprefix']}IDstack",'',time()-846000,"{$config['cookiepath']}");<br />}   <br />
<br /><br />Coy - I installed this at your board because I was sick of so many PMs. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#236438 - 04/16/03 01:50 AM Re: [6.2] Multiple Identity Detector [Re: Daine]
Mudpuppy Offline
Journeyman

Registered: 08/16/02
Posts: 113
Loc: Sin City
Sorry -- I forget that you get those PMs as well. I hate it when users post in the wrong thread, but have no option other than to manually move their post to the proper thread (I supposed I could delete the post... depends on what sort of mood I'm in). Anyway, I've been doing lots of "login as user" lately to move posts around.

Top
#236439 - 04/16/03 01:57 AM Re: [6.2] Multiple Identity Detector [Re: jbiz]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
One way to avoid triggering the mutiple identity check when you become another user is to use JustDave's My Cookie utility to clear your Threads cookie before you log back in as yourself. <img src="/forum/images/graemlins/wink.gif" alt="" /><br /><br />The My Cookies utility will be in the next version of Threads (6.3).
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#236440 - 04/16/03 11:43 AM Re: [6.2] Multiple Identity Detector [Re: jacksonm99]
Hal9000 Offline
Journeyman

Registered: 11/04/02
Posts: 120
I made a small change in the code in order not to receive pm but every multiple identity to be writen in a file<br />I was getting tired reading,deleting pm's and I think this is a better solution for a busy board.<br /><br />
Code:
  if (!empty($user['U_Number']) &amp;&amp; $user['U_Status'] != "Administrator") {<br />         ${$config['cookieprefix'] . "IDstack"} = get_input($config['cookieprefix']."IDstack","cookie");<br />         if (empty(${$config['cookieprefix'] . "IDstack"})) {<br />            ${$config['cookieprefix']."IDstack"} = ",{$user['U_Number']},";<br />            setcookie("{$config['cookieprefix']}IDstack",${$config['cookieprefix']."IDstack"},time()+846000,"{$config['cookiepath']}");<br />         }<br />         else {<br />            $tempID = ${$config['cookieprefix']."IDstack"};<br />            if (!stristr($tempID,",{$user['U_Number']},")) {// another usernumber from same computer detected<br />               ${$config['cookieprefix']."IDstack"} .= "{$user['U_Number']},";<br />               setcookie("{$config['cookieprefix']}IDstack",${$config['cookieprefix']."IDstack"},time()+$config['cookieexp'],"{$config['cookiepath']}");<br />               $Unums = split(",",${$config['cookieprefix']."IDstack"});<br />               $andids = "";<br />               for ($i=0; $i&lt;(sizeof($Unums)); $i++) {<br />                  if (!empty($Unums[$i])) {<br />                     if ($i &gt; 1) {<br />                        $andids .= $ubbt_lang['MULTIPLE_IDENT_MSG2'];<br />                     }<br />                     $andids .= " &lt;a href=\"{$config['phpurl']}/showprofile.php?Cat=$Cat&amp;amp;User=" . $Unums[$i] . "\" target=\"_blank\"&gt;" . $Unums[$i] . "&lt;/a&gt; ";<br />                  }<br />               }<br />               $msg = "&lt;strong&gt;" . $ubbt_lang['MULTIPLE_IDENT_MSG1'] . $andids . $ubbt_lang['MULTIPLE_IDENT_MSG3'] . "&lt;/strong&gt;";<br />               $Sender = $user['U_Number'];<br />               $To = "ADMIN_GROUP";<br />               $Subject = $ubbt_lang['MULTIPLE_IDENT_DETECT'];<br />               //$this -&gt; send_message($user['U_Number'],'',$Subject,$msg,'ADMIN_GROUP');<br />               $log=fopen("/home/public_html/ubbthreads/log.html","a");<br />               fwrite($log,"$msg&lt;br&gt;\n");<br />               fclose($log);<br />            }<br />         }<br />      } 
<br /><br />This code for ubbt.inc.php and it writes all the multiple identities in a log.html. You must create this first <br />Hope it helps

Top