[Pkg-roundcube-maintainers] Bug#619411: roundcube-core: program/include/iniset.php should not alter INSTALL_PATH constant

Teodor MICU mteodor at gmail.com
Thu Mar 24 05:19:11 UTC 2011


Hi,

2011/3/23 Vincent Bernat <bernat at debian.org>:
> OoO Lors  de la soirée naissante  du mercredi 23 mars  2011, vers 17:43,
> Teodor <mteodor at 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





More information about the Pkg-roundcube-maintainers mailing list