Add some comments to explain what the code does.

This commit is contained in:
Stanislas Dolcini 2018-10-06 14:23:56 +02:00
parent 03825b39fc
commit 2284fc6860

View file

@ -26,7 +26,11 @@ if (isset($_GET['dbg']) && ($_GET['dbg'] == 1)) {
$DisplayDbg = true; $DisplayDbg = true;
} }
// Create a command object using the user's parameters.
$nel_command = new NelCommand($_GET); $nel_command = new NelCommand($_GET);
// Create a connexion handler to process that command.
$connection_handler = new ConnectionHandler(); $connection_handler = new ConnectionHandler();
// Connect the connection handler to the database.
$connection_handler->connect($DBHost, $DBUserName, $DBPassword, $DBName); $connection_handler->connect($DBHost, $DBUserName, $DBPassword, $DBName);
// Process the command sent by the user.
$connection_handler->process_command($nel_command); $connection_handler->process_command($nel_command);