Welcome! Log In Create A New Profile

Advanced

Re: Hashes / Arrays für $arg_PARAMETER

edogawaconan
July 25, 2013 08:52AM
On Thu, Jul 25, 2013 at 8:34 PM, Maik Unger <lists@ruby-forum.com> wrote:
> hi,
>
> i think that you don't understand me.
>
> i will define an array that will check against the $arg_PARAMETER.
>
> Example:
>
> Array with the following Values:
>
> array ("test"; "test2)
>
> Query-String:
>
> http://domain.com/?user=test
>
> $arg_user = "test"
>
> if the $arg_PARAMETER match with on of the array values, the access to
> the webseite is allow, otherwise the access is disallowed.
>

Something like this should work:

map $arg_user $allowed {
default 0;
test 1;
test2 1;
}

--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Hashes / Arrays für $arg_PARAMETER

Maik Unger July 24, 2013 04:32PM

Re: Hashes / Arrays für $arg_PARAMETER

Jonathan Matthews July 25, 2013 06:06AM

Re: Hashes / Arrays für $arg_PARAMETER

Maik Unger July 25, 2013 07:36AM

Re: Hashes / Arrays für $arg_PARAMETER

edogawaconan July 25, 2013 08:52AM

Re: Hashes / Arrays für $arg_PARAMETER

Jonathan Matthews July 25, 2013 10:28AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 256
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready