vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Own Redirector and Anonymization V2.0 (https://vborg.vbsupport.ru/showthread.php?t=98131)

leroub 10-21-2005 12:38 AM

thx for this hack.... work very fine.... :D

tokenyank 10-22-2005 09:43 PM

Quote:

Originally Posted by redlabour
Can?t work because vBulletin does not use URL?s without www. for redirecting unhacked.

Was this just a question if it works or do you need this without www. ?

But of course you can ad this Line so that it works with both. With www. or without.

Not everyone will put www.domain.com

Some will put domain.com or http://www.domain.com or http://domain.com

Where you say you can add a line so it works with both, would you do it like this?

Instead of this:
Code:

$url_info = parse_url($rightlink);
                if ($url_info["host"]=="www.YOURDOMAIN.de"):
                return "<a href=\"$rightlink\" target=\"_blank\">$text</a>";
                else:
                return "<a href=\"http://www.YOURDOMAIN.de/forum/links.php?url=$rightlink\" target=\"_blank\">$text</a>";
                endif;

It would be:
Code:

$url_info = parse_url($rightlink);
                if ($url_info["host"]=="www.YOURDOMAIN.de") || ($url_info["host"]=="YOURDOMAIN.de") || ($url_info["host"]=="http://YOURDOMAIN.de") || ($url_info["host"]=="http://www.YOURDOMAIN.de"):
                return "<a href=\"$rightlink\" target=\"_blank\">$text</a>";
                else:
                return "<a href=\"http://www.YOURDOMAIN.de/forum/links.php?url=$rightlink\" target=\"_blank\">$text</a>";
                endif;

?

redlabour 10-23-2005 07:01 AM

Quote:

Originally Posted by tokenyank
Not everyone will put www.domain.com

Some will put domain.com or http://www.domain.com or http://domain.com

Where you say you can add a line so it works with both, would you do it like this?

??? It makes no difference because the http:// is added automatically . :surprised:

Why did you want to do this ?

tokenyank 10-23-2005 07:24 AM

Because as it is now any link that is http://whatever.com does not get parsed through the link.php only links with www in them.

So, I'll take your word that I don't need to declare the http:// but could you tell us how to add another domain to the variable as I would like to declare that domain.com is handled the same way as www.domain.com, also I have another domain that is not part of my vB domain but do not want the link.php to parse it...

So, long post made short... Could you tell us how to add more domains so it will not parse through links.php?

I just tried it like this:
Code:

$url_info = parse_url($rightlink);
                if ($url_info["host"]=="www.YOURDOMAIN.de") || ($url_info["host"]=="YOURDOMAIN.de") || ($url_info["host"]=="http://YOURDOMAIN.de") || ($url_info["host"]=="http://www.YOURDOMAIN.de"):
                return "<a href=\"$rightlink\" target=\"_blank\">$text</a>";
                else:
                return "<a href=\"http://www.YOURDOMAIN.de/forum/links.php?url=$rightlink\" target=\"_blank\">$text</a>";
                endif;

and it did not work

redlabour 10-23-2005 09:01 AM

Oh now i understand - i will take a look of it tomorrow.

tokenyank 10-25-2005 06:53 AM

any progress?

redlabour 10-25-2005 07:08 AM

Sorry im busy - maybe anyone other can help ?

redlabour 06-08-2006 04:24 PM

Still works with 3.6 BETA :

https://vborg.vbsupport.ru/showthread.php?t=118042

redlabour 09-28-2006 02:09 PM

Thx to "Schattenjaeger" for the Security Fix to 2.0.1 !

redlabour 11-12-2006 06:19 AM

This Hack is not longer supported!!! Please use :

Own Redirector and Anonymization V2.0.1 for 3.6.x


All times are GMT. The time now is 05:18 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.01126 seconds
  • Memory Usage 1,740KB
  • 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
  • (3)bbcode_code_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