mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 04:10:38 +02:00
Possible fix for alert-message. Attempt to chmod e107_config.php automatically.
This commit is contained in:
@@ -180,5 +180,7 @@ define("LANINS_121", "e107_config.php is not an empty file");
|
||||
define("LANINS_122", "You might have an existing installation");
|
||||
define("LANINS_123", "Optional: Your public name or alias. Leave blank to use the user name");
|
||||
define("LANINS_124", "Please choose a password of at least 8 characters");
|
||||
define("LANINS_125", "e107 has been installed successfully!");
|
||||
define("LANINS_126", "For security reasons you should now set the file permissions on the e107_config.php file back to 644.");
|
||||
|
||||
|
||||
|
@@ -1153,7 +1153,8 @@ class e_install
|
||||
$alertType = 'success';
|
||||
$this->logLine('Tables created successfully');
|
||||
$this->import_configuration();
|
||||
$page = nl2br(LANINS_069)."<br />";
|
||||
$page = nl2br(LANINS_125)."<br />";
|
||||
$page .= (is_writable('e107_config.php')) ? "<br />".str_replace("e107_config.php","<b>e107_config.php</b>",LANINS_126) : "";
|
||||
|
||||
if($htaccessError)
|
||||
{
|
||||
@@ -1168,6 +1169,7 @@ class e_install
|
||||
$this->logLine('Stage 8 completed');
|
||||
|
||||
e107::getMessage()->reset();
|
||||
e107::getMessage()->resetSession();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1636,6 +1638,7 @@ class e_install
|
||||
return nl2br(LANINS_070);
|
||||
}
|
||||
@fclose ($fp);
|
||||
@chmod($e107_config,0644); // correct permissions.
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user