Hi,

2011/3/23 Vincent Bernat <ber...@debian.org>:
> OoO Lors  de la soirée naissante  du mercredi 23 mars  2011, vers 17:43,
> Teodor <mteo...@gmail.com> disait :
>> Please do not modify the upstream file 'iniset.php'.
>
> The  modification   is  done  because   $_SERVER['SCRIPT_FILENAME']  may
> dereference  symlinks  and  result  in /usr/share/roundcube  instead  of
> /var/lib/roundcube.    Some   features    won't   work   then   (because
> /usr/share/roundcube is not complete).

I've tested this yesterday and re-tested this now by creating a file
'index2.php' with this content:
<?php
require_once 'program/include/iniset.php';
  echo $_SERVER['SCRIPT_FILENAME'];
  echo '<br>';
  echo INSTALL_PATH;
?>

The result is:
/var/lib/roundcube/index2.php
/var/lib/roundcube/

I'm using roundcube with the upstream 'iniset.php' with no problems.

> I don't quite  understand what you try to do. Do  you copy the roundcube
> installation into another location?

I've cloned '/var/lib/roundcube' (with rsync) on a different directory
in /var/www for a new virtual host designed only for mobile devices
(smart phones). Afterwards I just changed a few symbolic links
(config/main.inc.php, logs) and added a new skin. But for this to work
I had to change the iniset.php to detect automatically INSTALL_PATH.

I hope this explains the setup. I don't want to duplicate roundcube
code if not really necessary.

Thanks



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to