diff options
| author | 2013-11-17 15:24:30 +0100 | |
|---|---|---|
| committer | 2013-11-17 15:24:30 +0100 | |
| commit | 9ec13c6c32ad0f8fb50f100e6ae127abe1535ccc (patch) | |
| tree | 255cfb5995b67df7edd5fa541bebe3905be44715 /lib/minz/Configuration.php | |
| parent | 53505964412fc05d5bbd11b0707b4700634c8f9f (diff) | |
Début de multi-utilisateurs
Préparation de https://github.com/marienfressinaud/FreshRSS/issues/126
Suite de https://github.com/marienfressinaud/FreshRSS/issues/248
Nécessite un script de mise à jour
https://github.com/marienfressinaud/FreshRSS/issues/255
Install.php n'est pas encore testé
https://github.com/marienfressinaud/FreshRSS/issues/273
Diffstat (limited to 'lib/minz/Configuration.php')
| -rwxr-xr-x | lib/minz/Configuration.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/minz/Configuration.php b/lib/minz/Configuration.php index bdd6af0fb..5be2ea63d 100755 --- a/lib/minz/Configuration.php +++ b/lib/minz/Configuration.php @@ -50,6 +50,8 @@ class Configuration { private static $language = 'en'; private static $cache_enabled = false; private static $delay_cache = 3600; + private static $default_user = ''; + private static $current_user = ''; private static $db = array ( 'host' => false, @@ -88,6 +90,12 @@ class Configuration { public static function dataBase () { return self::$db; } + public static function defaultUser () { + return self::$default_user; + } + public static function currentUser () { + return self::$current_user; + } /** * Initialise les variables de configuration @@ -193,6 +201,10 @@ class Configuration { if (isset ($general['delay_cache'])) { self::$delay_cache = $general['delay_cache']; } + if (isset ($general['default_user'])) { + self::$default_user = $general['default_user']; + self::$current_user = self::$default_user; + } // Base de données $db = false; |
