[geeklog-devel] Issue in modern_curve/style.css.php
Tom
websitemaster at cogeco.net
Thu Sep 5 20:30:33 EDT 2013
And after checking it is not. L
All the themes hardcode the "layout" part of the directory which can be
changed under themes.
It is used properly in lib-common for the physical path but it is then
hardcoded for the url path.
Dirk if you are listening.. is there any reason why we allow them to change
the layout path anyways? It is a pain since we also have to generate a URL
from the physical path (I guess by comparing it to public_html.)
I almost want to remove this config option since I see no value in it. Does
anyone else?
Tom
From: geeklog-devel-bounces at lists.geeklog.net
[mailto:geeklog-devel-bounces at lists.geeklog.net] On Behalf Of Niemans
Sent: September-05-13 4:56 AM
To: Geeklog Development
Subject: Re: [geeklog-devel] Issue in modern_curve/style.css.php
make sure that the use of these paths is consistent (thru $_CONF) in all
code and templates.
Wim
Op 5 sep. 2013, om 02:23 heeft Tom het volgende geschreven:
Yeah, I realize after I wrote that message that siteconfig is read only
after a Geeklog Install or upgrade.
I need the following directories for style.css.php to work
- public_html
- layout - for location of theme and default theme
- data - where to write the etag file
Loading in lib-common is out of the question since it takes too long.
Writing to site config is out of the question since it is read only and is
accessible by the web.
I could pass these variables to style.css.php in the url but that is a
security risk as well.
I can also determine the layout directory and public_html by doing something
like this in style.css.php:
// Set Path Variables
$path_html = dirname(dirname(getcwd()));
$path_themes = dirname(dirname(__FILE__)) . "/";
$path_layout = $path_themes . $theme . '/';
But I would still have to guess at the data directory so that is no help.
I guess I could write these variables to another file located in
$_CONF['path'] and then retrieve them from there since I can retrieve
$_CONF['path'] from siteconfig.php.
I guess the only real solution is to write the following config values on
install (or when they are changed) to $_CONF['path'] and a file called
path-config.php the following variables:
$_CONF['path_html']
$_CONF['path_layout']
$_CONF['path_data]
I can then retrieve them in the file style.css.php and then use the
information to generate the css and the etag.
Does anyone have a better solution?
Tom
From: geeklog-devel-bounces at lists.geeklog.net
[mailto:geeklog-devel-bounces at lists.geeklog.net] On Behalf OfYoshinori
Tahara
Sent: September-04-13 10:13 AM
To: Geeklog Development
Subject: Re: [geeklog-devel] Issue in modern_curve/style.css.php
2013/9/3 Tom <websitemaster at cogeco.net>
I wonder if Geeklog should write that config value to siteconfig.php like we
do for the path and path_system. That way I can grab it easier.
Sounds good for me.
Do the risks not increase?
--
Yoshinori Tahara - dengen
_______________________________________________
geeklog-devel mailing list
geeklog-devel at lists.geeklog.net
http://eight.pairlist.net/mailman/listinfo/geeklog-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist8.pair.net/pipermail/geeklog-devel/attachments/20130905/55d91671/attachment.html>
More information about the geeklog-devel
mailing list