vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   IPs not logged of Admins or certain mods (https://vborg.vbsupport.ru/showthread.php?t=54361)

dano 06-15-2003 02:04 AM

IPs not logged of Admins or certain mods
 
Is it possible to create a hack that would not allow IP logging for admins, or specific moderators?

Please let me know, I need this and cant seem to find it. If its simple I am even willing to pay.

Or is there a way to delete them all from the system?

Xenon 06-15-2003 10:26 AM

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); 


dano 06-15-2003 03:47 PM

Beautiful. Thanks.

Xenon 06-15-2003 05:45 PM

you're welcome

drives fast 06-16-2003 01:17 AM

I asked for this a couple months ago and I got the run-around....why is this request any different than mine?

not trying to be an a** but it seems strange to me that someone be so willing to spit this one out now but not when I asked.

I already solved it myself but still curious

Xenon 06-16-2003 10:53 AM

maybe your request was overlooked....

yeah there is the possibility, that also me don't look into every thread :eek:

drives fast 06-16-2003 11:03 AM

I can understand that

it wasn't overlooked though....I got responses like "what do you want to do that for?" and "that requires hacking" and stupid run-around stuff like that.

anyway...thank you for the answer

dano 09-03-2003 04:48 PM

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?

Xenon 09-03-2003 08:21 PM

hmm, i've doublechecked it now and can't find a problem

just it seems to be wrapped, the dbquery should be in one line within the code :)

dano 09-03-2003 08:37 PM

Quote:

Today at 10:21 PM Xenon said this in Post #9
hmm, i've doublechecked it now and can't find a problem

just it seems to be wrapped, the dbquery should be in one line within the code :)

Strange, I have tried everything. It looked like the line

" . iif(in_array($bbuserinfo['usergroupid'], array(5,6,7)), '0.0.0.0', $ipaddress) ."

Was incorrect as it has the iif but I guess I am just dumb. I am not a coder or a hacker, just a guy trying to get things done. Any other ideas?


All times are GMT. The time now is 09:07 PM.

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.01160 seconds
  • Memory Usage 1,764KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete