Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 01-07-2004, 10:10 PM
kingtech kingtech is offline
 
Join Date: Dec 2002
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Ban Ip list hack

I created a mod to add an IP to the banip value in the settings table .. if i add info to the value hack directly into the DB or with my hack it does not show IP as banned when you access the forum. But if i go into the admin > setting options and pull up the banned options .. I can see the data I entered .. save changes without changing the value and it works to ban the IP.. am I missing something ??

THanks !!!
Reply With Quote
  #2  
Old 01-07-2004, 11:02 PM
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Posts: 2,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't quite understand what you mean, but if this is vB 2, then you have to Submit options once before any new options take effect.
Reply With Quote
  #3  
Old 01-07-2004, 11:38 PM
kingtech kingtech is offline
 
Join Date: Dec 2002
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lets say you went in using mysql and maually added values to the list of ips in the option named banip. They do not work to ban the ips. But if you open up the admin page an go to Banning Options.. you see the ips in the field even though they are not working. Without changing anything you click Save Changes at the bottom of the options page .. and they start working..

Make sense ??

But, sounds like you are onto somethong .. it is VB2 .. what does "Submit Options once" mean ???

Thanks for your help !!
Reply With Quote
  #4  
Old 01-07-2004, 11:42 PM
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Posts: 2,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I mean that you have to submit your vBulletin Options once (in admin cp) before any new settings take effect.
Reply With Quote
  #5  
Old 01-07-2004, 11:43 PM
kingtech kingtech is offline
 
Join Date: Dec 2002
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

But thats what I am trying to figure out how to work around ?? Why is that .. what happens there that makes the differenc ??
Reply With Quote
  #6  
Old 01-07-2004, 11:51 PM
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Posts: 2,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well it's always really been like that, and hackers have come to accept things like that in vBulletin 2, but not in vBulletin 3
Reply With Quote
  #7  
Old 01-08-2004, 12:03 AM
kingtech kingtech is offline
 
Join Date: Dec 2002
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If i upgrade to 3 wont I lose all my hacks ??
Reply With Quote
  #8  
Old 01-09-2004, 02:30 AM
kingtech kingtech is offline
 
Join Date: Dec 2002
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Finally figured it out .. all of the options are saved in the table template with the title options

Code:
SELECT * FROM `template` WHERE `template` = 'options'
I made the following function to insert my banned IPs . but could also be used to manually insert other options:

PHP Code:
function Build_Options ($baniplist) {
    global 
$DB_site;
    
$options $DB_site->query_first("SELECT template FROM template where title = 'options'");
    
$opt explode ('$banip = "";'$options['template']);
    
$newopts $opt[0].'$banip = "'.$baniplist.'";'.$opt[1];
    
$options $DB_site->query("UPDATE template SET template = '$newopts' where title = 'options'");
        return;




Thanks for your help
Reply With Quote
  #9  
Old 01-09-2004, 06:35 PM
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Posts: 2,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kingtech
If i upgrade to 3 wont I lose all my hacks ??
Yes, if the hacks haven't yet been ported over to vB 3.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:01 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.05765 seconds
  • Memory Usage 2,231KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete