[Question] About $REQUEST['config']

Discuss phpBB 3.0.x in general.
Forum rules
Please post any phpBB 3.1.x related topics in the phpBB 3.1.x discussion forum.
Post Reply
Dakin Quelia
New member
New member
Posts: 49
Joined: 12 Nov 2008, 01:26
Real name: Daniel
Location: Belgique

[Question] About $REQUEST['config']

Post by Dakin Quelia »

Hello,

I have a question:

The function request_var('config') is prefered instead of $_REQUEST['config']? If yes, in php file includes/acp/acp_board.php, there is a $_REQUEST['config'].

See you soon,
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor

Re: [Question] About $REQUEST['config']

Post by igorw »

Yes it is prefered. It also applies for $_POST and $_GET. request_var should be used if possible.

The reason that it's still used in some cases is because it needs to. One case for this is when using isset(). The other is for some advanced array requesting, as in acp_board.
Dakin Quelia
New member
New member
Posts: 49
Joined: 12 Nov 2008, 01:26
Real name: Daniel
Location: Belgique

Re: [Question] About $REQUEST['config']

Post by Dakin Quelia »

Thank you very much. I understand. ;)
Post Reply