From 7abe2f10b7f2f4883743e9bf5d4b6811bb9d6bfa Mon Sep 17 00:00:00 2001 From: Guillaume Mazoyer Date: Tue, 10 Jun 2014 13:04:06 +0200 Subject: Rewrite of the routers part. Should be more modular now to add other routers types. --- auth/authentication.php | 2 +- auth/ssh.php | 2 +- auth/telnet.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'auth') diff --git a/auth/authentication.php b/auth/authentication.php index 1ec3cb1..7a67fb5 100644 --- a/auth/authentication.php +++ b/auth/authentication.php @@ -49,7 +49,7 @@ abstract class Authentication { return new Telnet($config); default: - 'Unknown authentication mecanism "'.$config['auth'].'"."'; + print 'Unknown authentication mecanism "'.$config['auth'].'"."'; return null; } } diff --git a/auth/ssh.php b/auth/ssh.php index 27bcdaf..07a51d2 100644 --- a/auth/ssh.php +++ b/auth/ssh.php @@ -21,7 +21,7 @@ require_once 'authentication.php'; -class SSH extends Authentication { +final class SSH extends Authentication { private $port; public function __construct($config) { diff --git a/auth/telnet.php b/auth/telnet.php index d2b084a..6e4064e 100644 --- a/auth/telnet.php +++ b/auth/telnet.php @@ -21,7 +21,7 @@ require_once 'authentication.php'; -class Telnet extends Authentication { +final class Telnet extends Authentication { private $port; public function __construct($config) { -- cgit v1.2.3