From 1a22b35fe60ce21f36f9da116648978523b53c2d Mon Sep 17 00:00:00 2001 From: bradymiller Date: Wed, 8 Aug 2012 18:22:48 -0700 Subject: [PATCH] Removed magic quote recommendations from install instructions, scripts and ubuntu/debian package --- INSTALL | 2 +- contrib/util/ubuntu_package_scripts/production/postinst | 6 ------ setup.php | 2 +- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/INSTALL b/INSTALL index 1baef147e..e01414655 100644 --- a/INSTALL +++ b/INSTALL @@ -183,7 +183,7 @@ directory. In windows, the XAMPP 1.7.0 package places the php.ini file in the xampp\apache\bin\ directory. To ensure proper functioning of OpenEMR you must make sure that settings in the php.ini file include "short_open_tag = On", "display_errors = Off", "register_globals = Off", -"magic_quotes_gpc = On", "max_execution_time" set to at least 60, +"max_execution_time" set to at least 60, "max_input_time" set to at least 90 , "post_max_size" set to at least 30M, and "memory_limit" set to at least "128M". In order to take full advantage of the patient documents capability you must make sure that settings in diff --git a/contrib/util/ubuntu_package_scripts/production/postinst b/contrib/util/ubuntu_package_scripts/production/postinst index 4a7fbb701..6d6b47835 100644 --- a/contrib/util/ubuntu_package_scripts/production/postinst +++ b/contrib/util/ubuntu_package_scripts/production/postinst @@ -476,8 +476,6 @@ case "$1" in GLOB=$(collect_php "$GLOB_TEXT") POST_TEXT="post_max_size" POST=$(collect_php "$POST_TEXT") - MAGIC_TEXT="magic_quotes_gpc" - MAGIC=$(collect_php "$MAGIC_TEXT") UPLOAD_TEXT="file_uploads" UPLOAD=$(collect_php "$UPLOAD_TEXT") FILESIZE_TEXT="upload_max_filesize" @@ -529,9 +527,6 @@ case "$1" in if [ "$POST" -lt "30" ]; then process_php "$POST_TEXT" "30M" $i fi - if [ "$MAGIC" != "On" ]; then - process_php "$MAGIC_TEXT" "On" $i - fi if [ "$UPLOAD" != "On" ]; then process_php "$UPLOAD_TEXT" "On" $i fi @@ -561,7 +556,6 @@ case "$1" in log_only "log_errors = On" log_only "register_globals = Off" log_only "post_max_size = 30M" - log_only "magic_quotes_gpc = On" log_only "file_uploads = On" log_only "upload_max_filesize = 30M" fi diff --git a/setup.php b/setup.php index dc83c8743..ca3f4b672 100644 --- a/setup.php +++ b/setup.php @@ -522,7 +522,7 @@ else { $gotFileFlag = 1; } } -echo "
  • To ensure proper functioning of OpenEMR you must make sure that settings in php.ini file include \"short_open_tag = On\", \"display_errors = Off\", \"register_globals = Off\", \"magic_quotes_gpc = On\", \"max_execution_time\" set to at least 60, \"max_input_time\" set to at least 90, \"post_max_size\" set to at least 30M, and \"memory_limit\" set to at least \"128M\".
  • \n"; +echo "
  • To ensure proper functioning of OpenEMR you must make sure that settings in php.ini file include \"short_open_tag = On\", \"display_errors = Off\", \"register_globals = Off\", \"max_execution_time\" set to at least 60, \"max_input_time\" set to at least 90, \"post_max_size\" set to at least 30M, and \"memory_limit\" set to at least \"128M\".
  • \n"; echo "
  • In order to take full advantage of the patient documents capability you must make sure that settings in php.ini file include \"file_uploads = On\", that \"upload_max_filesize\" is appropriate for your use and that \"upload_tmp_dir\" is set to a correct value that will work on your system.
  • \n"; if (!$gotFileFlag) { echo "
  • If you are having difficulty finding your php.ini file, then refer to the 'INSTALL' manual for suggestions.
  • \n"; -- 2.11.4.GIT