Quote:
06-15-03 at 12:26 PM Xenon said this in Post #2
deleting the old ip's isn't that easy, at least if they don't have static ip's
but for not storing new ip's for mods/sm/admins use this:
open newreply.php
find
PHP Code:
$DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,attachmentid,pagetext,allowsmilie,showsignature,ipaddress,iconid,visible) VALUES (NULL,'$threadid','".addslashes(htmlspecialchars($title))."','".addslashes($postusername)."','$bbuserinfo[userid]','".time()."','$attachmentid','".addslashes($message)."','$allowsmilie','$signature','$ipaddress','$iconid','$visible')");
$postid=$DB_site->insert_id();
indexpost($postid,0);
and change it into:
PHP Code:
$DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,attachmentid,pagetext,allowsmilie, showsignature,ipaddress,iconid,visible) VALUES (NULL,'$threadid','".addslashes(htmlspecialchars($title))."','".addslashes($postusername)."','$bbuserinfo[userid]','".time()."','$attachmentid','".addslashes($message)."','$allowsmilie','$signature','" . iif(in_array($bbuserinfo['usergroupid'], array(5,6,7)), '0.0.0.0', $ipaddress) ."','$iconid','$visible')");
$postid=$DB_site->insert_id();
indexpost($postid,0);
|
I forgot about this thread, and now I am trying to make it work and cant. I get all kinds of errors after doing this. Is there maybe something wrong with the code? Anyone?
|