From: <mic...@gm...> - 2002-09-22 16:15:13
|
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 -- Werden Sie mit uns zum "OnlineStar 2002"! Jetzt GMX wählen - und tolle Preise absahnen! http://www.onlinestar.de |
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 > > |
From: <mic...@gm...> - 2002-09-23 08:21:30
|
> 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"? yes and no, the only thing that has to be stable is the directory layout of phpESP. As long as it is like .../phpESP <= here is the new config file /admin /handler /survey you have no problem with my changes. These assume that the three directories are one level lower than the root installation directory. The advantage of my changes is that you only have to specify the installation directory _once_ - in the new config file. In the "normal" 1.4 version I had to change four (?) files. An added plus is that you can easier switch between a local and a web installation of phpESP, in case you are constantly modifying the software according to your needs. You change on the local system, then comment out one line in the new config file and now you can upload the changes (once the data base access infos are also defined two times - local and web). > > I think you'll find the gettext detection and loading much > more windows compatible in version 1.5. Great! Could my "old" version of PHP (4.0.5) also be a cause for the strange effects with gettext? >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. Ok, I agree .. > Please try v1.5, the first release canidate will be > out this week. I am eager to download it ;-) Michael -- Werden Sie mit uns zum "OnlineStar 2002"! Jetzt GMX wählen - und tolle Preise absahnen! http://www.onlinestar.de |