new web design - CZECHIA.KDE.ORG

Christoph Cullmann cullmann at babylon2k.de
Tue Feb 25 21:15:15 UTC 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 25 February 2003 21:59, Pavel Franc wrote:
> >>apparently there is a problem with the php when register_globals is off.
> >>you can see that you have a menu on kate.kde.org (which is on a server
> >>with register_globals on) and www.kde.org/info (which is on a server
> >>with register globals off).
> >>
> >>Can somebody of the php gods look into this?
> >
> > $DOCUMENT_ROOT doesn't work with globals off.  You have to use
> > $_SERVER["DOCUMENT_ROOT"], which of course breaks the use of
> > $DOCUMENT_ROOT inside double quotes.
>
> Hi guys.
>
> Just for your information - http://czechia.kde.org is using the new
> design either. I experienced problems with inclusions since I'm not
> allowed to change the include_path in PHP.ini. The easy solution is to use
>
>   include_once ("$site_root/media/includes/header.inc");
>
>   insted of  include_once ("header.inc");
>
> And the same for footer.inc. I sugested to change this on your site
> either to awoid this problem on mirrors.
But $site_root is not defined on the other mirrors, I guess. Can't the php 
include path changed via .htaccess files, too, without requiring admin access 
?

>
> Moreover, can somebody of the php gods help me with the following thing:
> In proces of parsing rdf data file there is some date manipulation like
>
>    $t = kde_parse_date ($date[1]);
>    $printDate2 = date ("d", $t)." ".date ("F", $t);
>
> The first part is fine but the month is renurned in english which is not
> nice on localized page. Is there any way how to force date funcion to
> return localized month or any quick hack to function
> kde_parse_date($date).
>
> Thanks
>
> Pavel

- -- 
Christoph Cullmann
KDE Developer, kde.org Co-Maintainer
http://www.babylon2k.de, cullmann at kde.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+W9zlyPjDGePm9UIRApSZAKC8SGiPFNFslisnYm5W941mdVjsfwCfRRv3
p/HttSoLWKkVLcg58XKQOGs=
=7aOn
-----END PGP SIGNATURE-----




More information about the kde-www mailing list