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 |