From 510724444ec9b896971d116615b4ef428a3afdae Mon Sep 17 00:00:00 2001 From: Esteban Sanchez Date: Thu, 28 Jun 2007 14:17:25 +0000 Subject: [PATCH] 2007-06-28 Esteban Sanchez * install.php: Change file permissions of config.php when it is created. * general/error_perms.php: Added a blank space. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@548 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 7 +++++++ pandora_console/general/error_perms.php | 4 ++-- pandora_console/install.php | 1 + 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index e87cc7fff0..ca3f568c51 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,10 @@ +2007-06-28 Esteban Sanchez + + * install.php: Change file permissions of config.php when it is + created. + + * general/error_perms.php: Added a blank space. + 2007-06-27 Raul Mateos * include/sytles/*.css: Updated "gif" references to the "png" refs. diff --git a/pandora_console/general/error_perms.php b/pandora_console/general/error_perms.php index 267a43dcd4..a5c0537f54 100644 --- a/pandora_console/general/error_perms.php +++ b/pandora_console/general/error_perms.php @@ -49,8 +49,8 @@ if (file_exists("include/languages/language_".$language_code.".php")) { -


For security reasons, config.php must have restrictive permissions, and "other" users cannot read or write to it. It could be writed only for owner (usually www-data or http daemon user), normal operation is not possible until you change permissions for include/config.phpfile. Please do it, it's for your security.
+


For security reasons, config.php must have restrictive permissions, and "other" users cannot read or write to it. It could be writed only for owner (usually www-data or http daemon user), normal operation is not possible until you change permissions for include/config.php file. Please do it, it's for your security.
- \ No newline at end of file + diff --git a/pandora_console/install.php b/pandora_console/install.php index 6b5ff94304..c2b5aac577 100644 --- a/pandora_console/install.php +++ b/pandora_console/install.php @@ -362,6 +362,7 @@ $BASE_URL="'.$url.'"; // Base URL $step7 = 1; fclose ($cfgin); fclose ($cfgout); + chmod ($pandora_config, 0600); check_generic ($step7, "Created new config file at '".$pandora_config."'"); } }