vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   ipaddress logging modifications? (https://vborg.vbsupport.ru/showthread.php?t=48304)

drives fast 01-30-2003 02:41 AM

ipaddress logging modifications?
 
I am looking for a re-vamp of the ipaddress logging if possible.

since there are sites out there that crawl the entire internet and store all pages found I had an idea.

I am hoping someone would write a hack that would make it so the ipaddresses for team members (admin, supermods and mods) IP addresses would be inserted as 127.0.0.1 but all other usergroups log as it is now in the database in the post table.

or....

make it so the ipaddresses would compile and be viewble in members memberfile instead of the post table so IP logging can be turned off for the posts

in other words.....have a drop-down in the memberfile for all of their ipaddresses so it would be viewable there instead of compiling them in the post table and allow logging to be turned off.

I hope that made sense.

can this be done?

Xenon 01-30-2003 12:10 PM

hmm, i don't see the sense for it, crawlers can't get the ip out of the post table...

but at least the first thing to just store the ip for no staffs is easy:
open newreply.php
find:
PHP Code:

if ($logip==or $logip==2) { 

and change it to:
PHP Code:

if (!in_array($bbuserinfo[usergroupid], array(5,6,7)) and ($logip==or $logip==2)) { 


drives fast 01-30-2003 06:32 PM

does that mean it will not store the IPs for those usergroups but still store them for everyone else?

drives fast 01-30-2003 06:47 PM

I get this warning when viewing IP addresses after doing thaqt
Quote:

Warning: Address is not a valid IPv4 or IPv6 address in /home/poothead/public_html/forum/admin/user.php on line 1316

drives fast 01-30-2003 07:34 PM

I would also assume (uh-oh :) ) that something would need to be done to newthread.php as well as postings.php maybe.

automatically inserting 127.0.0.1 rather than not logging admin and mods IP's would avoid that error (once again...I think)

drives fast 01-31-2003 03:07 AM

^^ :)

Xenon 02-01-2003 10:38 AM

changes to newthread.php are identical...

so find this block in general:
PHP Code:

    if ($logip==or $logip==2) {
      if (
$temp $HTTP_SERVER_VARS['REMOTE_ADDR']) {
        
$ipaddress $temp;
      } else if (
$temp $REMOTE_ADDR) {
        
$ipaddress $temp;
      } else {
        
$ipaddress $HTTP_HOST;
      }
    } else {
      
$ipaddress="";
    } 

and replace it with:
PHP Code:

    if ($logip==or $logip==2) {
      if (
$temp $HTTP_SERVER_VARS['REMOTE_ADDR']) {
        
$ipaddress $temp;
      } else if (
$temp $REMOTE_ADDR) {
        
$ipaddress $temp;
      } else {
        
$ipaddress $HTTP_HOST;
      }
      if(
in_array($bbuserinfo[usergroupid], array(5,6,7)) {
        
$ipaddress '127.0.0.1';
      }
    } else {
      
$ipaddress="";
    } 


sarum 08-22-2005 04:26 AM

can one of you great ingenious guys translate this to vb3 code?
i would be SOOOOOOOOOO happy if you could
this is exactly what the doctor ordered

but i need help i cant figure it out myself

thanks guys


All times are GMT. The time now is 04:42 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01972 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete