[kdewebdev-site] Problem with the site layout

Andras Mantia amantia at kdewebdev.org
Tue Mar 1 18:54:43 EST 2005


Hi,

 I'm trying to create a kallery homepage that follows the current 
layout, but have some problems. applib.php contains rules that should 
grab the common files (CSS and PHP files) from the main kdewebdev site:
if ($_SERVER["HTTP_HOST"] == "kallery.kdewebdev.org") {
  $_libpath = "/home/kdewebdev/public_html/include/";
  $_imgmain = "/home/kdewebdev/public_html/images/";
  $_css = "/home/kdewebdev/public_html/css/";
  $_mainsite = "http://kdewebdev.org/";
  $_quanta = "http://quanta.kdewebdev.org/";
  $_kallery = "http://kallery.kdewebdev.org/";
  $_kommander = "http://kommander.kdewebdev.org/";
  $_kxsldbg = "http://kxsldbg.kdewebdev.org/";
  $_kime = "http://kimagemapeditor.kdewebdev.org/";
  $_kfr = "http://kfilereplace.kdewebdev.org/";
  $_kls = "http://klinkstatus.kdewebdev.org/";
}
include_once ($_libpath."left.inc.php");

With the above code, nothing is found, the layout is totally broken. If 
I use
  $_css = "http://kdewebdev.org/css/";

The CSS file is found, but the pictures used in the CSS file are not. 
Example from there:
  background-image:url("../images/page/bg_line_.gif");

I suppose if I change the url to
 background-image:url("http://kdewebdev.org/images/page/bg_line_.gif");	
it will work. 

 But this will not solve the problem with the common PHP files. How can 
we do that 
include_once ($_libpath."left.inc.php");

always includes the left.inc.php from the main kdewebdev?

Andras

PS: Of course locally works this, as the applib.php has an "else" part 
where relative paths are used.

-- 
Quanta Plus developer - http://quanta.sourceforge.net
K Desktop Environment - http://www.kde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://momo.creolmail.org/pipermail/kdewebdev-site/attachments/20050301/37eff5df/attachment.pgp


More information about the kdewebdev-site mailing list