diff --git a/index.php b/index.php index fb35d00..e67ec16 100755 --- a/index.php +++ b/index.php @@ -32,7 +32,7 @@ /* (2) Gestion de la connection */ $login_vars = isset($_POST['login-sub']); - $login_vars = $login_vars && isset($_POST['login']) && Database::check('varchar(255)', $_POST['login']); + $login_vars = $login_vars && isset($_POST['login']) && Database::check('varchar(3,50)', $_POST['login']); $login_vars = $login_vars && isset($_POST['password']) && Database::check('text', $_POST['password']); // Status de login @@ -40,6 +40,7 @@ // Si les parametres de connection, on essaie de connecter if( $login_vars ){ + $login = new ModuleRequest('user/login', array( 'login' => $_POST['login'], 'password' => $_POST['password'] )); $login_ans = $login->dispatch(); @@ -68,6 +69,7 @@ + /* [0] On initialise le routeur ===================================================*/ $R = new Router( $_GET['url'] ); diff --git a/manager/Database.php b/manager/Database.php index 69cfa62..df26985 100755 --- a/manager/Database.php +++ b/manager/Database.php @@ -247,8 +247,8 @@ break; default: - return false; - + return false; + break; } return $checker; diff --git a/phpunit/coverage/Database.php.html b/phpunit/coverage/Database.php.html index 70b4186..a684eb8 100755 --- a/phpunit/coverage/Database.php.html +++ b/phpunit/coverage/Database.php.html @@ -559,7 +559,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.1.7 using PHP 5.6.11-1ubuntu3.1 and PHPUnit 4.7.6 at Sun Apr 17 14:38:12 UTC 2016. + Generated by PHP_CodeCoverage 2.1.7 using PHP 5.6.11-1ubuntu3.1 and PHPUnit 4.7.6 at Sun Apr 17 15:49:45 UTC 2016.

diff --git a/phpunit/coverage/ManagerError.php.html b/phpunit/coverage/ManagerError.php.html index 4e432ee..4c46407 100755 --- a/phpunit/coverage/ManagerError.php.html +++ b/phpunit/coverage/ManagerError.php.html @@ -247,7 +247,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.1.7 using PHP 5.6.11-1ubuntu3.1 and PHPUnit 4.7.6 at Sun Apr 17 14:38:12 UTC 2016. + Generated by PHP_CodeCoverage 2.1.7 using PHP 5.6.11-1ubuntu3.1 and PHPUnit 4.7.6 at Sun Apr 17 15:49:45 UTC 2016.

diff --git a/phpunit/coverage/ResourceDispatcher.php.html b/phpunit/coverage/ResourceDispatcher.php.html index cbf5b8b..81c0443 100755 --- a/phpunit/coverage/ResourceDispatcher.php.html +++ b/phpunit/coverage/ResourceDispatcher.php.html @@ -517,7 +517,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.1.7 using PHP 5.6.11-1ubuntu3.1 and PHPUnit 4.7.6 at Sun Apr 17 14:38:12 UTC 2016. + Generated by PHP_CodeCoverage 2.1.7 using PHP 5.6.11-1ubuntu3.1 and PHPUnit 4.7.6 at Sun Apr 17 15:49:45 UTC 2016.

diff --git a/phpunit/coverage/autoloader.php.html b/phpunit/coverage/autoloader.php.html index 076a53f..5b9b035 100755 --- a/phpunit/coverage/autoloader.php.html +++ b/phpunit/coverage/autoloader.php.html @@ -214,7 +214,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.1.7 using PHP 5.6.11-1ubuntu3.1 and PHPUnit 4.7.6 at Sun Apr 17 14:38:12 UTC 2016. + Generated by PHP_CodeCoverage 2.1.7 using PHP 5.6.11-1ubuntu3.1 and PHPUnit 4.7.6 at Sun Apr 17 15:49:45 UTC 2016.

diff --git a/phpunit/coverage/index.html b/phpunit/coverage/index.html index c68c6cc..a017ae1 100755 --- a/phpunit/coverage/index.html +++ b/phpunit/coverage/index.html @@ -210,7 +210,7 @@ High: 90% to 100%

- Generated by PHP_CodeCoverage 2.1.7 using PHP 5.6.11-1ubuntu3.1 and PHPUnit 4.7.6 at Sun Apr 17 14:38:12 UTC 2016. + Generated by PHP_CodeCoverage 2.1.7 using PHP 5.6.11-1ubuntu3.1 and PHPUnit 4.7.6 at Sun Apr 17 15:49:45 UTC 2016.

diff --git a/phpunit/coverage/sessionManager.php.html b/phpunit/coverage/sessionManager.php.html index 170be81..3103e3f 100755 --- a/phpunit/coverage/sessionManager.php.html +++ b/phpunit/coverage/sessionManager.php.html @@ -315,7 +315,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.1.7 using PHP 5.6.11-1ubuntu3.1 and PHPUnit 4.7.6 at Sun Apr 17 14:38:12 UTC 2016. + Generated by PHP_CodeCoverage 2.1.7 using PHP 5.6.11-1ubuntu3.1 and PHPUnit 4.7.6 at Sun Apr 17 15:49:45 UTC 2016.