panique/php-login — pull request #152 by devplanete (2013-08-17 14:49:31+00:00)
Title: Update Login.php

modification of Login.php to replace all direct calls to "new mysqli(DB_HOST, DB_USER, DB_PASS, DB_NAME)" by the function "private function databaseConnection()"

This function check if database connection already opened, create connection if needed and return true or false (if false, error message is added to error string of the class)