vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   [VB3-RC2] vBRedirect v1.1 - Redirect to external pages with your banner above (https://vborg.vbsupport.ru/showthread.php?t=62332)

Pikok 03-14-2004 05:57 AM

Quote:

Originally Posted by Okiewan
Nice hack, very useful!
Only issue is when linking to a post (for example) within the forum itself...
Anyway to apply this to only external links?

In redirect.php find:
PHP Code:

if ($rdr == '')
{
    eval(
print_standard_error('error_redirect'));


And Replace With:
PHP Code:

// Get Host Name From URL
preg_match("/^(http:\/\/)?([^\/]+)/i"$rdr$matches);
$hostname $matches[2];

if (
$hostname=='www.domain.net')
{
    
$url $rdr;
    eval(
print_standard_redirect('Redirecting...',0));    
}
else if (
$rdr == '')
{
    eval(
print_standard_error('error_redirect'));


Change $hostname to yours and that should work for you.

JustJonno 03-15-2004 02:57 PM

Quote:

Originally Posted by Okiewan
Problem...
Installing this hack will blow-up vbadvanced homepage (the layout).
It has something to do with the custom BB codes.

Removing the bbcodes will of course leave all links posted in threads messed-up.

There is another way to set this up, instead of using the [url] directive, use something like [ext] and then make sure the editor's javascript for links points to [ext] instead of [url] that way the in-built [url] directives still work for vbadvanced homepage :)

JJ

Andreas 07-17-2004 09:11 PM

!!! Security Warning !!!

This hack has a major Vulnerability!
The author has been informed to take apropriate steps to fix this.
In the meanwhile, I strongly recommend to uninstall this hack.

!!! Security Warning !!!

Boofo 07-17-2004 09:16 PM

What's the vulberability? Might be nice to know.

Silverstangs 08-29-2004 03:51 AM

Has the security issue been resolved?

rinkrat 09-05-2004 07:20 AM

I installed this then took it out and now my original url redirect doesn't work. Can someone tell me what the original bbcode for url is supposed to be?

THanks!!

rinkrat 09-05-2004 03:20 PM

anyone? How do I set it to parse the urls like normal?

airaffair 09-24-2004 04:11 PM

Quote:

Originally Posted by KirbyDE
!!! Security Warning !!!

This hack has a major Vulnerability!
The author has been informed to take apropriate steps to fix this.
In the meanwhile, I strongly recommend to uninstall this hack.

!!! Security Warning !!!

Would like to know what the issue is and if the code "can" or can "not" be secured and if so how?

I mean...I like the fact that you found this security hole - but is it something you could tell/share with the rest of us? maybe we could even fix it ourselves?

SamirDarji 09-28-2004 09:51 PM

I'm using this hack on my link forums and want to have the breadcrumb in the upper frame. How do I get the variables to pass? I just keep getting the variable names. What other php files would I need?

The only reason I'll want to do it is if the link forums also have a variable for the forum name. Then I can make a nav bar in the upper frame similar to those on regular forums with the corresponding forum name of the link. If that variable doesn't exist, then I can't do what I want and I'll just use the hardcoded html one that I'm going to work on right now. Someone give me some insight please.

mgold 10-01-2004 02:45 PM

page http://www.securityrelease.com/showt...hp?p=23#post23

just click the link or any other link on the forum

error:
Warning: main(./global.php): failed to open stream: No such file or directory in D:\securityrelease\forums\redirect.php on line 40

Fatal error: main(): Failed opening required './global.php' (include_path='.;c:\php4\pear') in D:\securityrelease\forums\redirect.php on line 40


I turned it off while its not working but what could the error be?


All times are GMT. The time now is 02: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.01112 seconds
  • Memory Usage 1,744KB
  • 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
  • (2)bbcode_php_printable
  • (3)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