diff --git a/php/modules/Album.php b/php/modules/Album.php index 1b8d1c5..f4ed7f7 100644 --- a/php/modules/Album.php +++ b/php/modules/Album.php @@ -7,7 +7,7 @@ if (!defined('LYCHEE')) exit('Error: Direct access is not allowed!'); -class Album extends Module { +final class Album extends Module { private $database = null; private $settings = null; diff --git a/php/modules/Database.php b/php/modules/Database.php index 9b25860..131e5e2 100755 --- a/php/modules/Database.php +++ b/php/modules/Database.php @@ -7,7 +7,7 @@ if (!defined('LYCHEE')) exit('Error: Direct access is not allowed!'); -class Database extends Module { +final class Database extends Module { private static $versions = array( '020100', #2.1 diff --git a/php/modules/Import.php b/php/modules/Import.php index 621c562..5c42dd1 100644 --- a/php/modules/Import.php +++ b/php/modules/Import.php @@ -7,7 +7,7 @@ if (!defined('LYCHEE')) exit('Error: Direct access is not allowed!'); -class Import extends Module { +final class Import extends Module { private $database = null; private $settings = null; diff --git a/php/modules/Log.php b/php/modules/Log.php index 1725020..5befb0a 100644 --- a/php/modules/Log.php +++ b/php/modules/Log.php @@ -7,7 +7,7 @@ if (!defined('LYCHEE')) exit('Error: Direct access is not allowed!'); -class Log extends Module { +final class Log extends Module { public static function notice($database, $function, $line, $text = '') { diff --git a/php/modules/Module.php b/php/modules/Module.php index 3e8b672..ab9fb0a 100644 --- a/php/modules/Module.php +++ b/php/modules/Module.php @@ -7,7 +7,7 @@ if (!defined('LYCHEE')) exit('Error: Direct access is not allowed!'); -class Module { +abstract class Module { protected $plugins = null; @@ -25,7 +25,7 @@ class Module { } - public static function dependencies($available = false) { + final public static function dependencies($available = false) { if ($available===false) exit('Error: Can not execute function. Missing parameters or variables.'); diff --git a/php/modules/Photo.php b/php/modules/Photo.php index 5f34ccb..ce99dd7 100755 --- a/php/modules/Photo.php +++ b/php/modules/Photo.php @@ -7,7 +7,7 @@ if (!defined('LYCHEE')) exit('Error: Direct access is not allowed!'); -class Photo extends Module { +final class Photo extends Module { private $database = null; private $settings = null; diff --git a/php/modules/Plugins.php b/php/modules/Plugins.php index 9663814..d58cbaf 100644 --- a/php/modules/Plugins.php +++ b/php/modules/Plugins.php @@ -7,7 +7,7 @@ if (!defined('LYCHEE')) exit('Error: Direct access is not allowed!'); -class Plugins implements \SplSubject { +final class Plugins implements \SplSubject { private $files = array(); private $observers = array(); diff --git a/php/modules/Session.php b/php/modules/Session.php index 524877b..3e27d98 100755 --- a/php/modules/Session.php +++ b/php/modules/Session.php @@ -7,7 +7,7 @@ if (!defined('LYCHEE')) exit('Error: Direct access is not allowed!'); -class Session extends Module { +final class Session extends Module { private $settings = null; diff --git a/php/modules/Settings.php b/php/modules/Settings.php index f0f57f4..689fd1c 100755 --- a/php/modules/Settings.php +++ b/php/modules/Settings.php @@ -7,7 +7,7 @@ if (!defined('LYCHEE')) exit('Error: Direct access is not allowed!'); -class Settings extends Module { +final class Settings extends Module { private $database = null;