protect ajax.php after install

pull/3887/head
Renaud Lemaire 4 years ago
parent 7e3f9afbd1
commit 6946b7c93e
  1. 7
      main/install/ajax.php

@ -27,6 +27,13 @@ session_start();
require_once api_get_path(LIBRARY_PATH).'database.constants.inc.php';
require_once 'install.lib.php';
// A protection measure for already installed systems.
if (isAlreadyInstalledSystem()) {
// The system has already been installed, so block re-installation.
echo "Chamilo has already been installed";
exit;
}
$action = isset($_POST['a']) ? $_POST['a'] : null;
$dbHost = isset($_POST['db_host']) ? $_POST['db_host'] : 'localhost';

Loading…
Cancel
Save