vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Ban IP's In vBulletin Options Easily (https://vborg.vbsupport.ru/showthread.php?t=268147)

TheSupportForum 11-03-2012 10:27 AM

Quote:

Originally Posted by Simon Lloyd (Post 2378028)
Thats the archive/global.php, i cant seem to recreate it on my test site, my mod works at style fetch, so pretty much before anything else has been executed so redirect happens then, do you have any mods or custom code in your fresh install?

no, i am using vb 4.2.0 pl3 i only noticed it yesterday in the logs
its a fresh install

Simon Lloyd 11-03-2012 10:35 AM

unfortunately i don't have vb4.0.2 just 4.1.14PL9 i will look and see what i can do though :)

TheSupportForum 11-03-2012 10:42 AM

Quote:

Originally Posted by Simon Lloyd (Post 2378028)
Thats the archive/global.php, i cant seem to recreate it on my test site, my mod works at style fetch, so pretty much before anything else has been executed so redirect happens then, do you have any mods or custom code in your fresh install?


if thats the case /archive/index.php can't be redirected as designed if yours is running first which may be causing the issue which is why it shows that error in the log

off

i though that global_start was run first before everything else, which is what the mods told me style_fetch maybe run sometime after that

Simon Lloyd 11-03-2012 10:53 AM

Look at it like this:
User calls for url>global.php>global.php redirect>hook stylefetch gets called>user redirected because he's in ban list

So if thats the scenario then global.php has executed before the hook is called, so i still dont understand why it is then causing an issue.

Give me a few days, i have a friend who has vb4.0.2 and i'll ask if i can use his test site to work on this.

Feel free in the meantime to change the hook to global_start and see how you go on.

Simon Lloyd 11-03-2012 11:23 AM

I've been looking at this trying to recreate it on my vb4 test site and i found that i can only recreate it if i add require_once "global.php"; then i get your issue exactly. I'll keep you posted.

TheSupportForum 11-03-2012 01:22 PM

Quote:

Originally Posted by Simon Lloyd (Post 2378041)
I've been looking at this trying to recreate it on my vb4 test site and i found that i can only recreate it if i add require_once "global.php"; then i get your issue exactly. I'll keep you posted.

thanks for the update

Simon Lloyd 11-03-2012 03:56 PM

1 Attachment(s)
Hi Simon, can you try importing this product with overwrite and see how you go on?, i cant raise my friend at the moment so i've just excluded global.php in the script.

TheSupportForum 11-03-2012 04:06 PM

Quote:

Originally Posted by Simon Lloyd (Post 2378092)
Hi Simon, can you try importing this product with overwrite and see how you go on?, i cant raise my friend at the moment so i've just excluded global.php in the script.

installed it now, also removed the error_log file

i will get back to you today with feedback on the changes :)

TheSupportForum 11-03-2012 04:22 PM

the following error is

PHP Code:

PHP Parse error:  syntax errorunexpected '{' in /home/hind1980/public_html/legijastranaca.com/includes/class_dm_user.php(1865) : eval()'d code on line 1 


Simon Lloyd 11-03-2012 04:47 PM

Ok, back to the drawing board!!, i don't get the error on vb4.1.14

TheSupportForum 11-03-2012 04:50 PM

Quote:

Originally Posted by Simon Lloyd (Post 2378110)
Ok, back to the drawing board!!, i don't get the error on vb4.1.14

the error does not appear on the forum, it only appears in the error_log.log file in forum root

the forum does not show any error with code

Simon Lloyd 11-03-2012 05:25 PM

I undersatnd that but im not seeing it in my error logs at all, i've checked the syntax of the latest code i've given here http://www.piliapp.com/php-syntax-check/ and it all checks out - im at a loss until i can get my hands on my friends vb4.02 and try it there.

TheSupportForum 11-03-2012 05:29 PM

Quote:

Originally Posted by Simon Lloyd (Post 2378117)
I undersatnd that but im not seeing it in my error logs at all, i've checked the syntax of the latest code i've given here http://www.piliapp.com/php-syntax-check/ and it all checks out - im at a loss until i can get my hands on my friends vb4.02 and try it there.

thats no problem at all, i only noticed it the other day in my logs
strange it shows in the logs and not on the main page :(

dwerden 12-14-2012 02:01 PM

I have installed this add-on into my VB 4.2, but I can't figure out how to add the IP list. I'm new to using plug-ins, so maybe I'm missing something obvious (probably!). How do I get to the right screen to do this?

Thanks!

Simon Lloyd 12-14-2012 08:40 PM

AdminCp>Settings>Ban IP's

dwerden 12-14-2012 09:13 PM

Ah, I KNEW I was missing something simple! Thanks for pointing out the menu string.


All times are GMT. The time now is 09:29 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.01154 seconds
  • Memory Usage 1,755KB
  • 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
  • (1)bbcode_php_printable
  • (6)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
  • (16)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