PDA

View Full Version : $_REQUEST['forceredirect'] = true;


sabret00the
12-04-2005, 02:24 PM
what has become of this variable?

Andreas
12-04-2005, 02:34 PM
It has been scrapped :)

sabret00the
12-04-2005, 02:39 PM
It has been scrapped :)

:( how would i go about acheiving the same effect now?

Andreas
12-04-2005, 02:54 PM
To force a redirect?


eval(print_standard_redirect($phrase, true, true));


OR


eval(print_standard_redirect('some foobar text for the redirect page', false, true));

noppid
12-04-2005, 02:59 PM
:( how would i go about acheiving the same effect now?

In newreply.php and others we encounter code that has $forceredirect set for the standard redirect as the third param...


($hook = vBulletinHook::fetch_hook('newreply_post_complete' )) ? eval($hook) : false;
eval(print_standard_redirect('redirect_postthanks' , true, $forceredirect));



So I think it's fair to say, the post var in a particular place may be gone, but the functionality in the redirects is still there to use or not use.

sabret00the
12-05-2005, 02:23 PM
thanks all, you helped alot. :)