Now with the installer 'install.php', in the final step, you can choose if rename the file 'install.php'. Ticket #2539
This commit is contained in:
parent
3e0b8a0f52
commit
5230a9eaa6
|
@ -41,6 +41,14 @@ if ($develop_bypass != 1) {
|
|||
include ("install.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
if (isset($_POST["rename_file"])){
|
||||
$rename_file_install = (bool)$_POST["rename_file"];
|
||||
if ($rename_file_install) {
|
||||
$salida_rename = rename("/var/www/html/pandora_console/install.php", "/var/www/html/pandora_console/install_old.php");
|
||||
}
|
||||
}
|
||||
|
||||
// Check for installer presence
|
||||
if (file_exists ("install.php")) {
|
||||
$login_screen = 'error_install';
|
||||
|
@ -118,6 +126,11 @@ $config["pure"] = (bool) get_parameter ("pure");
|
|||
if (get_parameter ("refr"))
|
||||
$config["refr"] = (int) get_parameter ("refr");
|
||||
|
||||
$delete_file = get_parameter("del_file");
|
||||
if ($delete_file == 'yes_delete'){
|
||||
$salida_delete = shell_exec('rm /var/www/html/pandora_console/install.php');
|
||||
}
|
||||
|
||||
ob_start ();
|
||||
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' .
|
||||
"\n";
|
||||
|
|
|
@ -1228,9 +1228,15 @@ function install_step5() {
|
|||
please change it both as soon as possible.</p>
|
||||
<p>Don't forget to check <a href='http://pandorafms.com'>http://pandorafms.com</a>
|
||||
for updates.
|
||||
<p>Select if you want to rename '<i>install.php</i>'.</p>
|
||||
<form method='post' action='index.php'>
|
||||
<input type='submit' name='rn_file' value='Yes, rename the file'>
|
||||
<input type='hidden' name='rename_file' value='1'>
|
||||
</form>
|
||||
<p><br><b><a id='access_pandora' href='index.php'>Click here to access to your Pandora FMS console</a>.</b>
|
||||
</p>
|
||||
</div>";
|
||||
|
||||
echo "</div>
|
||||
<div id='foot_install'>
|
||||
<i>Pandora FMS is an OpenSource Software project registered at
|
||||
|
|
Loading…
Reference in New Issue