php forum
php mysql forum
php mysql smarty
 
Page 2 of 3 < 1 2 3 >
Topic Options
#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

   Re: [6.2] Multiple Identity Detector to Del.icio.us Add to del.icio.us
  Digg Re: [6.2] Multiple Identity Detector Digg it
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: 1956
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
#236441 - 04/16/03 11:48 AM Re: [6.2] Multiple Identity Detector [Re: dlhanso]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Very nice. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#236442 - 04/16/03 11:54 AM Re: [6.2] Multiple Identity Detector [Re: dlhanso]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
[]$log=fopen("/home/public_html/ubbthreads/log.html","a");<br />fwrite($log,"$msg<br>\n");<br />fclose($log);[/]<br /><br />This could be replaced with:<br /><br />error_log("$msg<br>\n", 3, '/home/public_html/ubbthreads/log.html');<br /><br />You probably wouldn't want that file to be publicly readable. I suggest making the log file a config parameter, e.g.:<br /><br />error_log("$msg<br>\n", 3, $config['midetect_log']);<br />
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
Page 2 of 3 < 1 2 3 >


Top Posters Last 30 Days
AllenAyres 12
Gizmo 10
S7ARBVCK 2
Cambridge 1
Murphdog 1
MattUK 1
Kevin H 1
Who's Online
0 Registered (), 39 Guests and 9 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
BeyondCompare v3.00
by blaaskaak
09/05/08 02:46 PM
Noob - need help, or a reality check!
by Gizmo
09/04/08 03:21 AM
Here I am! Rock me like a Hurricane!
by AllenAyres
09/02/08 03:05 PM
[7.x] Generic Page Outside of forum directory
by Gizmo
08/30/08 05:43 PM
Team UBBDev Rides Again!
by Gizmo
08/28/08 11:45 PM
Multiple Identity Detector
by MattUK
08/28/08 04:10 PM
[7.3.x] ubb.links
by AllenAyres
08/26/08 09:57 AM
New Mods
Installing FlashChat with 7.3
by Paug
08/23/08 12:14 AM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.2.1] - Naked shoutbox
by sirdude
08/17/07 10:36 PM
[7.x] Generic Page Outside of forum directory
by
01/14/07 10:58 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
veedubb8, twentyseven, Claus1, welcomeback1, Paug
13327 Registered Users

 

 

 
fusionbb message board php hacks