Re: Second argument of psl_getLocalInfo
Joe Stewart <[email protected]> Thu, 26 Jun 2003 09:16:55 -0500
| Newsgroups | gmane.comp.cms.phpslash.devel |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Jun 20, 2003 at 09:29:56PM +0200, Alexander Bartolich wrote:
> There is a file called config.php (according to installation guide).
> On
>
> http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/
>
> I guess it's really
>
> phpslash/phpslash-ft/public_html/config-dist.php3
>
> Anyway, somewhere around line 640 is a strange call of psl_getLocalInfo:
>
> define("ALLSECTIONS", "section_id0");
>
> if ($_PSL['timezone']['engine']) {
> loadLibrary("tz");
> // set up the time zone environment array
> $_TZ =& $_PSL['timezone'];
> $_TZ['templatedir'] = $_PSL['templatedir'];
> $_TZ['show_format'] = psl_getLocalInfo('LC_TIME','%a %b %e %H:%M:%S %Z
> %Y');
>
> This second argument looks like a "query by example".
> None of the files in class/locale define a key like that.
> Consequently psl_getLocalinfo (yes, lower case i in function.php) first
> tries to load
> de.LC_TIME.php and then falls back to en_US.LC_TIME.php.
>
> What's that good for?
>
Matt told me that it is to format the time display in tz_select.php. I think
we can move a similar line to tz_select.php and out of the config file for
all pages.
The tz_select.php functionality doesn't require a user account. How should
this be integrated into phpSlash? The user profile page is only available to
logged in users. This is where I had been leaning to add it in.
Joe
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php