 |
 |
 |
 |
#236440 - 04/16/03 11:43 AM
Re: [6.2] Multiple Identity Detector
[Re: jacksonm99]
|
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 /> if (!empty($user['U_Number']) && $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<(sizeof($Unums)); $i++) {<br /> if (!empty($Unums[$i])) {<br /> if ($i > 1) {<br /> $andids .= $ubbt_lang['MULTIPLE_IDENT_MSG2'];<br /> }<br /> $andids .= " <a href=\"{$config['phpurl']}/showprofile.php?Cat=$Cat&amp;User=" . $Unums[$i] . "\" target=\"_blank\">" . $Unums[$i] . "</a> ";<br /> }<br /> }<br /> $msg = "<strong>" . $ubbt_lang['MULTIPLE_IDENT_MSG1'] . $andids . $ubbt_lang['MULTIPLE_IDENT_MSG3'] . "</strong>";<br /> $Sender = $user['U_Number'];<br /> $To = "ADMIN_GROUP";<br /> $Subject = $ubbt_lang['MULTIPLE_IDENT_DETECT'];<br /> //$this -> send_message($user['U_Number'],'',$Subject,$msg,'ADMIN_GROUP');<br /> $log=fopen("/home/public_html/ubbthreads/log.html","a");<br /> fwrite($log,"$msg<br>\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
|
|
|
|
 |
 |
 |
 |
|
|