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


All times are GMT. The time now is 06:35 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.01033 seconds
  • Memory Usage 1,739KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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