php forum
php mysql forum
php mysql smarty
 
Page 1 of 3 1 2 3 >
Topic Options
#312421 - 12/30/06 06:39 PM Multiple Identity Detector
chillin Offline
Journeyman

Registered: 01/26/03
Posts: 127
Loc: bend, OR USA
Multiple Identity Detector
Old mod by JustDave ported to 7.02 by chillin. This mod uses a cookie to track user id logins from a single computer. Thus if a person logs into your site using the same browser on the same computer with two or more user id's you'll get a Private Topic with the details.

Working Under
7.02

Files Modified (pre-UBB.T7.3):
/libs/ubbthreads.inc.php

Files Modified (UBB.T7.3+):
/libs/html.inc.php

Install
Follow the one step in the attached text file. BE SURE TO MODIFY THE CONFIG OPTIONS inside the text file before copying into your live site. These configs determine who gets sent the Private Topic.

Php Code:

####################
## CONFIG OPTIONS ##
## EDIT THESE !!  ##
####################
$admins = array(31,2998,4214);  //array of user numbers to send PT to
$sender = 2998; //user number of PT creator
####################
## END CONFIG	 ##
####################
 



Attachments
2326-multipleidentity.txt (222 downloads)



Edited by Gizmo (09/07/08 12:14 AM)
Edit Reason: 7.3 Compat
_________________________
i see threads people
http://www.chinooktc.com

Top
#312423 - 12/30/06 07:18 PM Re: Multiple Identity Detector [Re: chillin]
Ian_W Offline

Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
thanks smile
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#312424 - 12/30/06 08:43 PM Re: Multiple Identity Detector [Re: Ian_W]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
Sounds great, good job smile.
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#313503 - 03/12/07 08:30 AM Re: Multiple Identity Detector [Re: Gizmo]
badfrog Offline
Power User

Registered: 03/05/07
Posts: 83
Loc: somewhere on the coast of Main...
does this still work in 7.1 ?

NVM... it does work laugh



Edited by badfrog (03/12/07 08:46 AM)
Edit Reason: answered my own question...

Top
#313506 - 03/12/07 02:02 PM Re: Multiple Identity Detector [Re: badfrog]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Cool, didn't know this was available thumbsup
_________________________
- Allen wavey
- What Drives You?

Top
#313508 - 03/12/07 02:05 PM Re: Multiple Identity Detector [Re: AllenAyres]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
"Danger Will Robinson, danger danger" lol
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#313748 - 03/31/07 09:27 PM Re: Multiple Identity Detector [Re: chillin]
Myke Offline
Power User

Registered: 09/06/99
Posts: 97
Loc: Sydney, Australia
Thanks for this mod! smile

I noticed a typo in the Message Subject. In the attachment:

Code:
$Subject = "Multiple Identies Detected";


should be:

Code:
$Subject = "Multiple Identities Detected";

Top
#313826 - 04/10/07 12:07 AM Re: Multiple Identity Detector [Re: Myke]
jgeoff Offline
Power User

Registered: 04/05/01
Posts: 97
Loc: NJ

Very cool. I just installed this the other day, and got my first notice:
Quote:

The following users have logged in from the same computer: Fame, Debra,

What would be cool is, if the names actually linked to their profiles... any chance of that? wink

Thanks again. cool
_________________________
GangsterBB.NET (Ver. 7.3)
2007 Content Rulez Contest - Honorable Mention
UBB.classic 6.7.2 - RIP
Browser: Firefox 2.0

Top
#313945 - 04/26/07 07:08 AM Re: Multiple Identity Detector [Re: jgeoff]
1QuickSI Offline
Coder

Registered: 06/10/01
Posts: 705
Loc: CT
Under 7.1.1 where is this file located? Going blind in my old age...laff...
_________________________
...Steven
Hostboard.com
Running UBB v6.1.0.4
Doing what NO other UBB in the world is doing.
The first & only production UBB powered by MySQL.

Top
#313946 - 04/26/07 07:30 AM Re: Multiple Identity Detector [Re: 1QuickSI]
1QuickSI Offline
Coder

Registered: 06/10/01
Posts: 705
Loc: CT
NM, figured it out.
_________________________
...Steven
Hostboard.com
Running UBB v6.1.0.4
Doing what NO other UBB in the world is doing.
The first & only production UBB powered by MySQL.

Top
#314078 - 05/12/07 09:17 PM Re: Multiple Identity Detector [Re: 1QuickSI]
gliderdad79 Offline
User

Registered: 03/24/06
Posts: 31
Not to sure yet but I have noticed a few things happening with this mod. First thing is I am not receiving all notifications, a few have been sent duplicate at the same time. Also I have received twice now a that moderator shared the same login as 2 other members. Now when I get that notification, I immediately go and look at each users last on ip(mind you I did this as soon as the notice came in)So to get notified that all three shared the account it had to have been within moments of each other, thats why I checked the last on ip. When I do check the ip the all come back to each members location. If they shared and was all within moments of each other wouldn't the last on ip's match?

Top
#314081 - 05/12/07 11:14 PM Re: Multiple Identity Detector [Re: gliderdad79]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
Originally Posted By: gliderdad79
If they shared and was all within moments of each other wouldn't the last on ip's match?
Yes
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#314083 - 05/13/07 02:25 AM Re: Multiple Identity Detector [Re: Gizmo]
gliderdad79 Offline
User

Registered: 03/24/06
Posts: 31
LOL, thanks Giz I knew that. Just trying to show whats going on. The fact that none are the same tells me it's not fully working under 7.1.1 I know this was written for 7.0.2 but may need to be tweeked a bit:D

Top
#314085 - 05/13/07 06:58 AM Re: Multiple Identity Detector [Re: gliderdad79]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
Logic would state to compare the files modified to see what was added/removed to see if anything needs to be adapted wink
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#314086 - 05/13/07 03:22 PM Re: Multiple Identity Detector [Re: Gizmo]
gliderdad79 Offline
User

Registered: 03/24/06
Posts: 31
Yes you are right, but I deleted the 7.0.2 download, shocked

Top
#314089 - 05/13/07 08:22 PM Re: Multiple Identity Detector [Re: gliderdad79]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
You did? lol; whats funny is i have every release from UBB.C6.3 in a directory on my DVR lol...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#314090 - 05/13/07 08:22 PM Re: Multiple Identity Detector [Re: Gizmo]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
That includes all of the alpha's/beta's of UBB7 and several beta's of UBB.C
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#314091 - 05/13/07 09:50 PM Re: Multiple Identity Detector [Re: Gizmo]
gliderdad79 Offline
User

Registered: 03/24/06
Posts: 31
I received a backup of the guys computer who ran our site before he passed. Stupidly I went through it and deleted all the old one also stemming from classics. I know I had a brain fart shocked

Top
#314289 - 06/01/07 08:31 AM Re: Multiple Identity Detector [Re: jgeoff]
Myke Offline
Power User

Registered: 09/06/99
Posts: 97
Loc: Sydney, Australia
Originally Posted By: jgeoff

What would be cool is, if the names actually linked to their profiles... any chance of that? wink

Replace the following line:

Php Code:
$Message .= $display_name.", "; 

with:

Php Code:
$Message .= "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=showprofile&amp;User=$spray[$i]\">$display_name</a>, "; 


and you'll get profile links with each user listed.

Top
#314671 - 07/10/07 09:43 PM Re: Multiple Identity Detector [Re: Myke]
gliderdad79 Offline
User

Registered: 03/24/06
Posts: 31
This works in 7.2b5 grin

Top
#314701 - 07/13/07 12:54 AM Re: Multiple Identity Detector [Re: gliderdad79]
jgeoff Offline
Power User

Registered: 04/05/01
Posts: 97
Loc: NJ

I'm using 7.1 right now, and I'm getting this notice despite the fact that one of the members is banned. So, is this checking login attempts, or actual logins?
_________________________
GangsterBB.NET (Ver. 7.3)
2007 Content Rulez Contest - Honorable Mention
UBB.classic 6.7.2 - RIP
Browser: Firefox 2.0

Top
#315088 - 08/06/07 06:21 AM Re: Multiple Identity Detector [Re: gliderdad79]
Rose Offline
Power User

Registered: 09/29/06
Posts: 76
I have not been able to get this to work in 7.2. We get the PM, but the names are blank. Any ideas anyone?

Top
#315818 - 09/25/07 04:44 AM Re: Multiple Identity Detector [Re: gliderdad79]
MattUK Offline
Journeyman

Registered: 11/23/01
Posts: 137
Works perfectly on 7.2.2, thanks

Top
#316762 - 02/28/08 11:19 AM Re: Multiple Identity Detector [Re: chillin]
Ohton Offline
Lurker

Registered: 06/30/02
Posts: 5
can we get this to work in 73b4?

Top
#316779 - 03/02/08 02:28 PM Re: Multiple Identity Detector [Re: gliderdad79]
Thelockman Offline
Lurker

Registered: 02/28/08
Posts: 9
Works well in 7.2.2

Top
#316780 - 03/02/08 02:37 PM Re: Multiple Identity Detector [Re: Thelockman]
gliderdad79 Offline
User

Registered: 03/24/06
Posts: 31
Yes it does in 7.2.2, but at a quick install it didn't work in 7.3b4. Haven't looked into what may need to be changed yet

Top
#316924 - 05/08/08 08:13 AM Re: Multiple Identity Detector [Re: gliderdad79]
Thelockman Offline
Lurker

Registered: 02/28/08
Posts: 9
I'm thinking that the line to add this under in 7.3 would be:

$myinfo['dob'] = get_input($config['COOKIE_PREFIX']."ubbt_dob","cookie");

I have not tried it as of yet but need to upgrade my test board before I can try this hack.

Has anyone tried this in 7.3 yet and if so what changes need to be made for this to work?

Top
#316945 - 05/11/08 08:18 PM Re: Multiple Identity Detector [Re: Thelockman]
MikeBTech Offline
Lurker

Registered: 05/26/07
Posts: 2
Loc: Texas
Works good with 7.3 I have it running without a problem but you need to make alterations to the code in the file called "html.inc.php" instead of the original "ubbthreads.inc.php"

Looks like Rick moved the cookie code to this file

Mike

Top
#316946 - 05/12/08 12:38 AM Re: Multiple Identity Detector [Re: MikeBTech]
jgeoff Offline
Power User

Registered: 04/05/01
Posts: 97
Loc: NJ

Thanks, Mike - was meaning to look into that after my upgrade to 7.3. Hoping for the best!
_________________________
GangsterBB.NET (Ver. 7.3)
2007 Content Rulez Contest - Honorable Mention
UBB.classic 6.7.2 - RIP
Browser: Firefox 2.0

Top
#316964 - 05/14/08 04:01 PM Re: Multiple Identity Detector [Re: jgeoff]
badfrog Offline
Power User

Registered: 03/05/07
Posts: 83
Loc: somewhere on the coast of Main...
working in 7.3 :-)


Edited by badfrog (05/14/08 04:38 PM)

Top
#317079 - 05/28/08 07:19 AM Re: Multiple Identity Detector [Re: badfrog]
Thelockman Offline
Lurker

Registered: 02/28/08
Posts: 9
So what is the actual code I need to use and where do I place it.

Top
#317081 - 05/28/08 11:25 AM Re: Multiple Identity Detector [Re: Thelockman]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 490
Loc: SoCal
The code is overdone for 7.3.

We can instead use:
$this->send_message($Sender="",$To="",$Subject="",$Mess="",$Group="");

now..

If i have time today i'll redo it 7.3-ized smile
_________________________

Top
#317103 - 05/30/08 10:13 AM Re: Multiple Identity Detector [Re: sirdude]
Thelockman Offline
Lurker

Registered: 02/28/08
Posts: 9
Cool, Thanks.

Top
#317178 - 06/07/08 07:15 PM Re: Multiple Identity Detector [Re: Thelockman]
Thelockman Offline
Lurker

Registered: 02/28/08
Posts: 9
Hey sirdude, Ever get this finished yet?

Top
#317301 - 06/26/08 12:21 PM Re: Multiple Identity Detector [Re: Thelockman]
winter Offline
Lurker

Registered: 09/10/03
Posts: 3
Loc: Salt Lake City, Utah
First off, thanks to everyone who contributes Great stuff like this! The coding is beyond me and I am thrilled for the added functionality that you guys are providing!

It would be great if:
1- Could enter some member #'s that could be excluded. I have my Admin account and then a generic account that I use to check permissions on user groups. I don't need to see the alert when I am the one logging in.

2- Could check IP #'s as well. If a user logs in using different browsers, or if they clear their cookies then it may not trigger the alert. I know IP #'s could change, but if they are quickly logging in under two names I would suspect they would still have the same IP#

I don't know if either of these are even possible, but thought I would throw them out as possible enhancements.

Again, thanks to those who have taken their time to come up with these! If there is a PayPal donation I could make for your efforts I would love to...just let me know the paypal account to send it to!
Mark

Top
#317384 - 07/08/08 05:45 AM Re: Multiple Identity Detector [Re: winter]
Myke Offline
Power User

Registered: 09/06/99
Posts: 97
Loc: Sydney, Australia
Originally Posted By: winter
It would be great if:
1- Could enter some member #'s that could be excluded. I have my Admin account and then a generic account that I use to check permissions on user groups. I don't need to see the alert when I am the one logging in.


In the config options, add a new array to store the allowed mulitple IDs:

Php Code:
$multi_id_allow = array(1, 2); // array of multiple Uid's allowed 


