Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Second argument of psl_getLocalInfo: msg#00004

cms.phpslash.devel

Subject: Re: Second argument of psl_getLocalInfo

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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
hardware.arm.at...    cms.citadel.dev...    video.gstreamer...    java.facelets.u...    misc.basics.qna...    web.wiki.instik...    network.uip.use...    xdg.devel/2003-...    tex.bibtex.bibd...    finance.quotesp...    ietf.zeroconf/2...    redhat.blinux.g...    suse.db2/2003-0...    php.phpesp/2004...    uml.devel/2003-...    gnome.labyrinth...    qnx.openqnx.dev...    boot-loaders.gr...    db.dataperfect....    audio.audacity....    linux.uclinux.m...    editors.j.devel...    os.openbsd.tech...    kde.users.multi...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation