vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   $url for standard_redirect not working (https://vborg.vbsupport.ru/showthread.php?t=106626)

Nullifi3d 01-29-2006 02:13 PM

$url for standard_redirect not working
 
I have my own vbulletin page and in it are several functions of which are different redirects depending on the action. However for some reason the do query string in the url ($url) is changing and I don't know why. it's causing permission error because it's redirecting to incorrect urls.
Some examples:
PHP Code:

$url "http://www.webhostdebate.com/banners.php?do=add";
eval(
print_standard_redirect("You campaign has been removed."falsetrue));

$url "http://www.webhostdebate.com/banners.php?do=statistics";
eval(
print_standard_redirect("You banner campaign has been created, but will not be active until staff approves it."falsetrue));

$url "http://www.webhostdebate.com/banners.php?do=statistics";
eval(
print_standard_redirect("You campaign has been updated, but will not be active until staff approves it."falsetrue)); 

These are the 3 I have all used for different actions. They were working before I added some things to the document, now they are all that don't properly work. The only thing that gets changed is the do= string in the url. What may cause this?

Cole2026 01-29-2006 02:54 PM

Quote:

Originally Posted by Nullifi3d
I have my own vbulletin page and in it are several functions of which are different redirects depending on the action. However for some reason the do query string in the url ($url) is changing and I don't know why. it's causing permission error because it's redirecting to incorrect urls.
Some examples:
PHP Code:

$url "http://www.webhostdebate.com/banners.php?do=add";
eval(
print_standard_redirect("You campaign has been removed."falsetrue));

$url "http://www.webhostdebate.com/banners.php?do=statistics";
eval(
print_standard_redirect("You banner campaign has been created, but will not be active until staff approves it."falsetrue));

$url "http://www.webhostdebate.com/banners.php?do=statistics";
eval(
print_standard_redirect("You campaign has been updated, but will not be active until staff approves it."falsetrue)); 

These are the 3 I have all used for different actions. They were working before I added some things to the document, now they are all that don't properly work. The only thing that gets changed is the do= string in the url. What may cause this?

I thought they depricated the $url variable in vBulletin 3.5?

Try:
PHP Code:

$vbulletin->url "http://www.webhostdebate.com/banners.php?" $vbulletin->session->vars['sessionurl'] . "do=add";
eval(
print_standard_redirect("You campaign has been removed."falsetrue));

$vbulletin->url "http://www.webhostdebate.com/banners.php?" $vbulletin->session->vars['sessionurl'] . "do=statistics";
eval(
print_standard_redirect("You banner campaign has been created, but will not be active until staff approves it."falsetrue));

$vbulletin->url "http://www.webhostdebate.com/banners.php?" $vbulletin->session->vars['sessionurl'] . "do=statistics";
eval(
print_standard_redirect("You campaign has been updated, but will not be active until staff approves it."falsetrue)); 


Nullifi3d 01-29-2006 03:13 PM

that works and is better code. thanks a bunch.


All times are GMT. The time now is 09:13 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.01321 seconds
  • Memory Usage 1,733KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete