I don't really like the idea, of guessing by some browser-staff where the user comes from.
I'd go with some kind of pop up?
I implemented this:
On the UCP screen there's a little link which opens the popup, the timezone is written to an input field.
The first page of the popup contains the "categories":
When you click on one of them, the category is opened:
If you than click on a timezone the name is inserted in the input field.
phpbb would than verify, that the timezone is valid
- Code: Select all
in_array(request_var('timezone', ''), DateTimeZone::listIdentifiers())
and you're done