From: James E. F. <jf...@ac...> - 2002-09-22 16:57:41
|
Well, it has been proposed quite a few times to make the install easier in the way you propose ... But I don't see that it is any different. Isn't it now necessary to make sure each component (admin, handler, survey) has the path to the "phpESP.local.ini.php"? Basically there are two options, install in a fixed location (lib/php/contrib as I suggest), or change things so that it is always a relative install (similar to horde). I think in the future, phpESP will take a similar approach to horde, and use all relative paths, but this reduces the flexibility of the logical layout of your website. Of course, failing to find the INI using relative paths, the scripts could be made to fall back to a "pathless" include(), allowing for placing the phpESP.ini somewhere in the php include_path ... I think you'll find the gettext detection and loading much more windows compatible in version 1.5. You can always place a "<br>" or "<p> </p>" at the end of you section text if you need more spacing. I believe that behavior is better than extra spacing due to whitespace in the textarea box. Please try v1.5, the first release canidate will be out this week. -James On Sun, 22 Sep 2002 mic...@gm... wrote: > Hello, > I've modified a few things, see below. Perhaps someone of the core > developers integrates some of it in the main branch. > Regards+Thanks for this great software > Michael Städler > ------------- > ma...@mi... > modified: phpESP version 1.4, May 2002 > > Changes on 22.09.2002: > > * easier installation: installation directory and other vars have been > placed in a new config file, phpESP.local.ini.php. Now you can also easier switch > between a local install and a web install, in case you are modifying phpESP. > * phpESP.ini has been renamed to phpESP.ini.php for security purposes. Now > you can put this file to the "normal" ESP directory and it isn't readable even > if one tries to access the file directly with his browser. I know this isn't > the optimum, but it is easy to use and at least you can alternatively make a > "securer" installation like now. > > NECESSARY CHANGES FOR THAT: > Changes in admin/phpESP.ini.php: > - added line on top: require_once "../phpESP.local.ini.php"; > - line 13 changed: $locale_path = "$install_dir/locale"; > - line 61 changed: 'include_path' => "$install_dir/admin/include/", > Changes in admin/manage.php: > - added line on top: require_once "../phpESP.local.ini.php"; > - line 12 changed: $CONFIG = "$install_dir/admin/phpESP.ini.php"; > Changes in public/handler.php: > - line 17: require("$install_dir/admin/phpESP.ini.php"); > Changes in public/handler-prefix.php: > - line 45: require("$install_dir/admin/phpESP.ini.php"); > Changes in public/survey.php: > - line 3: require("$install_dir/admin/phpESP.ini.php"); > ---------------------- > deleted line 13 in phpESP.ini.php ($lang = ..) => put this into the new ini > file > contents of file phpESP.local.ini.php: > <?php > // comment this out when running on a web server > $exec_mode = "local"; > > if ($exec_mode == "local") { > $install_dir = "d:/dwww/phpESP"; > } else { > $install_dir = "/www/<useraccount>/<userdomain>/phpESP"; > } > // the database infos should also be put in here! > > // language selection > $lang = 'de'; // or en or .. > ?> > ---------------------- > Workaround for a problem with gettext on my Windows system (phpESP doesn't > work): > phpESP.ini.php: > - problem with gettext on my windows system (phpESP doesn't work): > commented out line 21 - 42 > - new line 43: if(!extension_loaded('gettext') && !defined('_GETTEXT')) { > => thus the wrapper is always active, now all is in english, but better > than nothing.. > > ---------------------- > BUGS: > - behind section text should always be put an empty line (in the survey). > Empty lines at bottom of section text should not be thrown out automatically > > |