Then replace:
Php Code:
}elseif(!stristr($multiple,"c{$Uid}c") && $Uid > 0){ 


with:

Php Code:
}elseif ((!stristr($multiple,"c{$Uid}c") && $Uid > 0) && !in_array($Uid, $multi_id_allow)){ 


This will prevent the PM being sent if the Uids in the $multi_id_allow array share the same computer and browser.

Top
#317410 - 07/16/08 05:59 AM Re: Multiple Identity Detector [Re: Myke]
Detangler Offline
Lurker

Registered: 02/23/08
Posts: 2
Is it possible to make this show the IP address of the user who triggered the alert in the PM? (Works fab otherwise though!)

Top
#317521 - 08/28/08 04:10 PM Re: Multiple Identity Detector [Re: chillin]
MattUK Offline
Journeyman

Registered: 11/23/01
Posts: 137
Trying to set this up for 7.3.1, but the first step..

Find

$this -> ubbt_setcookie("{$config['COOKIE_PREFIX']}ubbt_dob","",time()-3600);

Can't find that in the file.. where is it now?

Top
#317563 - 09/13/08 10:30 PM Re: Multiple Identity Detector [Re: MattUK]
Mike L_dup1 Offline
Lurker

Registered: 02/15/04
Posts: 4
Allow me to help. wink

The text file says to find...

Code:
$this -> ubbt_setcookie("{$config['COOKIE_PREFIX']}ubbt_dob","",time()-3600);


This is VERY close to what is in the file html.inc.php.

On or about line 1448, you will find...

Code:
$this->ubbt_setcookie("{$config['COOKIE_PREFIX']}ubbt_dob","",time()-3600);


Note the lack of space characters in the string "$this->ubbt". wink

When doing Mods, you need to be willing to look a little harder.

I did as you apparently did and searched for the whole string from the text file. When that did not find a match, I started doing a search for "ubbt_setcookie" and found what was needed.

I have this Mod working fine.

Remember for 7.3x you are looking in "html.inc.php".

Top
#317644 - 11/05/08 09:48 PM Re: Multiple Identity Detector [Re: Mike L_dup1]
DougMMcts Offline
Lurker

Registered: 11/04/08
Posts: 7
Is this working on 7.4?
_________________________

Top
#317650 - 11/06/08 06:11 PM Re: Multiple Identity Detector [Re: DougMMcts]
DougMMcts Offline
Lurker

Registered: 11/04/08
Posts: 7
It is working in 7.4
_________________________

Top
#317652 - 11/06/08 06:45 PM Re: Multiple Identity Detector [Re: DougMMcts]
DougMMcts Offline
Lurker

Registered: 11/04/08
Posts: 7
Well I’m not getting the email that states I have a new PM. Is this because I’m sending it to myself (I’m the sender as well as the recipient)?
_________________________

Top
#317653 - 11/06/08 06:51 PM Re: Multiple Identity Detector [Re: DougMMcts]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
Originally Posted By: DougMMcts
Is this because I’m sending it to myself (I’m the sender as well as the recipient)?
yes
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#317931 - 03/26/09 02:34 PM Re: Multiple Identity Detector [Re: Gizmo]
badfrog Offline
Power User

Registered: 03/05/07
Posts: 83
Loc: somewhere on the coast of Main...
anyone try this in 7.5.x ?

I was trying to add this, but can't find any string remotely matching the one it says to search for...

Top
#317932 - 03/26/09 02:35 PM Re: Multiple Identity Detector [Re: badfrog]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 490
Loc: SoCal
it's part of stock 7.5.2 now
_________________________

Top
#317936 - 03/27/09 08:56 AM Re: Multiple Identity Detector [Re: sirdude]
badfrog Offline
Power User

Registered: 03/05/07
Posts: 83
Loc: somewhere on the coast of Main...
got it, thanx!

Top
#318893 - 12/09/11 11:28 PM Re: Multiple Identity Detector [Re: sirdude]
jgeoff Offline
Power User

Registered: 04/05/01
Posts: 97
Loc: NJ
Originally Posted By: sirdude
it's part of stock 7.5.2 now

Is there a control panel setting for this? I can't find it. I haven't gotten a PM for multiple identities in almost a year, but my co-admin has. I'm running 7.5.6
_________________________
GangsterBB.NET (Ver. 7.3)
2007 Content Rulez Contest - Honorable Mention
UBB.classic 6.7.2 - RIP
Browser: Firefox 2.0

Top
#318894 - 12/10/11 08:57 AM Re: Multiple Identity Detector [Re: chillin]
gliderdad79 Offline
User

Registered: 03/24/06
Posts: 31
My Stuff-> Preferences

last option "Notify me when someone accesses multiple accounts."

Top
#318895 - 12/10/11 09:18 AM Re: Multiple Identity Detector [Re: chillin]
jgeoff Offline
Power User

Registered: 04/05/01
Posts: 97
Loc: NJ

Great, thanks!

I wonder if there are any plans to include a whitelist so we don't receive notifications for known shared accounts, just new ones... *hint* wink
_________________________
GangsterBB.NET (Ver. 7.3)
2007 Content Rulez Contest - Honorable Mention
UBB.classic 6.7.2 - RIP
Browser: Firefox 2.0

Top
Page 1 of 3 1 2 3 >



Moderator:  sirdude 
Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks