From 2284fc6860f5610f469a1dddc2a13079524439da Mon Sep 17 00:00:00 2001 From: Stanislas Dolcini Date: Sat, 6 Oct 2018 14:23:56 +0200 Subject: [PATCH] Add some comments to explain what the code does. --- code/web/public_php/login/r2_login.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/web/public_php/login/r2_login.php b/code/web/public_php/login/r2_login.php index 0a38e4e88..936b3209a 100755 --- a/code/web/public_php/login/r2_login.php +++ b/code/web/public_php/login/r2_login.php @@ -26,7 +26,11 @@ if (isset($_GET['dbg']) && ($_GET['dbg'] == 1)) { $DisplayDbg = true; } +// Create a command object using the user's parameters. $nel_command = new NelCommand($_GET); +// Create a connexion handler to process that command. $connection_handler = new ConnectionHandler(); +// Connect the connection handler to the database. $connection_handler->connect($DBHost, $DBUserName, $DBPassword, $DBName); +// Process the command sent by the user. $connection_handler->process_command($nel_command);