Creating a non-login page switch

Discuss phpBB 3.0.x in general.
Forum rules
Please post any phpBB 3.1.x related topics in the forum.
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
User avatar
Zuker
New member
New member
Posts: 40
Joined: 06 Nov 2006, 18:51
Real name: Matias
Location: BA
Contact:

Creating a non-login page switch

Postby Zuker » 10 Aug 2008, 19:20


User avatar
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Creating a non-login page switch

Postby igorw » 10 Aug 2008, 19:50

It will not work, because $_SERVER['SCRIPT_NAME'] will not include the query string (the $_GET parameters). Just use defined('IN_LOGIN') instead.

- we're poor!

User avatar
Zuker
New member
New member
Posts: 40
Joined: 06 Nov 2006, 18:51
Real name: Matias
Location: BA
Contact:

Re: Creating a non-login page switch

Postby Zuker » 10 Aug 2008, 20:04

thanks igor :)


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “phpBB 3.0.x "Olympus" discussion”

Who is online

Users browsing this forum: DotNetDotCom.org [Bot] and 41 guests